Article View: comp.os.ms-windows.programmer.tools.mfc
Article #78Re: Catastrophic OLE Error
From: Ola Gunnars
Date: Wed, 10 Apr 1996 06:54
Date: Wed, 10 Apr 1996 06:54
28 lines
1277 bytes
1277 bytes
sayer@ctp.com (Stephen D. Ayers) wrote: >I have built a very small OCX using the VC++ 4.1 project Wizard. The >control supports a single method with no arguments and no return >value. >The VC++ OLE test container tool works fine. It allows me to invoke >methods without difficulty. >However, whenever I try invoking methods on the object from VB, VBA >within Excel, or VC++ clients they all return "OLE Automation error - >Catastrophic failure" after a successful object create. >This is running under NT 4.0 Beta 1. >Am I missing something? Is this the proper way to create OCX objects? >Thanks, How are you using the ocx ... You must use it in an form and get the object member ... dim obj as object set obj = myocxinmyform.object obj.myfunc() /Ola
Technical Details
Message-ID:
<DpMzp5.HJH@artemis.sto.fdata.se>Path:
arc1-ca.pugleaf.net!artemis.sto.fdata.se!newsReferences:
<31689491.151762072@newsserv.ctp.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.os.ms-windows.nt.pre-release,comp.lang.c++ Path: arc1-ca.pugleaf.net!artemis.sto.fdata.se!news From: wmguol@sto.fdata.se (Ola Gunnars) Subject: Re: Catastrophic OLE Error Sender: news@artemis.sto.fdata.se (UseNet NetNews) Message-ID: <DpMzp5.HJH@artemis.sto.fdata.se> Date: Wed, 10 Apr 1996 06:54:04 GMT References: <31689491.151762072@newsserv.ctp.com> Organization: WM-data Försvarsdata AB, Sweden X-Newsreader: Forte Free Agent 1.0.82