Click here to Skip to main content
15,915,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralToolbar is disabled Pin
tahirjhangvi17-Dec-02 5:56
tahirjhangvi17-Dec-02 5:56 
GeneralRe: Toolbar is disabled Pin
tahirjhangvi17-Dec-02 5:59
tahirjhangvi17-Dec-02 5:59 
GeneralRe: Toolbar is disabled Pin
act_x17-Dec-02 8:30
act_x17-Dec-02 8:30 
Generalwin32 app code to console mode help needed Pin
joshfl17-Dec-02 5:27
joshfl17-Dec-02 5:27 
GeneralRe: win32 app code to console mode help needed Pin
Rick York17-Dec-02 5:40
mveRick York17-Dec-02 5:40 
GeneralRe: win32 app code to console mode help needed Pin
joshfl17-Dec-02 6:41
joshfl17-Dec-02 6:41 
GeneralRe: win32 app code to console mode help needed Pin
joshfl17-Dec-02 7:39
joshfl17-Dec-02 7:39 
GeneralRe: win32 app code to console mode help needed Pin
Nitron17-Dec-02 7:40
Nitron17-Dec-02 7:40 
In project-->Settings-->General

For MFC: Use MFC in shared DLL.

Then in the start of main():
// to use the windows CFileDialog, first initialize MFC...
if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
{
    // if we get in here, we couldn't init MFC
    cerr << _T("Fatal Error: MFC initialization failed") << endl;
    return 1;
}

else
{
    //MFC init OK, go on...
}


That should do it...


- Nitron


"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
Generalurgent plz help Pin
aymenz17-Dec-02 4:17
aymenz17-Dec-02 4:17 
GeneralRe: urgent plz help Pin
Anonymous17-Dec-02 4:21
Anonymous17-Dec-02 4:21 
GeneralRe: urgent plz help Pin
aymenz17-Dec-02 4:26
aymenz17-Dec-02 4:26 
GeneralRe: urgent plz help Pin
Stefan Pedersen17-Dec-02 4:34
Stefan Pedersen17-Dec-02 4:34 
GeneralRe: urgent plz help Pin
Michael P Butler17-Dec-02 4:38
Michael P Butler17-Dec-02 4:38 
GeneralRe: urgent plz help Pin
Stefan Pedersen17-Dec-02 4:51
Stefan Pedersen17-Dec-02 4:51 
GeneralRe: urgent plz help Pin
Jason Henderson17-Dec-02 5:55
Jason Henderson17-Dec-02 5:55 
GeneralRe: urgent plz help Pin
Christian Graus17-Dec-02 8:08
protectorChristian Graus17-Dec-02 8:08 
GeneralRe: urgent plz help Pin
Michael P Butler17-Dec-02 4:37
Michael P Butler17-Dec-02 4:37 
GeneralRe: urgent plz help Pin
Anonymous17-Dec-02 14:43
Anonymous17-Dec-02 14:43 
GeneralRe: urgent plz help Pin
Nitron17-Dec-02 4:59
Nitron17-Dec-02 4:59 
GeneralRe: urgent plz help Pin
Christian Graus17-Dec-02 8:09
protectorChristian Graus17-Dec-02 8:09 
GeneralRe: urgent plz help Pin
Nitron17-Dec-02 8:16
Nitron17-Dec-02 8:16 
GeneralRe: urgent plz help Pin
lucy17-Dec-02 8:34
lucy17-Dec-02 8:34 
GeneralKill 16-bit Task/process Pin
AnTri17-Dec-02 3:59
AnTri17-Dec-02 3:59 
GeneralRe: Kill 16-bit Task/process Pin
Rage17-Dec-02 4:07
professionalRage17-Dec-02 4:07 
GeneralRe: Kill 16-bit Task/process Pin
AnTri17-Dec-02 5:11
AnTri17-Dec-02 5:11 

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.