DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    DPlot Forum Index -> C, C++, C#
View previous topic :: View next topic  
Author Message
mikeb



Joined: 18 Aug 2004
Posts: 36

PostPosted: Sun Oct 02, 2016 2:09 pm    Post subject: How can I retrieve Title1 of open plot from C# program? Reply with quote

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
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Mon Oct 03, 2016 7:00 am    Post subject: Reply with quote

char szTitle[80];
int dwSize=sizeof(szTitlel);
dplot.DPlot_Request(0,"Title1",szTitle,&dwSize);
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mikeb



Joined: 18 Aug 2004
Posts: 36

PostPosted: Mon Oct 03, 2016 8:04 am    Post subject: Reply with quote

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
View user's profile Send private message
mikeb



Joined: 18 Aug 2004
Posts: 36

PostPosted: Mon Oct 03, 2016 8:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> C, C++, C# All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group