Hi,
Thanks a lot for replying. Actually, this is my problem. I am using VC++ .net 2003 version to compile a program previously written in classic VC++.
The part of the code where the problem occurs is:
/ Windows message map.
BEGIN_MESSAGE_MAP( BoidsWin, CFrameWnd )
ON_WM_CREATE( ) -------> this is where the error message points to
ON_WM_PAINT( )
ON_WM_HSCROLL( )
ON_BN_CLICKED( 1, OnCentre )
ON_BN_CLICKED( 2, OnStartStop )
ON_WM_NCLBUTTONDOWN( )
ON_WM_NCRBUTTONDOWN( )
ON_WM_SIZE( )
ON_WM_CLOSE( )
ON_WM_DESTROY( )
// Window's Menu Items.
// Found in 'BoidsWinMenu.cpp'........................... code goes on.........
The error message output is:
------ Build started: Project: 3DBoids, Configuration: Debug Win32 ------
Compiling...
BoidsWin.cpp
WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET Server)
c:\Documents and Settings\Eric Michael\Desktop\try\new_boids\BoidsWin.cpp(15) : error C2440: 'static_cast' : cannot convert from 'void (__thiscall BoidsWin::* )(void)' to 'int (__thiscall CWnd::* )(LPCREATESTRUCT)'
None of the functions with this name in scope match the target type
Build log was saved at "file://c:\Documents and Settings\Eric Michael\Desktop\try\new_boids\Debug\BuildLog.htm"
3DBoids - 1 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
This is what I got as the error. Trust me... the program works very well in classic Visual C++6.0
I did not make any changes to the program and compiled it using .net, but got these errors. I even made the warning level to "NONE" for this program.
Is there any changes that I have to make in the code before I compile it using the vc++ .net . If any changes should be made, could anyone tell me what are the changes that I have to make?
Please help!!!!
Thanks
Aruna