Page 1 of 1
How can I retrieve Title1 of open plot from C# program?
Posted: Sun Oct 02, 2016 2:09 pm
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?
Posted: Mon Oct 03, 2016 7:00 am
by DPlotAdmin
char szTitle[80];
int dwSize=sizeof(szTitlel);
dplot.DPlot_Request(0,"Title1",szTitle,&dwSize);
Posted: Mon Oct 03, 2016 8:04 am
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.
Posted: Mon Oct 03, 2016 8:19 am
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