Consult with cb6 write Automation inexplicable errors (system-generated code is wrong, I have no tricks up ......)

Category: C/C++ -> ActiveX/COM/DCOM Author: fz6100125 Date: 2001-08-03 16:28:27
 
fz6100125
2001-08-03 16:28:27
Error message is as follows:

[C + + Error] Project1.cpp (9): E2285 Could not find a match for 'TComModule :: TATLModule (int) '
[C + + Error] Project1.cpp (40): E2451 Undefined symbol' exception '

strange thing is that I did not add Any code that is automatically generated, but still there are wrong way? Written previously cb5 can compile and run correctly.
I just created a new Application, and then add a Automation Object, to die, we help to see how else to you? ?

error page code is as follows:

/ / --------------------------- ------------------------------------------------

# include <vcl.h>
# pragma hdrstop
# include <atl\atlmod.h>
# include "asdfsaImpl.h" ;
USEFORM ("Unit1.cpp", Form1);
/ / ------------------------- --------------------------------------------------
TComModule _ProjectModule (0 / * InitATLServer * /); ;/ / / / / / / / / Error
TComModule & _Module = _ProjectModule;

/ / The ATL Object map holds an array of _ATL_OBJMAP_ENTRY structures that
/ / described the objects of your OLE server. The MAP is handed to your
/ / project's CComModule-derived _Module object via the Init method.
/ /
BEGIN_OBJECT_MAP (ObjectMap)
OBJECT_ENTRY (CLSID_asdfsa, TasdfsaImpl)
END_OBJECT_MAP ()
/ / ------------------------------------- --------------------------------------
WINAPI WinMain (HINSTANCE, HINSTANCE, LPSTR, int)
{
try
{
; Application-> Initialize ();
Application-> CreateForm (__classid (TForm1), & Form1);
Application-> Run ();
;}
catch (Exception & exception)
{
Application-> ShowException (& exception);
}
catch (. ..)
{
try
; {
throw Exception ("" );
}
catch ( Exception & exception)
{
; Application-> ShowException (& exception); / / / / / / error
}
}
return 0;
}
/ / -------------------- -------------------------------------------------- -----
thomas193
2001-08-03 16:44:04
may be less header file
qq532695353
2001-08-03 16:51:06
should all be in the # include <atl\atlmod.h> inside, strange

understand the ......
xxiaobenben
2001-08-03 16:57:10
Top about it for ourselves, we hope to be able to help us to see
xzy1987125
2001-08-03 17:05:48
Post has been inundated