DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   Visual C++ and Excel (http://www.daniweb.com/forums/thread440.html)

pablojim Apr 28th, 2003 11:59 am
Visual C++ and Excel
 
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

BountyX Mar 27th, 2004 2:14 am
Re: Visual C++ and Excel
 
Quote:

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


All times are GMT -4. The time now is 6:54 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC