Jump to content

korifg

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by korifg

  1. TCPConnect needs a corresponding TCPlisten at server side. Is there an active tcplisten when you 2nd time issue tcpconnect?
  2. Thank you for your help. at last I did 2 things. 1. I removed and added again administrative rights to my account (even if it had administrative rights) 2. I uninstalled and reinstelled scite. Now I have those lua functions like CTRL-J, etc. And that "Need to change au3.properties: BETA_AUTOIT = 0" message has gone after I started second time scite.
  3. - you did load the latest SciTE4Autoit3 separate installer ? - what version of SciTE4AutoIt3 are you using ? (Show the Help/about info) - do you see these options in the Tools dropdown Menu? - any errors shown in the SciTE ouputpane ? Yes I did. 1.76. No I do not see those option in the tools menu. If you mean the lower window of scite, I see the message of "Need to change au3.properties: BETA_AUTOIT = 0" other, I saw similar topic of this problem. I do have administrator right on my Wondows XP SP. Earlier I installed a program called "Dropmyrights", I later uninstalled this program because caused problems. A few program was not able to write its own configuration files - even if this program was not running and was uninstalled.
  4. As far as I know this script was working long time ago. Probably Blizzard implemented some countermeasure to stop it.
  5. I do not think so.
  6. This is a very good tutorial. Now it is easy to access Autoit features from other language.
  7. I have tried out what you suggested all. And it works. I also make tried out other combinations so the conlusion: __stdcall is not neccessary as it is the default, the compiler implicitly use it. (But obviously worthy to use it) extern "C" is not neccessary. To export the function the definition file is enough. Definition file is neccessary, if there is not definition file, the extern "C" or __declspec(dllexport) is useless. thx for help, bb. Now the example of the working DLL #include "Mathy.h" #include <stdexcept> int Addy(int a, int b) { return a + b; } // Mathy.h int Addy(int a, int b); EXPORTS Addy The Autoit source Dim $result[50] $dll = DllOpen("MathyDll.dll") MsgBox ( 0, "Error Code, MathyDll.dll: ", @error ) $result = DllCall($dll, "int", "Addy", "int", 5, "int", 6 ) MsgBox ( 0, "Error Code", @error ) msgbox(0, "Res0", $result[0]) ; number of chars returned msgbox(0, "Res1", $result[1]) ; Text returned in param 2 Exit
  8. BTW, does andybody has a working example of DLLCALL, where the DLL was not provided by MS but created ? May I have the source code of that library?
  9. I did not put the last 2 line in the example, now i do: Dim $result[50] $dll = DllOpen("MathFuncsDll.dll") $result = DllCall($dll, "int", "Add", "int", 5, "int", 6 ) MsgBox ( 0, "Error Code", @error ) msgbox(0, "Res0", $result[0]) What will happen when I run the code: The @error will be 1. Means the DLLCALLl was unsuccessful. So 1st we should fix somehow that DLLCALL. (I have checked before - the Dllopen function is successful. Also I got an error message on displaying $result[0] in a message box, because the unsucessful DLLCALL function.)
  10. Well I did what you suggested. I made a perfect DLL now, in this case i used Visual C++ 2005. The DLLCALL still does not work. Please do not say just "It is not Autoit problem" You should better tell me that what requirements Autoit has towards a DLL. What limitations DLLCALL function has, etc. Just briefly: an in depth documentation of DLLCALL function. It is a perfect DLL library, because I carefully followed the steps described in MSDN. see: http://msdn2.microsoft.com/en-us/library/ms235636.aspx Dim $result[50] $dll = DllOpen("MathFuncsDll.dll") $result = DllCall($dll, "int", "Add", "int", 5, "int", 6 ) // MathFuncsDll.cpp // compile with: /EHsc /LD #include "MathFuncsDll.h" #include <stdexcept> using namespace std; namespace MathFuncs { int MyMathFuncs::Add(int a, int b) { return a + b; } } // MathFuncsDll.h namespace MathFuncs { class MyMathFuncs { public: // Returns a + b static __declspec(dllexport) int Add(int a, int b); }; }
  11. I use Visual C# 2005. When I created this function i had selected Class Library. I should or should not be eonugh. I use C# as i got the routines in that language. Those routines part of a program. So I planned to strip the surplus from the source code. Make the necessary interface. And voile, use it.
  12. Hi! I need to make some low level routines what i can call from Autoit. I was going to make a DLL library with my routines and I call them from Autoit. I tried a different methodes but they did not work. At last a made a very simple case - still unsuccessfull. What can be the problem? Here it is: Autoit code: Dim $result[50] $dll = DllOpen("ClassLibrary1.dll") MsgBox ( 0, "Error Code, ClassLibrary1.dll: ", @error ) $result = DllCall($dll, "int", "Return5", "int", 0 ) MsgBox ( 0, "Error Code", @error ) msgbox(0, "Res0", $result[0]) msgbox(0, "Res1", $result[1]) My DLL source code: using System; using System.Collections.Generic; using System.Text; namespace ClassLibrary1 { public class Class1 { public int Return5(int bejovo) { return 5; } } }
×
×
  • Create New...