General information
Category:
Coding, syntax & commands
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only