| || |
Extern.Declare - \"Invalid procedure call or arguem
I use the following line of code to declare a function I use from a dll.
Extern.Declare micLong, "datatecGrid_getValueAt","c:\Datatec\Objetos\rrdf. dll","datatecGrid_getValueAt",micString, micLong, micLong, micLong, micString+micByRef, micString+micByRef
This works on the first time of running but every time afterwards i get the Run Error "Invalid procedure call or arguement". The only way to get rid of the problem is to shut down QTP and reopen, not very good if i'm trying to run a batch of scripts.
Is there anyway i can tell at runtime whether the function is already declared to avoid the problem?
Is there a way i can undeclare the declared line?
Re: Extern.Declare - \"Invalid procedure call or arguem
It can be a possible issue with your dll also. I would sugesst using that API more than once in VB or some environment just to be sure that DLL does not have issue. Can you post your code also...that might help..