Page 1 of 1

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

Posted: Fri Sep 25, 2009 3:12 pm
by 13048623
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

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

Posted: Tue Sep 29, 2009 4:03 pm
by 13048623
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

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

Posted: Fri Oct 02, 2009 11:05 am
by Marc
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