Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CreateObject not working properly
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
CreateObject not working properly
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
00976985
Message ID:
00976985
Vues:
87
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform