Hello,
I have a defined a class using the following code in myprg.prg and then build a DLL file (mydll.dll).
*---------------------------------------------*
DEFINE CLASS testclass as CUSTOM olepublic
PROCEDURE FormatPrice
PARAMETERS MyPrice AS String
WAIT WIND MyPrice
RETURN MyPrice
ENDPROC
ENDDEFINE
*---------------------------------------------*
**Created an object
xobj = CREATEOBJECT("mydll.testclass")
xobj.Formatprice
While using the function, it is giving an error like :-
OLE IDISPATCH EXCEPTION CODE 2031 FROM MYDLL.TESTCLASS
MYDLL.TESTCLASS: .FORMATPRICE MYPRG.PRG ERROR IN LINE
4 USER INTERFACE OPERATION NOT ALLOWED AT THIS TIME.
2031...
Can someone advice me how to RESOLVE the problem.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement