Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Agnes.Thanks for replying
Yes.. the DLL is a VFP DLL
A very simple dll... see below.
___________________________________________________
*
* MYDLL.PRG
*
DEFINE CLASS MYCLASS AS Session OLEPUBLIC
cStartPath = ""
PROCEDURE Init
** Set commands for COM SEvers
SET RESOURCE OFF
SET EXCLUSIVE OFF
SET REPROCESS TO 2 SECONDS
SET CPDIALOG OFF
SET DELETED ON
SET EXACT ON
SET SAFETY OFF
** sAVE SERVER STARTUP PATH
This.cStartpath = ADDBS(JUSTPATH(Application.ServerName))
SET PATH TO (This.cStartPath)
ENDPROC
PROCEDURE MYMETHOD
RETURN "ABC 123"
ENDPROC
ENDDEFINE
________________________________________________________
>Gerard,
>
>Is MYDLL a VFP DLL? Then there might be a foxuser inside the dll that does not fit to your VFP.
>
>Agnes
>>Hi.
>>When I issue following command
>>X=CREATEOBJECT("MYDLL.MYCLASS")
>>I get a Resource File Version Mismatch and then and then an OLE error code
>>
>>I have deleted FOXUSER.* but message still comes up.
>>Anybody any ideas whats casuing this.
>>Regards,
>>Gerard
Précédent
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