two questions about visual c++
Hello
I have built a GTK+-application with visual c++ 2005 express. It all works fine, except fot two minor things:
- when I run my program, a command window appears. How can I suppress this window?
- the icon in the top left of the window title is the standard GTK logo. How can I replace this with my own logo?
regards
Felix
[381 byte] By [
thundur] at [2007-12-27]
hello
Sorry for lack of reply. Does the problems persists? If it has been resolved, then skip the following message:
A console application require a console window, you can use /subsystem linker option to swith your application to windows application so the console window won't comes up. see this article in MSDN to learn /subsystem option. you might get a LNK2019 after doing this that says "unresolved external symbol _WinMain@16 referenced in function tmainCRTStartup", this is because the windows application looking for WinMain function as its entry function, to fix this, you can change your main() entry to WinMain() entry.
For the second question, you can either use resource editor to modify decault App icon or replace the current icon with your own icon by replace the app icon file with your own icon file.
regards,
rico