View previous topic :: View next topic |
Author |
Message |
mikeb
Joined: 18 Aug 2004 Posts: 36
|
Posted: Sun Oct 02, 2016 2:09 pm Post subject: How can I retrieve Title1 of open plot from C# program? |
|
|
My c# code sends a Code: | dplot.DPlot_Command(...) | to open a file in DPLOT.
How can I then retrieve the Title1 text? in my C# code? |
|
Back to top |
|
|
DPlotAdmin Site Admin
Joined: 24 Jun 2003 Posts: 2311 Location: Vicksburg, Mississippi
|
Posted: Mon Oct 03, 2016 7:00 am Post subject: |
|
|
char szTitle[80];
int dwSize=sizeof(szTitlel);
dplot.DPlot_Request(0,"Title1",szTitle,&dwSize); _________________ Visualize Your Data
support@dplot.com |
|
Back to top |
|
|
mikeb
Joined: 18 Aug 2004 Posts: 36
|
Posted: Mon Oct 03, 2016 8:04 am Post subject: |
|
|
My C is 25 years rusty, never learned much C++, and my C# understanding is non-existent.
I am getting an error
Quote: | cannot convert from char[] to'System.Text.StringBuilder' |
I'm Googling as fast as I can, but not finding the answer. |
|
Back to top |
|
|
mikeb
Joined: 18 Aug 2004 Posts: 36
|
Posted: Mon Oct 03, 2016 8:19 am Post subject: |
|
|
Never mind.
I found a good example in C# ctest1 sample programs. I should be able to make it from here.
Thanks,
mike |
|
Back to top |
|
|
|