if it is a resource dialog, just set the type to bitmap and select the image in the properties window.
If it is a coded control you need to pass in the BS_BITMAP flag with the flags to CreateWindow and then send the button a message with BM_SETIMAGE and a loaded HBITMAP or HICON with preferably PostMessage otherwise SendMessage
(never used eclipse, but I assume its working is somewhat standard )
1- do you compile and link the code with no error ?
2- is there some kind of setting telling where the IDE (eclipse) can find the application when you want to "run" it ?
3- can you look in the folder where the source code is if there are obj files and resulting application ?
i forgot to say that this is a directory in a LAN?
In this case, do i have to do the same, to use same function SHFileOperation for network operations???
When i tray to do this, i receive an error like this "Invalid File path"??
thanks for answer, is that ah way to resolve a network drive to this LAN name?
My Letter is this one P on network, "P:\project\projectname.pf" how to resolve this name to "\\server\project\"??? Is there any solution for this??
I select this folder over an File Dialog, and they give me this path back, but how to convert him to this LAN name!
Thanks for any help!
The "\" is known as the (or one of?) "escape" character.
that means that if you want to put a tab, for example in a string you would put "\t" to indicate a tablature; that means that the string will look at the "\" and the next character after that and see a "t" and will understand it as a "tablature" (same thing for quotes and double quotes)
so, in general, when a string (CString) encounters a "\" in a string it will check the next character and see if it means something.
the question is how can I put a literal "\" in string without being recognize as an escape character ?
the anwser is to double the "\" ...
str = "C:\\Windows";
When hard-coding paths in string one should always put "\\", but, for example, if you have a UI with an edit box to type in the path, you don't need to use the "\\" you can just use the "\".