CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2011
    Posts
    18

    COM related questions

    I have a source code of a program using a compiled tlb file
    the file as I extracted into VC++ includes structs that do not define themselves (as I saw them in tlh and tli)

    I see in VB source code of the program the lines

    Dim a as IUnknown
    //.... and in form-load
    Set a = New StructName


    I do similar in C++ as
    IInterface i=new StructName();
    and get an error stating StructName has no appropriate constructor.

    I read all the VB files I was given and couldnot find where the (Co)CreateInstance is used. I don't find any COM functions only the compiled interfaces are freely easily used as some normal classes.
    I guess they want to freek me out by not having sent me all required files. They discriminate me!

    Thank you.

  2. #2
    Join Date
    Jul 2010
    Posts
    94

    Re: COM related questions

    Huhu I see this problem is too easy, how come you can't find a soluytion ?
    When I was in coollege people did that on me too. Those are arrssholes
    Yes, not enough files of course. Could you post it here ?

  3. #3
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: COM related questions

    Is there a question there? If you have source code, then you can re-compile it. If you have a C++ question, we have a forum for that, too. This is VB6
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured