How to get function params from a dll?
Answer / Himanshu Chaurasia
To get function parameters from a DLL in Delphi, you need to use GetProcAddress() and PtrToInt() functions:nType MyDLLFunction = procedure of object;var FunctionAddr: Pointer;nBeginn FunctionAddr := GetProcAddress(GetModuleHandle(''MyDLL.dll''), 'MyDLLProcedureName');n if Assigned(FunctionAddr) thenn MyDLLFunction(PtrToInt(FunctionAddr))n end;
| Is This Answer Correct ? | 0 Yes | 0 No |
How to Change the papersize of a print job ?
Where is TReport in Delphi 6?
How to Make the drop-down list appear faster?
How to Print a web page using the HTML control?
How to determine the names of the installed comm ports?
How to tell if a form has been created (or any object)?
Do we need Local InterBase on the client machines along with my BDE application?
How does one change the default directory that Delphi uses to save projects?
How to test if a given string contains a valid number?
What is the procedure to access the database from delphi?
'Interface mismatch. Engine version different' . what does this error indicates?
How to Limit the amount of text entered in a TEdit?