Click here to Skip to main content
15,891,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhat is doscreatemutexsem Pin
Carl Cioffi11-Sep-13 9:57
Carl Cioffi11-Sep-13 9:57 
QuestionRe: What is doscreatemutexsem Pin
David Crow11-Sep-13 10:33
David Crow11-Sep-13 10:33 
AnswerRe: What is doscreatemutexsem Pin
Carl Cioffi12-Sep-13 3:20
Carl Cioffi12-Sep-13 3:20 
GeneralRe: What is doscreatemutexsem Pin
David Crow12-Sep-13 3:36
David Crow12-Sep-13 3:36 
GeneralRe: What is doscreatemutexsem Pin
Carl Cioffi12-Sep-13 3:55
Carl Cioffi12-Sep-13 3:55 
QuestionRun MFC Program Without Dialog Showing Pin
Andraw11110-Sep-13 6:53
Andraw11110-Sep-13 6:53 
AnswerRe: Run MFC Program Without Dialog Showing Pin
Alan Balkany10-Sep-13 7:58
Alan Balkany10-Sep-13 7:58 
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 

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.