vbscript - Cant connect COM object. -


I have written a CD library on C ++ This library has only 1 function.

<<> STDMETHODIMP TMyCodeBitmapGenerateImpl :: GenerateMyFile (BSTR ATextToEncode, BSTR APathToSaveFile)

The library name is MyCode_COM_Library <

  DataArchiving = "Data 123" file name = "D: \ img.bmp"  

is trying CreateObject ("MyCode_COM_Library.TMyCodeBitmapGenerateImpl") .GenerateMyFile (DataString, file name)

I'm getting the error Item Required

is trying again

  dim ws wd set ws = CreateObject ("MyCode_COM_Library.TMyCodeBitmapGenerateImpl") wd set = ws.GenerateMyFile (datastring, file name) dim  

The same. Error

I added this library to VB in the context = dmd wd dim or MyCodeBitmapGenerate datastring =" data123 " Wd = Wa.GenerateMyFile (datastring, FileName) function returns int

followed by compi

< / P>

Connect to VB and my COM library.

Thanks.

If I add the library to the reference and all the OK

  personal sub command1_Click () Dim azclib AztecCodeBitmapGenerate DS = "123434454 54243442Data1234567890 "Comparing this type of code into VB in the form of fp = 'D: \ imgds.bmp" set azclib = New AztecCodeBitmapGenerate azclib.GenerateAztecFile DS, fp End Sub  

But if I'm trying to write this code in VBScript like

dim dp diminished fp we dim, ws dt = "123456789" fp = "C: \ imgDT.bmp" We call on an error object object - 800A01A8 call we have on = CreateObject ("AztecCode_COM_Library.TAztecCodeBitmapGenerateImpl"). We call it.GenerateAztecFile (DT, FP)

GeneratedAgeTechFile (DT, FP) I think the object "we" has not been created but I'm not sure


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -