Results 1 to 3 of 3

Thread: Send String from VB to c++ based COM

  1. #1

    Thread Starter
    Lively Member The_Fog's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Posts
    65

    Send String from VB to c++ based COM

    I need to send a string from a client app coded in VB into a com-object that has been coded with vc++.
    I've been digging thru MSDN, but can't really find any good documentation on how to do this. As I've understood it, I am supposed to use the type "BSTR" or "LPOLESTR", but some code to show how it's done would be great.

    Thanks

    /Benny
    They will try to steal everything you own,
    It goes on and on and on...


    Pain - On and On

  2. #2
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530

  3. #3
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    What do you mean "Send a String"? Is a Method from the DLL asking for a string as a parameter?


    I am not sure what you mean.

    But in anycase, a C++ COM is the Same as VB COM. Once they are compiled they act exactly the same..
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


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