Click here to Skip to main content
15,923,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUpdating a SLT map Pin
CodingLover3-Nov-08 21:39
CodingLover3-Nov-08 21:39 
NewsRe: Updating a SLT map Pin
CodingLover3-Nov-08 21:44
CodingLover3-Nov-08 21:44 
QuestionCreate two executable files ( one GUI and one command line ) Pin
Arif Liminto3-Nov-08 20:51
professionalArif Liminto3-Nov-08 20:51 
AnswerRe: Create two executable files ( one GUI and one command line ) Pin
Cedric Moonen3-Nov-08 20:56
Cedric Moonen3-Nov-08 20:56 
GeneralRe: Create two executable files ( one GUI and one command line ) Pin
Arif Liminto3-Nov-08 21:11
professionalArif Liminto3-Nov-08 21:11 
GeneralRe: Create two executable files ( one GUI and one command line ) Pin
Cedric Moonen4-Nov-08 1:16
Cedric Moonen4-Nov-08 1:16 
GeneralRe: Create two executable files ( one GUI and one command line ) Pin
Arif Liminto5-Nov-08 15:16
professionalArif Liminto5-Nov-08 15:16 
AnswerRe: Create two executable files ( one GUI and one command line ) Pin
KarstenK3-Nov-08 21:16
mveKarstenK3-Nov-08 21:16 
You can do it in one executable.
You need to separate your "working" code from the gui-code (classes). This is always a good idea beacuse of better reuse of code. Cool | :cool: Cool | :cool: Cool | :cool:
In the command-line (or registry) for the app you need a parameter to control the behavior.

plain example:

int main(...)
{
CWorking work;
work.DoStuff();
//showing the data?
if( bGui == true )
{
CGuiDialog dlg( &work );
dlg.DoModal();
}
return 0;
}

I use a lot of may classes/code in different projects.

Greetings from Germany

QuestionHow to block right click menu (Context Menu) on MS-Office documents. Pin
SNI3-Nov-08 19:41
SNI3-Nov-08 19:41 
AnswerRe: How to block right click menu (Context Menu) on MS-Office documents. Pin
Nishad S4-Nov-08 1:45
Nishad S4-Nov-08 1:45 
QuestionSmartDevice (wincows mobile) program Pin
zon_cpp3-Nov-08 19:23
zon_cpp3-Nov-08 19:23 
Questiondiffrence between IT and IAT Pin
zon_cpp3-Nov-08 19:21
zon_cpp3-Nov-08 19:21 
QuestionCreating a csv file in a dialog based MFC application Pin
SeshaSridhar3-Nov-08 19:08
SeshaSridhar3-Nov-08 19:08 
AnswerRe: Creating a csv file in a dialog based MFC application Pin
Chandrasekharan P3-Nov-08 19:19
Chandrasekharan P3-Nov-08 19:19 
AnswerRe: Creating a csv file in a dialog based MFC application Pin
Hamid_RT3-Nov-08 19:28
Hamid_RT3-Nov-08 19:28 
Questionhow to use WriteProfileString and GetProfileString MFC functions??? Pin
anna mathew3-Nov-08 19:02
anna mathew3-Nov-08 19:02 
AnswerRe: how to use WriteProfileString and GetProfileString MFC functions??? Pin
Hamid_RT3-Nov-08 19:26
Hamid_RT3-Nov-08 19:26 
AnswerRe: how to use WriteProfileString and GetProfileString MFC functions??? Pin
CPallini3-Nov-08 22:02
mveCPallini3-Nov-08 22:02 
GeneralRe: how to use WriteProfileString and GetProfileString MFC functions??? Pin
anna mathew3-Nov-08 22:29
anna mathew3-Nov-08 22:29 
QuestionRe: how to use WriteProfileString and GetProfileString MFC functions??? Pin
anna mathew3-Nov-08 22:31
anna mathew3-Nov-08 22:31 
AnswerRe: how to use WriteProfileString and GetProfileString MFC functions??? Pin
CPallini3-Nov-08 22:55
mveCPallini3-Nov-08 22:55 
GeneralRe: how to use WriteProfileString and GetProfileString MFC functions??? Pin
larsho3-Mar-09 22:10
larsho3-Mar-09 22:10 
GeneralRe: how to use WriteProfileString and GetProfileString MFC functions??? Pin
CPallini3-Mar-09 22:38
mveCPallini3-Mar-09 22:38 
GeneralRe: how to use WriteProfileString and GetProfileString MFC functions??? Pin
larsho3-Mar-09 22:50
larsho3-Mar-09 22:50 
Questiondisabling controls Pin
ashishmax473-Nov-08 18:27
ashishmax473-Nov-08 18:27 

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.