sgufa Posted January 20, 2007 Share Posted January 20, 2007 anyone able to transalte this in autoit? #include #include typedef void (__declspec(dllimport) *STARTSERVER)(char *, char *,char *,int,char *); //void Start_server(char *ID, char *repeater,char *direct,int port,char *passwd,bool proxy); int main(int argc, char* argv[]) { HMODULE hDLL = LoadLibrary ("1SCDLL.dll"); STARTSERVER pStart_server; if (hDLL != NULL) { pStart_server = (STARTSERVER) GetProcAddress(hDLL,"Start_server"); if (!pStart_server) { // handle the error FreeLibrary(hDLL); return 0; } else { // call the function pStart_server("","","localhost",5500,""); } } return 0; } Link to comment Share on other sites More sharing options...
LxP Posted January 20, 2007 Share Posted January 20, 2007 This may be close to what you want: DllCall('1SCDLL.dll', 'none', 'Start_server', 'str', '', 'str', '', 'str', 'localhost', 'int', 5500, 'str', '') Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now