- Jul 6, 2001
- 2,740
- 0
- 0
I have one c++ dll file that holds the data. Two applications App1 and App2 in VB6 that needs to share the data. The data is dynamic.
dll has two functions. SetData, GetData
App1 Calls DLL, and stores some data in it using SetData, then App1 calls App2.
App2 then calls the DLL, using GetData it gets the data the App1 stored.
I am able to get it to work if i give call SetData in App1 using a static number. for example
SetData(123).
then in App2, if i call GetData, it would return 123.
I need to know how i can do it with dynamically allocated memory.
thanks
dll has two functions. SetData, GetData
App1 Calls DLL, and stores some data in it using SetData, then App1 calls App2.
App2 then calls the DLL, using GetData it gets the data the App1 stored.
I am able to get it to work if i give call SetData in App1 using a static number. for example
SetData(123).
then in App2, if i call GetData, it would return 123.
I need to know how i can do it with dynamically allocated memory.
thanks
