Click here to Skip to main content
16,018,394 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Passing a pointer to a function/dynamic memory allocation Pin
Arman S.22-May-07 20:04
Arman S.22-May-07 20:04 
AnswerRe: Passing a pointer to a function/dynamic memory allocation Pin
zhang80060522-May-07 20:34
zhang80060522-May-07 20:34 
AnswerRe: Passing a pointer to a function/dynamic memory allocation Pin
David Crow23-May-07 4:21
David Crow23-May-07 4:21 
AnswerRe: Passing a pointer to a function/dynamic memory allocation Pin
hpjchobbes23-May-07 5:03
hpjchobbes23-May-07 5:03 
Questionmenu change for child window Pin
prithaa22-May-07 19:40
prithaa22-May-07 19:40 
AnswerRe: menu change for child window Pin
Anurag Gandhi22-May-07 19:48
professionalAnurag Gandhi22-May-07 19:48 
GeneralRe: menu change for child window Pin
prithaa22-May-07 21:11
prithaa22-May-07 21:11 
Questionerror in a very simple VC++ program Pin
tyagineha22-May-07 19:09
tyagineha22-May-07 19:09 
hye,
I m new to VC++
i wrote a simple program in VC++
following is the code :

#include<afxwin.h>


class CMainWin :public CFrameWnd
{
public:
CMainWin();
Declare_Message_Map()
};


CMainWin ::CMainWin()
{
Create(NULL,"Hello");
}


class CApp:public CWinApp
{

bool InitInstace();
};

Bool CApp :: InitInstance()
{
m_pMainWnd=new MainWin;
m_pMainWnd ->ShowWindow(m_nCmdShow);
m_pMainWnd ->UpdateWindow();
return true;
}

Begin_Message_Map(CMainWin,CFrameWnd)
End_Message_Map()

CApp App;


but i m gtng two errors
1) syntax error : missing ';' before type 'long'
2)fatal error C1004: unexpected end of file found



Neha
AnswerRe: error in a very simple VC++ program Pin
Anurag Gandhi22-May-07 19:33
professionalAnurag Gandhi22-May-07 19:33 
GeneralRe: error in a very simple VC++ program Pin
tyagineha22-May-07 20:06
tyagineha22-May-07 20:06 
GeneralRe: error in a very simple VC++ program Pin
Hamid Taebi23-May-07 6:17
professionalHamid Taebi23-May-07 6:17 
AnswerRe: error in a very simple VC++ program Pin
Sarath C22-May-07 19:41
Sarath C22-May-07 19:41 
AnswerRe: error in a very simple VC++ program Pin
tyagineha22-May-07 23:32
tyagineha22-May-07 23:32 
GeneralRe: error in a very simple VC++ program Pin
Sarath C22-May-07 23:54
Sarath C22-May-07 23:54 
AnswerRe: error in a very simple VC++ program Pin
tyagineha23-May-07 0:24
tyagineha23-May-07 0:24 
GeneralRe: error in a very simple VC++ program Pin
Sarath C23-May-07 0:26
Sarath C23-May-07 0:26 
AnswerRe: error in a very simple VC++ program [modified] Pin
tyagineha23-May-07 0:37
tyagineha23-May-07 0:37 
AnswerRe: error in a very simple VC++ program [modified] Pin
tyagineha23-May-07 1:18
tyagineha23-May-07 1:18 
GeneralRe: error in a very simple VC++ program [modified] Pin
Sarath C23-May-07 2:22
Sarath C23-May-07 2:22 
GeneralRe: error in a very simple VC++ program Pin
David Crow23-May-07 4:24
David Crow23-May-07 4:24 
QuestionOTL Connectivity Pin
jannathali22-May-07 19:03
jannathali22-May-07 19:03 
AnswerRe: OTL Connectivity Pin
Hamid Taebi22-May-07 19:31
professionalHamid Taebi22-May-07 19:31 
QuestionUSB: Write data to a USB device via USB channel? Pin
Maxwell Chen22-May-07 16:50
Maxwell Chen22-May-07 16:50 
AnswerRe: USB: Write data to a USB device via USB channel? Pin
Cedric Moonen22-May-07 20:00
Cedric Moonen22-May-07 20:00 
GeneralRe: USB: Write data to a USB device via USB channel? Pin
Maxwell Chen22-May-07 20:34
Maxwell Chen22-May-07 20:34 

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.