Hello All,
I have a simple question for you and I hope u can help me with this.
I have a DLL file compiled in VB, it has LockCheck as the Class Name and hasa Function CHECKESSDI in which a string can be passed as a parameter and the CHECKESSDI function returns either 0 or 1 (Integer). So in VB I just add a refrence for the dll file and I execute the checkessdi function by the following code.
Dim Test as LockCheck
set Test=New LockCheck
Result=Test.CheckESSDI("12344")
Now I will have either 0 / 1 in the result variable based on the return value the check function returns.
Now how do I write the same code in PowerBasic. How do I declare the function in the DLL. I tried some examples, but they didn't work. It throws an error that the procedure entry point not found. I'm new to PB. Please advice.
I have a simple question for you and I hope u can help me with this.
I have a DLL file compiled in VB, it has LockCheck as the Class Name and hasa Function CHECKESSDI in which a string can be passed as a parameter and the CHECKESSDI function returns either 0 or 1 (Integer). So in VB I just add a refrence for the dll file and I execute the checkessdi function by the following code.
Dim Test as LockCheck
set Test=New LockCheck
Result=Test.CheckESSDI("12344")
Now I will have either 0 / 1 in the result variable based on the return value the check function returns.
Now how do I write the same code in PowerBasic. How do I declare the function in the DLL. I tried some examples, but they didn't work. It throws an error that the procedure entry point not found. I'm new to PB. Please advice.
Comment