Q&A for C, C++, and/or C# developers using DPlot
Moderator: DPlotAdmin
-
mikeb
- Posts: 36
- Joined: Wed Aug 18, 2004 5:23 pm
Post
by mikeb »
My c# code sends a
to open a file in DPLOT.
How can I then retrieve the Title1 text? in my C# code?
-
DPlotAdmin
Site Admin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
-
Contact:
Post
by DPlotAdmin »
char szTitle[80];
int dwSize=sizeof(szTitlel);
dplot.DPlot_Request(0,"Title1",szTitle,&dwSize);
-
mikeb
- Posts: 36
- Joined: Wed Aug 18, 2004 5:23 pm
Post
by mikeb »
My C is 25 years rusty, never learned much C++, and my C# understanding is non-existent.
I am getting an error
cannot convert from char[] to'System.Text.StringBuilder'
I'm Googling as fast as I can, but not finding the answer.
-
mikeb
- Posts: 36
- Joined: Wed Aug 18, 2004 5:23 pm
Post
by mikeb »
Never mind.
I found a good example in C# ctest1 sample programs. I should be able to make it from here.
Thanks,
mike