I have some plugin source for 3ds max v7 and i want to compile it for version 9. Ive found 3ds max 9 sdk and all necessary libraries but when i try to compile it throws me these errors:
Maybie i am mising some options as wingdi.h should not throw error it is part of windows sdk.
EDIT: Back to earlier version of Visual studio (vs 2010 previously tried with 2011) and now got linker errors:
...error LNK2019: unresolved external symbol __imp__NewtonDestroy referenced in function "public: virtual int __thiscall MaxDll::DoExport
...// and more similar functions used from Newton library
I dont understand why? I have setup all necessary paths and includes, the dll is formed from 3 simple source files:
MaxPlugin.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#pragma once
#ifndef NewtonTreeCollisionPlugin_HEADER_DEFINED
#define NewtonTreeCollisionPlugin_HEADER_DEFINED
#include <Newton.h> // this library function is linker complaining about
#pragma comment(lib,"Newton.lib")
class MaxDll : public SceneExport {
public:
...
int DoExport(const TCHAR *name,ExpInterface *ei,Interface *i, BOOL suppressPrompts=FALSE, DWORD options=0);
};
...
#endif
Resolved.
I linked against wrong Newton lib. They provided 3 different binaries within their sdk so i choose a wrong one (there was MT lib, MD lib and vs9 lib witch worked fine).