Jump to content

BisherSH

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

BisherSH's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I mean I need to use the DLL from memory , I found this link too but I also couldn't find the correct way to user it in my code
  2. Hi @Leo1906 , could you please give me an example of how to use the file inside my code ?
  3. Thank you for the quick reply , It looks very useful , but what i am actually looking for is using the resource DLL file directly from the compiled EXE without saving the DLL to disk . I found something which looks exactly what i need , and i was able to embed the file but I couldt find the correct way to use it inside my code
  4. Good day , I have the code below , and i would like to embed SQLite3.dll to the compiled file Is it possible ? Thanks in advance #include <SQLite.au3> #include <SQLite.dll.au3> _SQLite_Startup() If @error Then     MsgBox($MB_SYSTEMMODAL, "SQLite Error", "SQLite3.dll Can't be Loaded!")     Exit -1 EndIf $DB = _SQLite_Open("C:\Temp\Test.db") $Action = "TestAction" $Time = @HOUR&":"&@MIN&":"&@SEC $Date = @YEAR&"-"&@MON&"-"&@MDAY $User = @UserName $Computer = @ComputerName $DC = @LogonServer If @error Then     MsgBox($MB_SYSTEMMODAL, "SQLite Error", "Couldnt open Database")     Exit -1 EndIf _SQLite_Exec($DB,"INSERT INTO QLogs (Action,Date,Time,User,Computer,DC) " & _                               "VALUES ("& _SQLite_FastEscape($Action) & "," & _                                           _SQLite_FastEscape($Date) & "," & _                                           _SQLite_FastEscape($Time) & "," & _                                           _SQLite_FastEscape($User) & "," & _                                           _SQLite_FastEscape($Computer) & "," & _                                           _SQLite_FastEscape($DC) & ");") If @error Then     MsgBox($MB_SYSTEMMODAL, "SQLite Error", "Couldnt insert!")     Exit -1 EndIf _SQLite_Shutdown()
  5. Hi, Great script , thanks for sharing I ran the script and created the SQLite.dll.au3 file , and included it in my script but im still getting error "SQLite3.dll Can't be Loaded!" I will really appreciate it if you took a look at my code below Thanks #include <SQLite.au3> #include <SQLite.dll.au3> _SQLite_Startup() If @error Then MsgBox($MB_SYSTEMMODAL, "SQLite Error", "SQLite3.dll Can't be Loaded!") Exit -1 EndIf $DB = _SQLite_Open("C:\Temp\Test.db") $Action = "TestAction" $Time = @HOUR&":"&@MIN&":"&@SEC $Date = @YEAR&"-"&@MON&"-"&@MDAY $User = @UserName $Computer = @ComputerName $DC = @LogonServer If @error Then MsgBox($MB_SYSTEMMODAL, "SQLite Error", "Couldnt open Database") Exit -1 EndIf _SQLite_Exec($DB,"INSERT INTO QLogs (Action,Date,Time,User,Computer,DC) " & _ "VALUES ("& _SQLite_FastEscape($Action) & "," & _ _SQLite_FastEscape($Date) & "," & _ _SQLite_FastEscape($Time) & "," & _ _SQLite_FastEscape($User) & "," & _ _SQLite_FastEscape($Computer) & "," & _ _SQLite_FastEscape($DC) & ");") If @error Then MsgBox($MB_SYSTEMMODAL, "SQLite Error", "Couldnt insert!") Exit -1 EndIf _SQLite_Shutdown()
  6. I am able to make it work if the dll file exist , But what I need actually is to embed the whole dll inside the exe file NOT the dll path, is it possible ?
  7. Hello, I wrote a script which is using SQLite3.dll , and I would like to embed the dll in the compiled exe file , Looks like your script is exactly what I need , I copied the code to my script and made the $sSubrogee points to SQLite3.dll and the $sSubrogor point to my compiled application but it didn't work ! I am new to AutoIT , could you please point me to the right way to do this ? Thanks
×
×
  • Create New...