This is a migrated thread and some comments may be shown as answers.

will Telerik winforms will work for C++?

8 Answers 438 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
usman
Top achievements
Rank 1
usman asked on 14 Apr 2011, 02:30 PM
will Telerik winforms will work for C++?
i am using windows for applications in C++  (VS2008)

if yes then example of using telerik tools in C++ with some functionality 

8 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 18 Apr 2011, 03:52 PM
Hi usman,

Thank you for contacting us.

The short answer in this case is yes. Our controls can be used from C++. However, the solution will be different depending on what technology are you using. Our controls are designed to work in managed environment and when using a native application, you should use COM interops. This can lead to performance issues and we do not guarantee that all features available in our controls will work correctly. The second option is to use a managed C++ application. This is the preferred option, because you will be able to experience the full power of our controls.

I hope this helps. If you need further assistance or if you have a question, do not hesitate to write back.
 
Best wishes,
Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
asol
Top achievements
Rank 1
answered on 27 Aug 2014, 07:50 PM
hello i have problem in use Telerik winform in C++/CLI.
your product work probobly but The RadDock have silent runtime.
when i make a console c++ CLR
and add a RadDock only and run program.
program run probably but in Output Debug of visual studio 2013 has some runtime error log:

First-chance exception at 0x76d41d4d (KernelBase.dll) in ConsoleApplication2.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x0074d07c.
First-chance exception at 0x76d41d4d (KernelBase.dll) in ConsoleApplication2.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
First-chance exception at 0x76d41d4d (KernelBase.dll) in ConsoleApplication2.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.

ok,so my system config is:
*windows 8.1 x64
*Visual studio 2013
*.net 4.5.1
*project is c++/cli
*and this have only a form with a RadDock!!(without change properties of it)

please help me!!!
thanks.



0
Stefan
Telerik team
answered on 28 Aug 2014, 12:15 PM
Hi Asol,

A quick search for the error you are experiencing returned these results: 
http://stackoverflow.com/questions/16796335/eefileloadexception-when-loading-c-dll-in-managed-dll
http://stackoverflow.com/questions/11584626/c-sharp-exception-thrown-from-a-c-managed-dll-eefileloadexception-ptr64
http://stackoverflow.com/questions/11613061/loading-managed-dll-in-c-cli-depending-on-native-dlls

Please have a look at the suggestions provided and if you still think there is an issue with RadDock, please open a new support ticket and provide us with your project there, so we can investigate the precise case.]

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
asol
Top achievements
Rank 1
answered on 28 Aug 2014, 02:27 PM
hi
thanks for your help.
ok,so i open a new post but i think,your RadDock has bug(or i don't know how use it),because i test it on console c++/CLI project that don't have any other resource.
it have only a form,and in .cpp file,i write :
Application::Run(gcnew ConsoleApplication1::MyForm());
it's all of my code.
and when i enable especial error report in VS2013,i can get position of this error that is in :
this->radDock1 = (gcnew Telerik::WinControls::UI::Docking::RadDock());
so or i have special mistake in config project(i don't change default project config,so i must set especial config for solve this problem)
please help me.
thanks for good support.
(i post again it for continue it in new post!!)
0
Peter
Telerik team
answered on 29 Aug 2014, 04:03 PM
Hello Asol,

Thank you for writing back.

I was not able to reproduce the described error with version 2014.2.715. Please, refer to the video from my attempts and to the attached sample project.

Also, I general you can use the procdump tool to generate a dump of your application at application termination time. When dumped all the thread stacks and you should see the one causing the exact exception.
Run procdump from a command prompt like this: procdump -ma -t -w ConsoleApplication2.exe
Then run your app outside of debugger. Once it terminates you should see output from procdump indicating that the process has terminates and that it is writing a dump file.

If you continue experiencing issues, please modify my sample on a way to replicate the undesired behavior get back to us with it.

I hope this helps.

Regards,
Peter
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
asol
Top achievements
Rank 1
answered on 29 Aug 2014, 05:15 PM
thanks Mr. Peter.
nice solution,i try it and report result here.
thank you again for your help and good product.
0
asol
Top achievements
Rank 1
answered on 29 Aug 2014, 05:40 PM
i see your project.
it's has a different,and that is Common Language Runtime Support,set to "Common Language Runtime Support (/clr)" no "Pure MSIL Common Language Runtime Support (/clr:pure)",please set it and see output windows of visual studio.
or set Debug/Exceptions.../tick C++ exceptions(all and own C++ exceptions).
please note to "this Error no show any window,and it log in Debug output window.same as "Build output" ".
thank for your help.

0
Peter
Telerik team
answered on 01 Sep 2014, 11:35 AM
Hello Asol,

You should set /clr:pure switch to "On" in order to avoid these first time message exceptions - please, refer to the attached video.

However, you can ignore these exception since they appears only in VS Debug mode and should not affect
the application life cycle.

I hope this helps.

Regards,
Peter
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
General Discussions
Asked by
usman
Top achievements
Rank 1
Answers by
Jack
Telerik team
asol
Top achievements
Rank 1
Stefan
Telerik team
Peter
Telerik team
Share this question
or