Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OCX or COM DLL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Divers
Thread ID:
00359330
Message ID:
00361898
Vues:
15
>>It is actually an ATL COM DLL I created in VC++. I used the "Simple Object" object which I'm wondering might be the problem, thinking I needed the "Internet Explorer" object instead. It is an invisible object for obtaining User/Machine info that will be used in an Intranet scenario, so we should be able to have the object already on most users' machines.
>
>
>ActiveX controls must be lightweight controls to work in IE... If you created a COM object (not an ACtiveX control) then it shold work fine. If you created an ActiveX control it must be non-windowed (which I think is what the IE container provides).
>
>
Please excuse my persistence ( and apparent ignorance ) here, I must be missing something, either on the C++ end or the IE end of things.

If I am understanding correctly, based on what you, Ed R. and Erik have said, I should have created a COM component in C++ ATL that is capable of being instantiated in a web page using Createobject() in VBScript. The DLL currently very simple with only a single function containing one API call in it. It has been tested successfully in VB and VFP.

However, there must be something you all think I know that I must not know, because I cannot get the object to instantiate in a web page on my local machine that built the DLL. IE returns "Error: ActiveX component can't create object: 'SysData.IssSysData'" at the Createobject( "SysData.IssSysData" ) statement.

The only article I could find in MSDN on this error ( http://msdn.microsoft.com/library/devprods/vs6/vbasic/vbenlr98/vamsgcantcreateobject.htm ) listed the following possible causes:

"Class isn't registered" ( It was built on this machine and as a double-check I copied the DLL and typelib to System32, re-registered and retested in VFP )

"A DLL required by the object can't be used, either it can't be found, or it was found but was corrupted" ( same as above, built and tested on this machine )

"The object is available on the machine, but it is a licensed Automation object, and can't verify the availability of the license necessary to instantiate it" ( When developing the object I did not specify any licensing requirements )

"You are trying to use the GetObject function to retrieve a reference to class created with Visual Basic" ( not using GetObject and not a class created with VB )

"Access to the object has been explicitly denied" ( I.e. the object is being used and is not available. Been tried many times with nothing else accessing it. If it's this, I don't know why )

Sorry I have had to post so many times on what is, I'm sure, a simple issue. Thanks for the patience.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform