Hey crew,
I'm trying to tweak the Screen Resolution DLL from Icy North (http://www.icynorth.com/development/ResMaster_dll.html), but the example is only in AMS4 code. Being the DLL-idiot I am, I'm having a difficult time making this work for AMS6 code.
The parameters are:
int SetDisplayMode(int nWidth, int nHeight, int nBPP, int nFreq)
And the DLL parameters are:
result = DLL.CallFunction("AutoPlay\\Docs\\ResMaster.dll", "MyFunctionName", "", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);
How do I set up the DLL to match the parameters? I tried this:
DLLResult = DLL.CallFunction("AutoPlay\\Docs\\ResMaster.dll", "SetDisplayMode", "SetDisplayMode", "800, 600, 24, 60", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);
But it's not working. I could spend all day trying different variations. Or I could call upon the experts here to help me plug in the correct values into the correct slots.
Thanks in advance!


