will Telerik winforms will work for C++?

9 posts, 0 answers
  1. usman
    usman avatar
    34 posts
    Member since:
    Jun 2010

    Posted 14 Apr 2011 Link to this post

    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 
  2. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 18 Apr 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. asol
    asol avatar
    4 posts
    Member since:
    Aug 2014

    Posted 27 Aug 2014 in reply to Jack Link to this post

    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.



  5. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 28 Aug 2014 Link to this post

    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.
     
  6. asol
    asol avatar
    4 posts
    Member since:
    Aug 2014

    Posted 28 Aug 2014 in reply to Stefan Link to this post

    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!!)
  7. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 29 Aug 2014 Link to this post

    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.
     
  8. asol
    asol avatar
    4 posts
    Member since:
    Aug 2014

    Posted 29 Aug 2014 in reply to Peter Link to this post

    thanks Mr. Peter.
    nice solution,i try it and report result here.
    thank you again for your help and good product.
  9. asol
    asol avatar
    4 posts
    Member since:
    Aug 2014

    Posted 29 Aug 2014 in reply to Peter Link to this post

    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.

  10. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 01 Sep 2014 Link to this post

    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.
     
Back to Top
UI for WinForms is Visual Studio 2017 Ready