PDA

View Full Version : DLL Help...


Protocol
06-04-2006, 08:14 AM
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!

Eagle
06-04-2006, 09:41 AM
have a look over here:

http://www.indigorose.com/forums/showthread.php?p=83664#post83664

Eagle
06-05-2006, 01:13 AM
here's an AMS6 port of Brett's ResMaster ams4 example project:

I created a function to cycle the delimiter -for all display modes
(bug in population of Listbox, for the first supported mode only
--someone sort it out-revamp if want to)

thks for the Dll Brett :yes

Eagle
06-20-2006, 09:43 PM
this one works fine: