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

C / C++ / MFC

 
GeneralMemory Pin
7-Dec-01 22:13
suss7-Dec-01 22:13 
GeneralRe: Memory Pin
Nish Nishant7-Dec-01 22:33
sitebuilderNish Nishant7-Dec-01 22:33 
QuestionCan I create a toolbar without framewnd? Pin
wormeye7-Dec-01 21:27
wormeye7-Dec-01 21:27 
AnswerRe: Can I create a toolbar without framewnd? Pin
Nish Nishant7-Dec-01 22:04
sitebuilderNish Nishant7-Dec-01 22:04 
GeneralRe: Can I create a toolbar without framewnd? Pin
wormeye8-Dec-01 17:21
wormeye8-Dec-01 17:21 
GeneralProblem with Popup Window ( Open in new window...OnNewWindow2 function ) Pin
7-Dec-01 19:24
suss7-Dec-01 19:24 
GeneralJust a couple of questions Pin
7-Dec-01 17:55
suss7-Dec-01 17:55 
GeneralRe: Just a couple of questions Pin
Nish Nishant7-Dec-01 18:36
sitebuilderNish Nishant7-Dec-01 18:36 
Hope this helps...
Nish

#include "stdafx.h"
#include <afx.h>
#include <afxwin.h>  
#include <afxext.h>  
#include <afxdtctl.h>

CWinApp theApp;

int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)
{
	int nRetCode = 0;

	if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
	{
		
		AfxMessageBox("somethin screwed up :-(");
		nRetCode = 1;
	}
	else
	{		
	
		AfxMessageBox("Cool, we are runnin on MFC");
	}

	return nRetCode;
}

GeneralRe: Just a couple of questions Pin
Rick York7-Dec-01 19:44
mveRick York7-Dec-01 19:44 
GeneralRe: Just a couple of questions Pin
Nish Nishant7-Dec-01 19:55
sitebuilderNish Nishant7-Dec-01 19:55 
GeneralRe: CP script is messin up my code :-) Pin
Nish Nishant7-Dec-01 18:39
sitebuilderNish Nishant7-Dec-01 18:39 
GeneralRe: Just a couple of questions Pin
Christian Graus8-Dec-01 0:48
protectorChristian Graus8-Dec-01 0:48 
GeneralRe: Just a couple of questions Pin
Alvaro Mendez11-Dec-01 6:17
Alvaro Mendez11-Dec-01 6:17 
Generala question or 2 Pin
Cnoob7-Dec-01 16:34
Cnoob7-Dec-01 16:34 
GeneralRe: a question or 2 Pin
Nish Nishant7-Dec-01 17:08
sitebuilderNish Nishant7-Dec-01 17:08 
GeneralRe: a question or 2 Pin
Not Active7-Dec-01 17:16
mentorNot Active7-Dec-01 17:16 
GeneralRe: a question or 2 Pin
Christian Graus8-Dec-01 0:52
protectorChristian Graus8-Dec-01 0:52 
GeneralRe: a question or 2 Pin
Michael P Butler8-Dec-01 7:37
Michael P Butler8-Dec-01 7:37 
GeneralRe: a question or 2 Pin
Matt Newman8-Dec-01 9:06
Matt Newman8-Dec-01 9:06 
GeneralWM_CLOSE or WM_DESTROY Pin
Steve L.7-Dec-01 16:15
Steve L.7-Dec-01 16:15 
GeneralRe: WM_CLOSE or WM_DESTROY Pin
Nish Nishant7-Dec-01 17:10
sitebuilderNish Nishant7-Dec-01 17:10 
GeneralRe: WM_CLOSE or WM_DESTROY Pin
Henry Jacobs8-Dec-01 10:38
Henry Jacobs8-Dec-01 10:38 
QuestionHow can you make a dialog show up in the taskbar? Pin
Cathy7-Dec-01 14:14
Cathy7-Dec-01 14:14 
AnswerRe: How can you make a dialog show up in the taskbar? Pin
Michael Dunn7-Dec-01 16:50
sitebuilderMichael Dunn7-Dec-01 16:50 
GeneralRe: How can you make a dialog show up in the taskbar? Pin
Cathy10-Dec-01 7:59
Cathy10-Dec-01 7:59 

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.