By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,166 Members | 1,575 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,166 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

-----Original Message-----
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 methodswith 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++ exeis also a user interface. i.e. not a DLL

Thanks!

Bob

.

Nov 21 '05 #2

P: n/a
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.
****

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.