Click here to Skip to main content
16,011,502 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems with SymGetModuleBase Pin
Susto2-Jul-02 3:32
Susto2-Jul-02 3:32 
GeneralRe: Problems with SymGetModuleBase Pin
#realJSOP2-Jul-02 4:27
professional#realJSOP2-Jul-02 4:27 
GeneralPrint a bitmap trouble Pin
vtotem1-Jul-02 21:02
vtotem1-Jul-02 21:02 
GeneralRe: Print a bitmap trouble Pin
Mike Nordell2-Jul-02 6:43
Mike Nordell2-Jul-02 6:43 
GeneralFlexiGrid Pin
subra1-Jul-02 20:54
subra1-Jul-02 20:54 
GeneralAn app with GUI and CUI Pin
Janine1-Jul-02 20:51
Janine1-Jul-02 20:51 
GeneralRe: An app with GUI and CUI Pin
Vuemme2-Jul-02 2:03
Vuemme2-Jul-02 2:03 
GeneralRe: An app with GUI and CUI Pin
Mike Nordell2-Jul-02 6:53
Mike Nordell2-Jul-02 6:53 
Basically, you're screwed. Seriously. Frown | :-(

The only way to get the stdio handles connected to the console starting the app is by having a main() and the app "tagged" as a console app by the PE flags (linker option /subsystem:console). This is one parts of the baggage we carry from Win16.

The default behaviour for a console app to be started is that Windows (I don't know if its the module loader, but I guess it is) allocates a console for a console-tagged app. The only way I know about to change this is to change the flags passed to CreateProcess (to inhibit the creation of the console window). When you have an app that is started by another process (such as Explorer.exe when double-clocking an executable) I can only come to think of hooking (system-wide, loading your DLL for every created process and changing the import translation table) the CreateProcess call to stop it from doing this on a per-application basis.

As I initially wrote, you're basically screwed. Sorry...


GeneralRe: An app with GUI and CUI Pin
Janine3-Jul-02 19:37
Janine3-Jul-02 19:37 
Generalbackcolor property urgent!! pl. reply Pin
shanker1-Jul-02 20:07
shanker1-Jul-02 20:07 
GeneralJust single instance of my app. Pin
DerekSaw1-Jul-02 17:23
DerekSaw1-Jul-02 17:23 
GeneralRe: Just single instance of my app. Pin
Atlantys1-Jul-02 17:44
Atlantys1-Jul-02 17:44 
GeneralRe: Just single instance of my app. Pin
Nish Nishant1-Jul-02 22:47
sitebuilderNish Nishant1-Jul-02 22:47 
GeneralRe: Just single instance of my app. Pin
2-Jul-02 4:51
suss2-Jul-02 4:51 
GeneralRe: Just single instance of my app. Pin
Neville Franks1-Jul-02 23:28
Neville Franks1-Jul-02 23:28 
GeneralRe: Just single instance of my app. Pin
Scott H. Settlemier2-Jul-02 3:23
Scott H. Settlemier2-Jul-02 3:23 
Questionhow to delete a print job ? Pin
zhu1-Jul-02 17:21
zhu1-Jul-02 17:21 
Generalsending a Message to OnDraw Pin
1-Jul-02 17:17
suss1-Jul-02 17:17 
GeneralRe: sending a Message to OnDraw Pin
Ernest Laurentin1-Jul-02 17:40
Ernest Laurentin1-Jul-02 17:40 
GeneralOpening a File from server Pin
Rene De La Garza1-Jul-02 16:41
Rene De La Garza1-Jul-02 16:41 
GeneralRe: Opening a File from server Pin
benjymous2-Jul-02 0:27
benjymous2-Jul-02 0:27 
QuestionHow does ::MessageBox(...) work?? Pin
1-Jul-02 15:08
suss1-Jul-02 15:08 
AnswerRe: How does ::MessageBox(...) work?? Pin
Christian Graus1-Jul-02 15:28
protectorChristian Graus1-Jul-02 15:28 
GeneralRe: How does ::MessageBox(...) work?? Pin
David Carkeet1-Jul-02 18:06
David Carkeet1-Jul-02 18:06 
GeneralRe: How does ::MessageBox(...) work?? Pin
Christian Graus1-Jul-02 18:54
protectorChristian Graus1-Jul-02 18:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.