Declaring only public class members - doesn't work
Date: Mon, 12 Apr 2004 11:34:17 +0800
I was writing some C++ class stuff in VC. After adding a strcpy(),
whenever the program is exiting I receive a "Unhandled exception: user
breakpoint". Growl, I traced assembly line by line, spend one night
wondering why my strcpy() is overwriting data space. But I couldn't
When I replace a header file which exports the class declaration as
with the whole declaration
everything falls in place. Big Oops!
So I gather we are not allowed to declare just the public members when
exporting? Are there any other ways to hide private declarations?
Thanks a bunch!
- Re: Declaring only public class members - doesnt work
... Growl, I traced assembly line by line, spend one night ... > wondering why my strcpy() is overwriting data space. ... > When I replace a header file which exports the class declaration as ...
- Re: Segmentation fault on 64 bit
... invoking strcpy(), which is UB. ... and if no declaration is visible for this identifier, ... and use it without including its associated header. ...
- Re: error C2375: strcpy : redefinition; different linkage
... 'strcpy': redefinition; different linkage ... It looks like we end up including the declaration of strcpyfrom both the ... C2375: 'strcpy': redefinition; different linkage ...
- Re: Sandard dll
... __declspecis redundant with, and possibly even in conflict with, the EXPORTS ... declaration in the .def file. ... declaration above uses CDECL linkage, ... indicating that the function is a __stdcall linkage with 0 bytes ...
- Re: CLR and CreateFile w/ FILE_FLAG_DELETE_ON_CLOSE causes FileLoadException
... assemblies use metadata instead of the Win32 PE exports table, ... compiler creates mixed-mode assemblies, but you used the MSIL assembler. ... declaration and uses that. ... "The ILAsm syntax for declaring a method as an unmanaged export is ...