Home > Software engineering >  MFC cstrings assignment trigger First - chance exception at 0 x634f81b0 (mfc90ud. DLL) in XXX. Exe
MFC cstrings assignment trigger First - chance exception at 0 x634f81b0 (mfc90ud. DLL) in XXX. Exe

Time:05-27



As shown in figure, the program has just started, also in the process of initialization, data cstrings for assignment operation, trigger C "Unhandled exception at 0 x634f81b0 (mfc90ud. DLL) in XX. Exe: 0 xc0000005: Access violation reading location 0 x00000000."

Context is a simple assignment operation, how can hang in the CSimpleStringT template?

CodePudding user response:

And recommend the use of DLL interface types (CHAR *, WCHAR *, BSTR), do not use MFC class, or different version VS the generated code will produce incompatible

CodePudding user response:

reference 1st floor zgl7903 response:
and DLL interface is recommended to use base type (CHAR *, WCHAR *, BSTR), do not use MFC class, or different version VS the generated code will produce incompatible


, this has nothing to do with DLL call DLL inner class members are initialized is like this, and there is no cross VS version,
But this advice is good
  • Related