![]() |
|
#1
|
|||
|
|||
Possible to explicitly create / launch console?To begin with, i'm designing a framework for debugging / logging / tracing for my system. There are several output options; output streams (RS 232 or http), file (probably txt) and console (more for developers debugging)... etc. The options can be mask to be enabled.
My problem is that how can i explicitly create / launch a console instead of using "main"? Thanks in advance! |
|||
|
#2
|
|||
|
|||
Re: Possible to explicitly create / launch console?Anyway i found the solution. To add on, my framework is in DLL.
Solution is to use the windows API "AllocConsole()" when attach to process and "FreeConsole()" when detach process. Just to share this solution if someone has the same problem as me. Well, i would use this thread to post another question. Sorry to myself if i hijacked this thread. The problem is about forward declaration of struct nested in a class. I can't seem to get the XXXX to compile. CPP / C++ / C Code:
CPP / C++ / C Code:
Thanks in advance! |
|
#3
|
|||
|
|||
Re: Possible to explicitly create / launch console?Quote:
|
Recent GIDBlog
R for statistics by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Java Web Start to Launch NetBeans | foxon177 | Java Forum | 1 | 15-May-2008 19:30 |
| win32 CreateProcess(), STARTUPINFO not working well for 98 console | Howard_L | C Programming Language | 0 | 09-Aug-2007 23:33 |
| create array of my class | amad1337 | Java Forum | 4 | 11-Nov-2006 08:26 |
| need help with a console menu system | BullBuchanan | C++ Forum | 6 | 20-Aug-2006 14:46 |
| Bloodshed Dev C++ Project Options | JdS | C++ Forum | 6 | 11-Nov-2005 17:23 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The