Click here to Skip to main content
15,886,106 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Run MFC Program Without Dialog Showing Pin
Andraw11110-Sep-13 8:20
Andraw11110-Sep-13 8:20 
GeneralRe: Run MFC Program Without Dialog Showing Pin
Alan Balkany10-Sep-13 8:23
Alan Balkany10-Sep-13 8:23 
GeneralRe: Run MFC Program Without Dialog Showing Pin
Andraw11110-Sep-13 11:11
Andraw11110-Sep-13 11:11 
GeneralRe: Run MFC Program Without Dialog Showing Pin
Alan Balkany10-Sep-13 11:39
Alan Balkany10-Sep-13 11:39 
AnswerRe: Run MFC Program Without Dialog Showing Pin
Richard MacCutchan10-Sep-13 10:42
mveRichard MacCutchan10-Sep-13 10:42 
GeneralRe: Run MFC Program Without Dialog Showing Pin
Andraw11110-Sep-13 11:13
Andraw11110-Sep-13 11:13 
GeneralRe: Run MFC Program Without Dialog Showing Pin
Richard MacCutchan10-Sep-13 11:31
mveRichard MacCutchan10-Sep-13 11:31 
GeneralRe: Run MFC Program Without Dialog Showing Pin
digitalspace.xjtu10-Sep-13 22:50
digitalspace.xjtu10-Sep-13 22:50 
Following Richard's idea , if you program based on MFC Dialog , I think you can change InitialInstance() like this

...........
C++
BOOL myParameter;
CMFCApplication4Dlg *pMainWnd = new CMFCApplication4Dlg;

if(myParameter)  // need a dialog
{
      pMainWnd->DoModal();
}else {    // needn't a dialog
pMainWnd->CreateEx(NULL,_T("STATIC"), L"Hi", WS_BORDER ,   //WS_VISIBLE is not need
          CRect(-15, -15, -15, -15), NULL,NULL);

     // start a thread which include while loop,
     // that can keep dialog running until you stop it by yourself
     // otherwise the programe will exit very quickly
}
........
GeneralRe: Run MFC Program Without Dialog Showing Pin
Freak3010-Sep-13 23:21
Freak3010-Sep-13 23:21 
AnswerRe: Run MFC Program Without Dialog Showing Pin
Andraw11111-Sep-13 3:35
Andraw11111-Sep-13 3:35 
GeneralRe: Run MFC Program Without Dialog Showing Pin
digitalspace.xjtu11-Sep-13 23:41
digitalspace.xjtu11-Sep-13 23:41 
QuestionRe: Run MFC Program Without Dialog Showing Pin
David Crow11-Sep-13 10:36
David Crow11-Sep-13 10:36 
QuestionModbus Protocol Pin
Member 99906089-Sep-13 19:17
Member 99906089-Sep-13 19:17 
AnswerRe: Modbus Protocol Pin
Richard MacCutchan9-Sep-13 21:03
mveRichard MacCutchan9-Sep-13 21:03 
AnswerRe: Modbus Protocol Pin
CPallini9-Sep-13 22:15
mveCPallini9-Sep-13 22:15 
Questionis c++ outdated, why is there no refference to it in windows virtual academy ? Pin
A.U.K9-Sep-13 0:03
professionalA.U.K9-Sep-13 0:03 
AnswerRe: is c++ outdated, why is there no refference to it in windows virtual academy ? Pin
NotPolitcallyCorrect9-Sep-13 1:47
NotPolitcallyCorrect9-Sep-13 1:47 
QuestionUsing CDHtmlDialog app, changing images (JPG,PNG) dynamically in the HTML Page Pin
Don Guy6-Sep-13 12:37
Don Guy6-Sep-13 12:37 
AnswerRe: Using CDHtmlDialog app, changing images (JPG,PNG) dynamically in the HTML Page Pin
Richard MacCutchan7-Sep-13 1:39
mveRichard MacCutchan7-Sep-13 1:39 
AnswerRe: Using CDHtmlDialog app, changing images (JPG,PNG) dynamically in the HTML Page Pin
Richard Andrew x647-Sep-13 11:29
professionalRichard Andrew x647-Sep-13 11:29 
GeneralRe: Using CDHtmlDialog app, changing images (JPG,PNG) dynamically in the HTML Page Pin
Don Guy8-Sep-13 9:31
Don Guy8-Sep-13 9:31 
GeneralRe: Using CDHtmlDialog app, changing images (JPG,PNG) dynamically in the HTML Page Pin
Richard Andrew x648-Sep-13 14:12
professionalRichard Andrew x648-Sep-13 14:12 
AnswerRe: Using CDHtmlDialog app, changing images (JPG,PNG) dynamically in the HTML Page Pin
SoMad8-Sep-13 15:38
professionalSoMad8-Sep-13 15:38 
QuestionReading Image (JPG) file as Binary to CString Pin
Don Guy6-Sep-13 6:03
Don Guy6-Sep-13 6:03 
AnswerRe: Reading Image (JPG) file as Binary to CString Pin
jeron16-Sep-13 6:09
jeron16-Sep-13 6:09 

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.