FAQ: Link error of 3DS MAX 5.1 plug-in

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.