Why do you need the file extension? You already know what it is - you're already hard-coding the files in the resources, may as well hard-code the file extensions in your code.
how i use it: mnuExitSys.imgMenu.FromResource(songoku, "ICON");
i need more help:
- with 'songoku', can i get the type?(because i use 2 parameters on FromResource)
The second parameter should be MAKEINTRESOURCE(songoku), since you are loading by ordinal and not by name. You may need to refactor your FromResource function.
honestly i don't know use the string name. just with ' MAKEINTRESOURCE(songoku)'.
maybe you can teach me how use it... but i continue with same problem :(
how can i get the resource type?
i'm sorry, but what means 'refactor'?(i'm portuguese)