Hi all, I am new here on this forum and I use masm32 v8+ now for a while for developing a c64 emulator.
When u install the masm32 package there are lots of example sources and programs to checkout for getting started.
The compiled .exe files in this package are OK (for example when u start a pre-compiled example app, you get a small window with buttons, just try one of the win32 GUI example applications).
When I re-compile the source belonging to this .exe file, and then re-run the app, I se an annoying dos command window being displayed, _before_ the actual app-window.
When I make a whole new small window-app (GUI mode) then I still can see a DOS window being displayed while my win32 GUI-app is running. Home come?
I cannot get rid of it, and am very pleased if someone could tell me what I have to do hide it.
What is the cause ?
Every app. seems to do the same. Is it a configurable switch in masm command line ?
Or a source directive ?
Please help me out.
Thank you in advance. Happy coding !
Erik de Keijzer
The Netherlands
There is an option for the linker (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_.2f.SUBSYSTEM.asp), which sets a flag in the executable that tells if it's a console or gui application.
If you use /subsystem:console you get the console window, and if you use /subsystem:windows you do not.
There are gui and console versions of the bat files for building, in case you are using them (console versions have a C appended).
Hope that helps :U.
Hello Jibz,
After reading your reply to my question about the dos console, I realized that the gui editor I use (the Quick Editor v3 for windows) has 2 menu options for compiling.
It says "Project -> Assemble & Link" and the other (the one I have always been using) is "Project -> Console Assemble & Link).
I dunno why, but I never tried the option without the console for assembling & linking.
Now I did, and voila! Dos console gone!
How stupid (or unknown) can one be?
At least thanks very much for your fast reply and the sulution !
Great.
byebye
Erik de Keijzer