Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: DLL Help...

  1. #1
    Join Date
    Oct 2002
    Location
    RealFake, RF
    Posts
    403

    DLL Help...

    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!
    "White-colla-AMS-gangsta."

  2. #2
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872

  3. #3
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    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
    Attached Files

  4. #4
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    this one works fine:
    Attached Files

Similar Threads

  1. Official Release Of SetMask DLL
    By Worm in forum AutoPlay Media Studio 5.0
    Replies: 23
    Last Post: 01-24-2005, 09:00 PM
  2. Can't register dll
    By diver in forum Setup Factory 6.0
    Replies: 0
    Last Post: 04-17-2002, 02:17 PM
  3. Calling a DLL
    By matrix in forum Setup Factory 6.0
    Replies: 1
    Last Post: 12-26-2001, 07:47 PM
  4. SUF6 - Call DLL action
    By Romahe in forum Setup Factory 5.0
    Replies: 1
    Last Post: 11-27-2001, 06:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts