CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2012
    Location
    UAE
    Posts
    62

    [Request] Clarifiactions about Native C++ Manged C++ and DirectX

    I start Learning C++ Since few Weeks.. and I have some clarifications about { Native C++ , Managed C++ & DirectX}

    I am using Visual Studio 2010 :

    Q1. Can I write native C++ by Visual studio 2010 or Not?

    Q2. If I want to write Application by Visual studio 2010 , and I need to use DirectX in my code
    is it allowed to use Managed code with Native code (DirectX) .. I am confused for this point

    Q3. Microsoft released also SlimDx .. is slimDX to solve this problem (Manged + Unmanaged)codes

    Regards,,

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: [Request] Clarifiactions about Native C++ Manged C++ and DirectX

    1. If you have the full version of Visual Studio it supports native C++ / managed C++ / C# and more. If you have the Express versions you have to install one for native/managed C++ and one for C#

    2. Managed and native C++ can be mixed. See this http://msdn.microsoft.com/en-us/library/ms973872.aspx

    3. I haven't used it but according to what they say at there homepage http://slimdx.org/ yes.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  3. #3
    Join Date
    Jul 2002
    Posts
    2,543

    Re: [Request] Clarifiactions about Native C++ Manged C++ and DirectX

    2. Yes, you can use DirectX both in native C++ application, and in mixed C++/CLI code.
    3. It looks like SlimDX is .NET DirectX wrapper. You don't need it in C++. In C++/CLI, however, you can use it as any other third-party .NET library, but this doesn't make sense - why do you need C++ to write client code for .NET?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured