Today, I reinstalled the operating system on the computer used to develop the max plug-in, and opened the project of the Max plug-in. rebiwould all, dizzy! There were several Link errors. It was good before the reinstallation! Take a closer look, all of them are:
Error lnk2001: unresolved external symbol "public: Virtual char * _ thiscall classdesc: getrsrcstring (long )"(? Getrsrcstring @ classdesc @ uaepadj @ Z ),
I think of it. I encountered this problem when I first wrote it. In order not to forget it, I recorded it.
The development environments I use are Vc ++ 6.0 and 3DS MAX 5.1. This problem occurs because this version of Max SDK (R4) is developed using the latest MS Platform SDK. One definition of a header file is different from that of vc6! The solution is to install the latest MS Platform SDK, or manually modify this definition:
Modify lines 123 and 124 of "include/basetsd. H" under the VC installation directory, and set:
Typedef long int_ptr, * pint_ptr;
Typedef unsigned long uint_ptr, * puint_ptr;
Replace:
Typedef int int_ptr, * pint_ptr;
Typedef unsigned int uint_ptr, * puint_ptr;
Reference: 3DS MAX 5.1 SDK documentation