Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.67/5 (2 votes)
See more:
I Am Building A Database App In C++ . It Is A Console Application . I Am Also Programming A Graphics Manager For It Which I Have Made In VB . Now I Want To Make A Link Between 2 Both - Graphics Manager And Console Application . I Want Graphics Manager To Send Memeory Address Of Its Stored Data To The Console Application And Then Console Application Processes The Data And Writes It To A File . Can I Use Pointers For This Purpose ? If Yes Then How ?
Posted
Comments
Philippe Mori 13-Jan-14 18:13pm    
Does it have to be 2 applications because it might be more appropriate to write DLLs and use them from VB application. Depending on C++ code, it might be a managed DLL in which case it offer little advantage if any over writing the whole application in a single language.

Otherwise, it might be a mixed-mode DLL which will give you a lot of flexibility...

1 solution

You are talking about inter process communication (IPC). If the two apps are running on one PC which I assume they are then shared memory may be the best option.
Look at these two articles as a start:

Sharing memory across different running applications[^]

How to do CreateFileMapping in a C++ DLL and access it in C#, VB and C++[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900