|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Linking to a new API - help please!!and a .EXE file. I have 3 test harnesses to check the work a C++ test harness links to it just fine, but in MS VB and MS J++, I can't get it to work: In the VB test harness, we can link to excel using the code: Dim myApplication As New Excel.Application We can then do anything expected with the excel application. However the same code for out little test API application won't work: Dim api_test As TEAPI.TEAPIDocument Doing anything with the application causes: "Run-time error -2147024770 (8007007e) Automation Error. The specified module could not be found" HELP!!!! Is there another group I could ask?? "GT" <contactGT_remo***@hotmail.com> wrote in message I forgot to say - in the C++ test app, I have to make a call to news:30Cne.53796$Li.18151@fe1.news.blueyonder.co.uk... >I am trying to write an application with an API (in C++). It produces a >.TLB and a .EXE file. I have 3 test harnesses to check the work a C++ test >harness links to it just fine, but in MS VB and MS J++, I can't get it to >work: "CoInitialize(NULL)" before it will link to the API app. Is there an equivalent to "CoInitialize(NULL)" in VB or VJ++?? Show quoteHide quote > In the VB test harness, we can link to excel using the code: > Dim myApplication As New Excel.Application > We can then do anything expected with the excel application. > > > However the same code for out little test API application won't work: > Dim api_test As TEAPI.TEAPIDocument > Doing anything with the application causes: > "Run-time error -2147024770 (8007007e) Automation Error. The specified > module could not be found" > > > HELP!!!! > Is there another group I could ask?? > > Hi,
Did you add a reference to your TLB using the Project/References menu? -- Richard Grier (Microsoft Visual Basic MVP) See www.hardandsoftware.net for contact information. Author of Visual Basic Programmer's Guide to Serial Communications, 4th Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See www.mabry.com/vbpgser4 to order.
Code to INVERT image in VB6
How to find 3rd tuesday of the month simple but not clicking now Stopping windows from shutting down setting exit code of VB app reading a XML file to vb variables DCOM or ? Tabulating document proerties from a folder in Access Sorting a 2d array by more than 1 column Outlook clipboard object |
|||||||||||||||||||||||