- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have an console application that outputs only to files and I would like to suppress the windows that automaticaly the console application creates.
Is there a way to do this?
Thanks,
Reinaldo
Is there a way to do this?
Thanks,
Reinaldo
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not as a console application. What you want to do is make it a "Windowing Application" with a WinMain entry point. You can skip all of the stuff about window creation and class registration - all you need is the WinMain function with the right declaration (the project wizard will create one for you) and the rest can be discarded. When this program is run, there will be nothing on the screen that you didn't put there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here's what a minimal source would look like:
[plain]integer(DWORD) function WinMain( hInstance, hPrevInstance, lpszCmdLine, nCmdShow )
!DEC$ ATTRIBUTES STDCALL, DECORATE, ALIAS : 'WinMain' :: WinMain
use ifwinty
implicit none
integer(HANDLE) hInstance
integer(HANDLE) hPrevInstance
integer(LPVOID) lpszCmdLine
integer(DWORD) nCmdShow
! Your code goes here
end function WinMain[/plain]
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page