John Pearson wrote: > I am trying to incorporate DDE into a MS VC++ MFC program. The program > receives serial input, and I want to pass it along to Excel via DDE. As > soon as I make the first data poke to Excel, my program slows down so > much I can see each serial port character displayed on the screen one by > one, instead of a line of data appearing instantly (9600 baud), even > while there is no more data being sent to Excel. If I break the DDE > connection, the program resumes normal speed again. Is this typical of > DDE, or is something wrong somewhere. It's been ages since I've done something with DDE, but I never had this effect. > Please suggest I use COM only if you have some well documented > stand-alone VC code examples I can incorporate into an MS VC++ MFC app. I don't have any links, but if you want to work with MFC, "Programming Windows with MFC" by Jeff Prosise is one of the standards. It includes many examples, among them the use of ActiveX/COM. But it shouldn't be difficult to find online tutorials. It's not that difficult to figure out either. You use the IDE to add an ActiveX object to your project, which creates a wrapper class. Then you place it on a dialog and use it. Most cases are pretty straightforward -- and easier to implement than DDE. Maybe this here (even though the links to the figures seem to be broken) http://www.mclibrary.edu.mn/itbooks/activex_programming_with_visual_c++/ch15.htm#Heading5 Or this http://www.codeproject.com/com/webbrowser.asp Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist