Results 1 to 3 of 3

Thread: Extension plugin problems

  1. #1
    Low Bitrate festy's Avatar
    Join Date
    Jun 2006
    Location
    Sydney, OZ
    Posts
    109

    Extension plugin problems

    I'm trying to get extension plugins working with RR but obviously I'm doing something wrong. I can't even get it to work using the example dll.

    In my menu.skin I've added the following lines:

    X,MyExtension
    L,271,339,231,34,202,202,202,14,"Verdana","MYLABEL ",""
    B14,632,505,162,67,"MYCOMMAND",""

    which should load the plugin dll, give me the label defined in MyExtension, and a button that opens a msgbox if I understand correctly. I've also tried recompiling the example module with a msgbox in Class_Initialize() to try and determine if it's loading.

    My RR debug log shows:
    23/06/2006 7:41:31 AM: Leave Exec: False, menu.skin, , False
    23/06/2006 7:41:33 AM: Enter Exec: False, menu.skin, "MYCOMMAND", False
    23/06/2006 7:41:33 AM: Que Exec: True, menu.skin, "MYCOMMAND", False
    23/06/2006 7:41:33 AM: Executing: MYCOMMAND

    but no label of msgbox

    so some questions -
    1) am I doing this right? I'm fairly new to RR but have read the extension plugin FAQ and this seems to be the way it's meant to be done?
    2) where should the plugin DLL be? in the skin dir I assume?
    3) Should the debug log show plugin information?

    I'm probably doing something dumb, but I can't work it out...

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    Your skin definitions seem fine.

    This is a common concept of COM objects. The DLL doesn't have to be anywhere specific, but should be registered from the location you intend to use it. Recompiling the DLL normally registers it, but if you move it afterwards, then it may not work. You can simply do:

    regsvr32 MyExtension.dll

    from wherever the DLL is, and it should work.

    The debug info from RR will show it executing the commands your plugin implements, but you'd have to add debug code to the plugin to know what it's doing inside the DLL.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    Low Bitrate festy's Avatar
    Join Date
    Jun 2006
    Location
    Sydney, OZ
    Posts
    109
    Thanks - I knew it would be something simple I'd overlooked

Similar Threads

  1. How to minimize (selfmade) plugin?
    By Goddy in forum Map Monkey
    Replies: 1
    Last Post: 07-10-2006, 05:58 PM
  2. Hello World plugin
    By paulpv in forum CF Plugins
    Replies: 5
    Last Post: 06-08-2006, 11:07 PM
  3. opus problems
    By studmonk3y in forum Power Supplies
    Replies: 9
    Last Post: 03-29-2005, 05:09 PM
  4. Replies: 3
    Last Post: 09-03-2004, 08:07 PM
  5. Dell Inspiron 8200 & Lilliput TS problems?
    By bkpsu in forum LCD/Display
    Replies: 1
    Last Post: 08-15-2004, 02:55 PM

Bookmarks

Posting Permissions

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