Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to find my DLL when creating object
Message
From
15/08/2007 17:51:45
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Unable to find my DLL when creating object
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01248382
Message ID:
01248382
Views:
70
Unable to find "EMPS_Out" is the error I'm getting. Everything is in the same directory and that is set as the default.

I am running this code from the Command Line:
ox = CREATEOBJECT( EMPS_Out.EMPS_Out_Class )
This is in the EMPS_Out.dll (with other stuff):
DEFINE CLASS EMPS_Out_Class AS SESSION OLEPUBLIC
	nNumber1 = 0
	nNumber2 = 0
	FUNCTION ADD(tnOne AS INTEGER, tnTwo AS INTEGER) AS INTEGER
	LOCAL lnResult
	WITH THIS
		IF PARAMETERS() = 2
			.nNumber1 = tnOne
			.nNumber2 = tnTwo
		ENDIF
		lnResult = .nNumber1 + .nNumber2
	ENDWITH
	RETURN lnResult
	ENDFUNC
	FUNCTION Multiply(tnOne AS INTEGER, tnTwo AS INTEGER) AS INTEGER
	LOCAL lnResult
	WITH THIS
		IF PARAMETERS() = 2
			.nNumber1 = tnOne
			.nNumber2 = tnTwo
		ENDIF
		lnResult = .nNumber1 + .nNumber2
	ENDWITH
	RETURN lnResult
	ENDFUNC
ENDDEFINE
Next
Reply
Map
View

Click here to load this message in the networking platform