Build Chart DLL with C# to use with MFC app.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
KevL
Newbie
Newbie
Posts: 17
Joined: Fri Mar 14, 2008 12:00 am

Build Chart DLL with C# to use with MFC app.

Post by KevL » Fri Sep 25, 2009 3:12 pm

I am trying to build Charting DLL with C# that includes TeeChart .NET that can be called from a legacy MFC application. So far I haven't even been able to get a non-chart to work in this manner. Wading through all the Microsoft and other posts, I find that it is supposed to be possible, but I just can't find the right set of instructions. Can anyone tell me first if a C# managed DLL can be called from a VC++ MFC application and, if so, Can I add a TChart to it and access it? If I can do this, can someone give me explicit instructions on how to do it?

thanks,
Kevin

KevL
Newbie
Newbie
Posts: 17
Joined: Fri Mar 14, 2008 12:00 am

Re: Build Chart DLL with C# to use with MFC app.

Post by KevL » Tue Sep 29, 2009 4:03 pm

I guess no one has any input on this one?

Bottom line is I want to build a DLL using C# that includes a TChart on a form that can be opened from a MFC app.

Any takers?

thanks,
Kev

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Build Chart DLL with C# to use with MFC app.

Post by Marc » Fri Oct 02, 2009 11:05 am

Hello Kev,

We don't have experience of this type of an application. As you say, there are help sources around the net that include tips though I haven't seen a straightforward example of all-of-it anywhere yet. The building of the TeeChart dll itself is straightforward, simple by creating a UserControl or Class library project.

Re. "if a C# managed DLL can be called from a VC++ MFC application"
Yes, I believe this is possible, this post at StackOverflow introduces the how-to: "http://stackoverflow.com/questions/1432 ... pplication".

The Assembly.Loadfile once achieved will give access to the loaded TeeChart dll that may be used rather like the example here: http://www.teechart.net/files/public/su ... Steema.zip

If anyone has the answer or a complete example of how to do this it would be useful to see it on this thread. Thanks!

Regards,
Marc Meumann
Steema Support

Post Reply