#if defined(_WIN32)
#if defined(BUILDLIB)
#define CLASSDECLARE( c ) class __declspec(dllexport) c
#else
#define CLASSDECLARE( c ) class c //note the absence of dllimport
#endif
#endif
#if defined(_SOMEOTHERPLATFORM)
#define CLASSDECLARE( c ) //irrelevent never seen by cl.exe
#endif
....
CLASSDECLARE( MyClass )
{
public:
....
}
Changing CLASSDECLARE in the case that BUILDLIB is not defined to
#define CLASSDECLARE( c ) class __declspec(dllimport) c
cases an ICE:
fatal error C1001: INTERNAL COMPILER ERROR (compiler file
'f:\vs70builds\3077\vc\Compiler\Utc\src\P2\p2symta b.c', line 4227)
Please choose the Technical Support command on the Visual C++ Help
menu, or open the Technical Support help file for more information
Solid : error PRJ0002 : error result returned from 'cl.exe'.
Okay, here goes :)I've been burying some hours trying to get an existing C dll (using __cdeclcalling...
By theunprofessional
When I try to sort my combo box I get the following error."Cannot sort a ComboBox that has a DataSou...
By raj
hi all i m doing aproject i visual C++ on image processing. i wan to extract the r g b colorof the ...
By vinnu
hi please help me to find the color of an image . i am doing a project on image processing . iam usi...
By vinnu
Hi group,when using unmanaged class with my managed app, I've seen errors whenincluding (for example...
By nicolas_hilaire_motorola_com, 3 Comments
I am not very fluent with computers, but I just got a new system withWin XP Pro x64 and it works gre...
By joejrk, 1 Comments
HI,I am converting VC++ 6.0 to .NET 2003. But I am getting linker error.Error:MyApplication fatal er...
By durga, 1 Comments
Hello,Until 6 years ago I was a C++ programmer. The last 6 years I've donesomething else than comput...
By bas, 4 Comments
Does VC7.1 support hyperthreading?I looked in the documentation but I could find no reference at all...
By andrewmaclean, 8 Comments
>We write lots of cross platform code at my company. To facilitate
>this, class declarations are handled like this (simplification):
>...
>cases an ICE:
Geoffrey,
Can you give us a minimal concrete example - something that can be
simply pasted into a console application and cause the problem.
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
davidlowndes | Mon, 31 Dec 2007 15:00:00 GMT |