|
-
July 23rd, 2005, 12:36 AM
#1
windows Application with no window
hi all,
How do I go about creating a windows application in winAPI and MFC without a window.
thanks in advance.
Srikanth.
best regards
srikanth
-
July 23rd, 2005, 05:00 AM
#2
Re: windows Application with no window
One way of doing that could be like, put all your stuff in InitInstance() and return FALSE in the end.
Another way could be, start your application in hidden mode, have a look at Dialogs: How to start your Dialog Application in hidden mode?
-
July 23rd, 2005, 05:14 AM
#3
Re: windows Application with no window
hi Ejaz,
thanks for the reply.
I don't want the window to be created at all. no processing messages..
just a blank application and run some code.
is it possible ? pls help.
thanks in advance,
best regards
srikanth
-
July 23rd, 2005, 05:52 AM
#4
Re: windows Application with no window
 Originally Posted by cbodapati
hi Ejaz,
thanks for the reply.
I don't want the window to be created at all. no processing messages..
just a blank application and run some code.
is it possible ? pls help.
thanks in advance,
Of course:
- Create a console application and do your stuff there
- Just don't create a window
No one forces you to create one...
Code:
#include <windows.h>
#include <stdlib.h>
int WINAPI WinMain ( HINSTANCE hInst, HINSTANCE hPrev, LPSTR CmdLine, int ShowCmd )
{
// Do your stuff right here
return 0;
}
-
July 24th, 2005, 02:37 AM
#5
Re: windows Application with no window
hi,
thanks, if some dialog is to be displayed then ?
best regards
srikanth
-
July 24th, 2005, 04:41 AM
#6
Re: windows Application with no window
 Originally Posted by cbodapati
hi all,
How do I go about creating a windows application in winAPI and MFC without a window.
 Originally Posted by cbodapati
if some dialog is to be displayed then ?
.. then display it. Just note first that a dialog is also a window.
-
August 17th, 2005, 04:37 PM
#7
Re: windows Application with no window
You could use MessageBox(...). You can open one from WinMain(...).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|