How can I retrieve Title1 of open plot from C# program?

Q&A for C, C++, and/or C# developers using DPlot
Post Reply
mikeb
Posts: 36
Joined: Wed Aug 18, 2004 5:23 pm

How can I retrieve Title1 of open plot from C# program?

Post by mikeb »

My c# code sends a

Code: Select all

dplot.DPlot_Command(...) 
to open a file in DPLOT.
How can I then retrieve the Title1 text? in my C# code?
User avatar
DPlotAdmin
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);
Visualize Your Data
support@dplot.com
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
Post Reply