Sign in to follow this  
Followers 0
fett8802

Calling .exe from custom .dll?

2 posts in this topic

Hello all,

I'm starting to learn the immense functionality of the .dll file. I'm using at least one custom .dll file in my new program that contains all of the images and icons used within. It's a very nice way to quickly and easily package everything into one nice, neat file.

My question is, my program actually has three separate .exe files it can call. These programs get user input and write to an .ini file for the main program to read. What I'd like to do is compile these three separate .exe files (written and compiled in AutoIt) into a .dll file (I have completed this step) and call the .exe directly from the .dll file when running the main program.

This will help save space and clutter in the install directory.

Can this be done?

I've tried Run("RunDLL32.exe C:\SeparateExes.dll,test")

Where "test.exe" is the name of the first program.

Thanks for your help!

-Fett


[sub]My UDF[/sub][sub] - Basics and Time extensions. Great for those new at AutoIt, also contains some powerful time extensions for pros.[/sub][sub]ScrabbleIt[/sub][sub] - Scrabble done in pure AutoIt. (In Progress)[/sub][sub]Nerd Party Extreme | My Portfolio | [email="fett8802@gmail.com"]Contact Me[/email][/sub]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

What I'd like to do is compile these three separate .exe files (written and compiled in AutoIt) into a .dll file (I have completed this step) and call the .exe directly from the .dll file when running the main program.

Can this be done?

No it can't be done.

Autoit is interpreted language and can't be compiled into DLL files.

EDIT:

Look here

maybe it's what you want to do?

Edited by Zedna

Share this post


Link to post
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
Sign in to follow this  
Followers 0

  • Similar Content

    • fett8802
      By fett8802
      Hello all,

      I feel bad, second new topic in two days. >.<

      I've got a tab control with tab items. I've set the style of the tab control to display the tab items on the bottom of the tab control. Functionally, this works just fine. However, the tab item is display in such a way that it looks "cut off" and like it belongs on top of the control.

      The below replication code will show you what I mean. Note: I am using the _GUICtrlTab functions, not the standard functions used in the code below. However, the demonstrated effect is identical.


      #include <GUIConstantsEx.au3> #include <TabConstants.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 633, 447, 192, 124) GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close") $Tab1 = GUICtrlCreateTab(56, 56, 289, 225, $TCS_BOTTOM) GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $TabSheet1 = GUICtrlCreateTabItem("TabSheet1") GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func Form1Close() Exit EndFunc
      Does anyone know if it's possible to invert the graphic of the tab item control to make it look like it belongs on bottom? For an example of what I mean, open an Excel file and note the tabs across the bottom. I've scoured the forums and the help file and can't find a way to do it. Any ideas would be very much appreciated!

      Thanks,
      Fett