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 = followed by compi
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
GeneratedAgeTechFile (DT, FP) I think the object "we" has not been created but I'm not sure
Comments
Post a Comment