Jump to content

Dll Call


Recommended Posts

I think I am not going to get much of a response to this post since I don't even know if this is possible :)

The reason I want to call the files from a Dll file is because it's a lot neater and organized and it saves from having to use the function "FileInstall" a lot of times if your dealing with tons of graphical files.

What I am hoping is that a "DllCall" can be made to pull the icon, cursor and pictures and embed it into my GUI.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Pic = DllCall("Call Pic")
$Icon = DllCall("Call Icon")
$Cursor = DllCall("Call Cursor")

GUICreate("Test", 250, 250)
GUICtrlCreatePic($Pic , 0 , 0 , 250 , 200)
GUICtrlCreateButton("" , 0 , 0 , 250 , 50)
GUICtrlSetImage(-1 , "Test.dll" , "Icon\50\0") ;Icon is a folder and 50 is a sub folder and 0 is the icon name but doesn't work?
GUISetIcon($Icon)
GUISetCursor($Cursor)
GUISetState(@SW_SHOW)

While 1
    $Msg = GUIGetMsg()
    Switch $Msg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd
Edited by LithiumLi
Link to comment
Share on other sites

Have you looked? :)

Great!, for some reason I didn't stumble upon this example, although it seems really confusing at first glance but I am guessing this is as much help with this as I am going to get, since nobody is going to write me a script to do what I need lol.

Any Tips that I should know when using this example.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...