Eliminator
05-23-2006, 07:13 PM
Is there any way to AMS6 to understand a dll made with VisualBasic or it understand only C++?
I really don't understand C++ and I don't want to pass hours on a little project! My dll is already done but I'm unable to run it.
Thanks
Eliminator
yosik
05-23-2006, 11:16 PM
Help file, Dll Action:
Example 1
DLLResult = DLL.CallFunction("winmm.dll", "mciSendStringA", "\"Set CDAudio Door Open\",0,0,0", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);
Calls the mciSendStringA function in the Windows winmm.dll file to send a "Set CD Audio Door Open" command to the MCI driver (along with two parameters, both 0). This causes the CD-ROM drive tray to open (i.e. it ejects the CD).
Example 2
DLL.CallFunction ( _SystemFolder .. "\\User32.dll", "SetCursorPos", "0,0", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);
Calls the SetCursorPos function in the "Windows\System32\User32.dll" file to move the mouse cursor to the upper left corner of the screen (i.e. to coordinates "0,0"). Since no variable is provided to store the return value, if the DLL function returns anything it will just be ignored.
Good luck
Yossi
Eliminator
05-25-2006, 05:12 PM
Thank you
Eliminator :rolleyes
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.