Visual C++ and Excel

Reply

Join Date: Apr 2003
Posts: 1
Reputation: pablojim is an unknown quantity at this point 
Solved Threads: 0
pablojim pablojim is offline Offline
Newbie Poster

Visual C++ and Excel

 
2
  #1
Apr 28th, 2003
I have just written some classes in visual c++ with MFC that give me out data I want to plot in excel.

Are there any tutorials out there that will help me write a macro in excel that will pass the data to my classes then read the results given by the classes?

Thanks

pablo
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 219
Reputation: BountyX is an unknown quantity at this point 
Solved Threads: 7
BountyX's Avatar
BountyX BountyX is offline Offline
Code Guru

Re: Visual C++ and Excel

 
0
  #2
Mar 27th, 2004
Originally Posted by pablojim
I have just written some classes in visual c++ with MFC that give me out data I want to plot in excel.

Are there any tutorials out there that will help me write a macro in excel that will pass the data to my classes then read the results given by the classes?

Thanks

pablo
You can do it reverse, have the class (while the program is running) get the marco from excel instead of excel passing it in. This can be achieved by using a timer and ReadProcessMemory(), but your going to have to find the offset of the marco string using a memory scanner such as Tsearch.

good luck as always for the above function ReadProcessMemory detailed info avaible at msdn.com
A Hacker's Mind:
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes..." - J.D.Salinger
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC