Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

DllDesc class - unresolved external symbol - What am I missing?

DllDesc class - unresolved external symbol - What am I missing?

Anonymous
Not applicable
409 Views
1 Reply
Message 1 of 2

DllDesc class - unresolved external symbol - What am I missing?

Anonymous
Not applicable
def_visible_primitive(getMethodList, "getMethodList");
Value* getMethodList_cf(Value** arg_list, int count)
{
	Interface16* ip = GetCOREInterface16();
	int numdll = ip->GetDllDir().Count();
	for (int i = 0; i < numdll; i++)
	{
		DllDesc dlldesc = ip->GetDllDir().GetDllDescription(i);
		int numclass = dlldesc.NumberOfClasses();
		for (int j = 0; j < numclass; j++)
		{
			ClassDesc* cdesc = dlldesc.GetClassDesc(j);
			int numintf = cdesc->NumInterfaces();
			for (int k = 0; k < numintf; k++)
			{
				FPInterface* intf = cdesc->GetInterfaceAt(k);
				FPInterfaceDesc* desc = intf->GetDesc();
				for (int l = 0; l < desc->functions.Count(); l++)
				{
					FPFunctionDef* funcdef = desc->functions[l];
					MSTR name = funcdef->internal_name;
                                        //... blablabl...
				}
			}
		}
	}
	return &ok;
}

Hello guys!

 

I have some trouble with this code. It says, the unresolved external symbol error for the DllDesc class, although I have #include-ed the necessary header and all the available .lib files, but it's still not working. I'm storing all my maxscript extension in a single file and everything is working as expected until I try to compile it with this short snippet.

 

What am I missing?

 

Thanks in advance!

Mike

0 Likes
410 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
const DllDesc& dlldesc = ip->GetDllDir().GetDllDescription(i);

Ok got that... VS didn't warn...

0 Likes