LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I connect to Notepad or WordPad using DDE in LabWindows/CVI?

I am developing an application in which I would like to allow the user to view a saved file prior to printing. I am running on an NT system without Office. While trying to connect using DDE, what is the correct server name for notepad or wordpad? Or, is there an easier, simpler solution?
0 Kudos
Message 1 of 3
(4,296 Views)
Hello,
I'm not sure I get it right, but if you can display your saved file using Notepad or Wordpad, it must be only text? So why the need of a DDE connection?
The first thing that I think of is a Panel with a Textbox (Indicator mode) for the text and a Close button.
It would give you something like:
fopen(...);
while (fgets(..))
{InsertTextBoxLine(...)}
fclose(...);
Display (panel);

Is there a reason to use Notepad or Wordpad? If not, this should be much simpler.

Hope it helps, Flo.
Message 2 of 3
(4,296 Views)
Thanks so much for you help! CMI
0 Kudos
Message 3 of 3
(4,296 Views)