RE: Nothing is compiled.
From: R Selvam (selvamselvam_at_hotmail.com)
Date: 02/11/04
- Next message: R Selvam: "RE: Nothing is compiled."
- Previous message: Steinar: "Languages in InstallShield"
- In reply to: Eitan: "Nothing is compiled."
- Next in thread: R Selvam: "RE: Nothing is compiled."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 11 Feb 2004 04:21:07 -0800
Hello,
For VC 6.0,
and first testing and compiling a project,
I did : file -> new -> win32 Application, and choose "A typical Hello
application".
Compile was fine.
Then I put a button on "IDD_ABOUTBOX", with name : Button1.
I did : view -> class wizard, the I got the message : the class wizard
database not exist - I have pressed yes.
Then press OK, when selecting source files (with no file name).
Then I got the message : IDD_ABOUTBOX is a new resource ... -> I have
selected "Create a new class", and press OK, choose a name for my class and
close the MFC ClassWizard windows.
That's all.
After compile I got the message : file myfile.exe does not exist ... I have
choosed yes (build).
Then there are 16 errors on my compiler, which I don't understand why.
Help, please.
Here are the messages :
----------------------------
c:\projects\vc\tests\testcom9\myclass.h(14) : error C2504: 'CDialog' : base
class undefined
c:\projects\vc\tests\testcom9\myclass.h(17) : error C2629: unexpected 'class
MyClass ('
c:\projects\vc\tests\testcom9\myclass.h(17) : error C2238: unexpected
token(s) preceding ';'
c:\projects\vc\tests\testcom9\myclass.h(30) : error C2061: syntax error :
identifier 'CDataExchange'
c:\projects\vc\tests\testcom9\myclass.h(41) : error C2143: syntax error :
missing ';' before '}'
C:\Projects\VC\tests\TestCom9\MyClass.cpp(18) : error C2065: 'CWnd' :
undeclared identifier
C:\Projects\VC\tests\TestCom9\MyClass.cpp(18) : error C2065: 'pParent' :
undeclared identifier
C:\Projects\VC\tests\TestCom9\MyClass.cpp(19) : error C2448: '<Unknown>' :
function-style initializer appears to be a function definition
C:\Projects\VC\tests\TestCom9\MyClass.cpp(19) : error C2143: syntax error :
missing ';' before ':'
C:\Projects\VC\tests\TestCom9\MyClass.cpp(20) : error C2448: '<Unknown>' :
function-style initializer appears to be a function definition
C:\Projects\VC\tests\TestCom9\MyClass.cpp(27) : error C2065: 'CDataExchange'
: undeclared identifier
C:\Projects\VC\tests\TestCom9\MyClass.cpp(27) : error C2065: 'pDX' :
undeclared identifier
C:\Projects\VC\tests\TestCom9\MyClass.cpp(28) : error C2448: '<Unknown>' :
function-style initializer appears to be a function definition
C:\Projects\VC\tests\TestCom9\MyClass.cpp(36) : error C2061: syntax error :
identifier 'CDialog'
C:\Projects\VC\tests\TestCom9\MyClass.cpp(40) : error C2146: syntax error :
missing ';' before identifier 'END_MESSAGE_MAP'
C:\Projects\VC\tests\TestCom9\MyClass.cpp(40) : fatal error C1004:
unexpected end of file found
Ok. Your project is basically a Win32 based application. So, you do not use MFC classes. If you want use class wizard, you can use MFC based application (for your project choose MFC Appwizard Exe -> Dialog based application in step 2). You can insert buttons and add message handlers from class wizard.
Or if you want Win32 based application you do not use class wizard. You directly use WM_messages.
With Regards
R.Selvam
- Next message: R Selvam: "RE: Nothing is compiled."
- Previous message: Steinar: "Languages in InstallShield"
- In reply to: Eitan: "Nothing is compiled."
- Next in thread: R Selvam: "RE: Nothing is compiled."
- Messages sorted by: [ date ] [ thread ]