maxscript plugin problems

maxscript plugin problems

Anonymous
Not applicable
444 Views
0 Replies
Message 1 of 1

maxscript plugin problems

Anonymous
Not applicable
hi,
anyone knows why user made plugins not working in max 2013?

my simple code:

def:
LIBRARY test_script
EXPORTS
LibDescription @1
LibInit @2
LibVersion @3
SECTIONS
.data READ WRITE


test.h:
#pragma once
#include "max.h"
#include "inode.h"
#include "maxscript/maxscript.h"
#include "maxscript//maxwrapper//MAXclasses.h"
#pragma comment(lib, "maxscrpt.lib")
#include "maxscript//macros//define_external_functions.h"
#include "maxscript//macros//define_implementations.h"
#include "maxscript//macros//define_abstract_functions.h"

def_visible_primitive(test, "test");
Value* test_cf(Value **arg_list, int count)
{
return &ok;
}



main_dll:

#include "test.h"

HINSTANCE hInstance;

BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
hInstance = hinst;
DisableThreadLibraryCalls(hInstance);
break;
}
return TRUE;
}
__declspec (dllexport) void LibInit()
{
MessageBox(NULL, _T("My MAXScript plug-in is loaded!!"), _T("Testing!"), MB_OK);
}
__declspec (dllexport) const TCHAR* LibDescription()
{
return _T("test_script");
}
__declspec (dllexport) ULONG LibVersion()
{
return VERSION_3DSMAX;
}



I use unicode character set, multithreaded dll, link all libs in sdk for max2013.
Changing above values did not help (multibyte or multithreaded).
Its all on release configuration. Max and plug are 32bit, system is win7 64bit.

All my dlx plugins under max 2009 (32 bit) worked fine and here I cant make even that simple test work.

Any help / working samples greatly appreciated!!!

thanks!
0 Likes
445 Views
0 Replies
Replies (0)