How to set up a COM so a C++ app can access my VB .Net data

B

BobAchgill

I would like to (I think the word is) "expose" some
variables in my VB .Net application so that a C++
application can via COM (I guess this is called
ActiveX??) both see and or write to variables in my
VB .Net application via COM enabled properties of methods
with in the C++ application.

The varialbes will be Boolean, interger and filestreams.

Can I do this? My VB is a user interface and the C++ exe
is also a user interface. i.e. not a DLL

Thanks!

Bob
 
B

BobAchgill

Now I pass the data by writing it to the clipboard for
the C++ program to receive it from my VB .Net program.

But that seems like a child's way of programming and it
ties up the clipboard.

I thought COM would be the ticket. But I don't know
where to start looking in order to make my VB .Net
application be able to be accessed by another program via
COM.

Maybe the answer is that VB .Net does not possess such a
capability only C++ does. If that is the case can
someone point me to a C++ doc that will show my C++ guy
how to make his program accessible to my VB .Net
application via COM.

Thanks!

Bob
 
B

BobAchgill

I read this in the Microsoft Terrarium documentation. I was curios if
the statement...

"...able to transparently communicate with and even inherit from
classes written in any of the 20+ other .NET Framework programming
languages"

is a clue to my question about how to commumicate between my VB .Net
application and C++ application. They say it should be possible but I
wonder how can I write such a communication link?

Still lookin for the answer.

Bob

****
Support for Multiple Programming Languages
The .NET Framework supports over 20 programming languages, including
C++, C#, COBOL, Fortran, and Java, to name just a few. Developers can
select the language that best meets their needs and skill sets and know
that the code they write will be able to transparently communicate with
and even inherit from classes written in any of the 20+ other .NET
Framework programming languages.
****
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top