473,326 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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

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
2 976
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: sedefo | last post by:
I ran into this Microsoft Patterns & Practices Enterprise Library while i was researching how i can write a database independent data access layer. In my company we already use Data Access...
63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
9
by: WalterR | last post by:
This is my first time here, so there may be earlier relevant threads of which I am unaware. Though my experience with DB2 is not extensive, such as it is was under OS/390 or equ. My main...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
20
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
9
by: Tony Lee | last post by:
Some time a ago, on this newsgroup the following comments were made in recommending good references for Access (2003) >I used to recommend Dr. Rick Dobson's, "Programming Access <version>" for...
17
by: DaveG | last post by:
Hi all I am planning on writing a stock and accounts program for the family business, I understand this is likely to take close to 2 years to accomplish. The stock is likely to run into over a...
5
by: B1ackwater | last post by:
We've fooled around with Access a bit, but only using the single-user store-bought version. It seems to be a good database - versatile and infinitely programmable - and can apparently be used as a...
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.