Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateObject not working properly
Message
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
CreateObject not working properly
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00976985
Message ID:
00976985
Views:
88
Greetings,

I am having trouble getting what should be a very simple CreateObject() to work in a Web Service. Here is the problem code:
Define Class ATIFws As Session OlePublic

   Procedure FetchMembers(cPW As String, tLastUD As dateTime)
	
	Local cDecryptedPW, cTemp
	
	Set ClassLib To "c:\atifws\class libraries\CryptoAPI" Additive
	oCrypt = CreateObject('CryptoAPI')
		
	oCrypt.password = 'GLOBALWARMING'
         
.
.
.
.
.


        etc.

When called from the client, this code bombs on the last line shown. the error message is: "Error in line ... OCRYPT is not an object"

Here is some background:

- The code portion above is part of a long web service procedure that works fine if I yank out the 3 encryption related code lines.

- If I pull the entire web service procedure out and put it into a stand-alone program it works fine, including the encryption portion.

- The CryptoAPI library is one I downloaded from the downloads area here at the UT

..... any help will be greatly appreciated.


Thanks,

-Steve
Next
Reply
Map
View

Click here to load this message in the networking platform