Click here to Skip to main content
16,012,223 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Raghavendra Pise6-Nov-06 20:22
Raghavendra Pise6-Nov-06 20:22 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Hamid_RT7-Nov-06 4:20
Hamid_RT7-Nov-06 4:20 
AnswerRe: unresolved external symbol _wWinMain@16 Pin
VCSharp0076-Nov-06 21:42
VCSharp0076-Nov-06 21:42 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Raghavendra Pise6-Nov-06 22:09
Raghavendra Pise6-Nov-06 22:09 
AnswerRe: unresolved external symbol _wWinMain@16 Pin
fat_boy6-Nov-06 23:43
fat_boy6-Nov-06 23:43 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Raghavendra Pise7-Nov-06 0:34
Raghavendra Pise7-Nov-06 0:34 
QuestionWrite text to the command prompt in Dlg based Appln. Pin
zxc896-Nov-06 19:30
zxc896-Nov-06 19:30 
AnswerRe: Write text to the command prompt in Dlg based Appln. Pin
fat_boy6-Nov-06 23:50
fat_boy6-Nov-06 23:50 
I dont know about .Net, but MFC implements the following:

BOOL CSetupApp::InitInstance()
{
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

CSetupDlg dlg;
m_pMainWnd = &dlg;


if(stricmp(m_lpCmdLine, "-f") == 0)
dlg.ForceInstall = TRUE;
else
dlg.ForceInstall = FALSE;



int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}

// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}

for dialog based apps.

ie, there is an inbuilt command line to the app, that you can handle, and choose to create the dialog or, in your case, just print to standard out.

Perhaps .Net has a similar mechanism.

Truth is the subjection of reality to an individuals perception

QuestionBackup policy algorithm. Pin
baldha rakesh6-Nov-06 19:16
baldha rakesh6-Nov-06 19:16 
QuestionAbout Dll's Pin
Neeraj Sinha6-Nov-06 19:14
Neeraj Sinha6-Nov-06 19:14 
AnswerRe: About Dll's Pin
Hamid_RT6-Nov-06 20:06
Hamid_RT6-Nov-06 20:06 
Questionproblems on mutual class declaration introduction between classes Pin
cy163@hotmail.com6-Nov-06 18:37
cy163@hotmail.com6-Nov-06 18:37 
AnswerRe: problems on mutual class declaration introduction between classes [modified] Pin
Steve Echols6-Nov-06 18:51
Steve Echols6-Nov-06 18:51 
GeneralRe: problems on mutual class declaration introduction between classes Pin
Cedric Moonen6-Nov-06 20:25
Cedric Moonen6-Nov-06 20:25 
GeneralRe: problems on mutual class declaration introduction between classes Pin
Steve Echols6-Nov-06 20:29
Steve Echols6-Nov-06 20:29 
GeneralRe: problems on mutual class declaration introduction between classes Pin
cy163@hotmail.com7-Nov-06 2:25
cy163@hotmail.com7-Nov-06 2:25 
GeneralRe: problems on mutual class declaration introduction between classes Pin
Cedric Moonen7-Nov-06 2:42
Cedric Moonen7-Nov-06 2:42 
GeneralRe: problems on mutual class declaration introduction between classes [modified] Pin
cy163@hotmail.com7-Nov-06 12:15
cy163@hotmail.com7-Nov-06 12:15 
GeneralRe: problems on mutual class declaration introduction between classes Pin
Cedric Moonen7-Nov-06 20:23
Cedric Moonen7-Nov-06 20:23 
GeneralRe: problems on mutual class declaration introduction between classes Pin
cy163@hotmail.com8-Nov-06 0:52
cy163@hotmail.com8-Nov-06 0:52 
GeneralRe: problems on mutual class declaration introduction between classes [modified] Pin
cy163@hotmail.com7-Nov-06 2:19
cy163@hotmail.com7-Nov-06 2:19 
QuestionCListCtrl Pin
kk.tvm6-Nov-06 18:18
kk.tvm6-Nov-06 18:18 
AnswerRe: CListCtrl Pin
prasad_som6-Nov-06 18:36
prasad_som6-Nov-06 18:36 
AnswerRe: CListCtrl Pin
Nibu babu thomas6-Nov-06 18:43
Nibu babu thomas6-Nov-06 18:43 
AnswerRe: CListCtrl Pin
Hamid_RT7-Nov-06 4:20
Hamid_RT7-Nov-06 4:20 

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.