Skip to content

Managed C++/CLI

Discussions on Managed Extensions for Visual C++ .NET

This category can be followed from the open social web via the handle managed-c-cli@forum.codeproject.com

4.4k Topics 14.9k Posts
  • Unmanaged Event

    csharp hardware question announcement
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • How do I make an assembly?

    c++ question csharp dotnet sysadmin
    2
    0 Votes
    2 Posts
    2 Views
    E
    I just realized that even if I create a Managed C++ Application project and get the AssemblyInfo file automatically generated I still get the error "Unable to load assembly ....." when I try to set "Trust an assembly" in the .net wizards. If I try with a dll though everything works fine. What am I doing wrong? The only thing I did after having created the Managed C++ application as well as the Managed C++ class library was to compile them. I've tried adding a strong name key but that did not help. All help will, as always, be greatly appreciated. /EnkelIk
  • how to?

    com tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • HOW to creat FileStream?

    com json tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    1 Posts
    1 Views
    No one has replied
  • may i read the same object on network from a file?

    com sysadmin tutorial question
    3
    0 Votes
    3 Posts
    3 Views
    I
    i think there is a class in dot net also and object are also created in csharp? i think thats a language independent question. r00d0034@yahoo.com
  • OutputDebugString ?

    com tutorial question
    2
    0 Votes
    2 Posts
    2 Views
    A
    From Managed C++ you can include windows.h and then just call the function as you normally would. This will make use of the "IJW" or "it just works" interoperability feature of Managed C++. The following page has additional information on this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmxspec/html/vcmg\_PlatformInvocationServices.asp Hope this helps! Tarek Madkour & Mark Lacey Microsoft Visual C++ Team This posting is provided "AS IS" with no warranties, and confers no rights.
  • execution and flow ?

    debugging csharp visual-studio com tutorial
    2
    0 Votes
    2 Posts
    4 Views
    M
    in the console window ? or the output window ? something like : using namespace System::Diagnostics; ... // on the console window. Console::WriteLine(S"XmlNodeType::Element : {0}", reader->Name ); // on the output window. Debug::WriteLine(S"XmlNodeType::Element : {0}", reader->Name ); Max.
  • Please someone explain "Managed Extensions or MC++" for new comer!!

    c++
    2
    0 Votes
    2 Posts
    2 Views
    C
    Image C++ stripped of all power so it fits into the .NET world. MC++. Basically it's C++ without the cool stuff, but with the .NET framework libraries, and compiled to MSIL, so it is interoperable with C#, etc. Useful to pull legacy code into the .NET world, but otherwise a waste of time IMO. If you're new, you should stay away from ALL M$ specific constructs and learn C++ before you think about windows, dialogs, MFC, etc. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
  • Looking for a good book

    help question learning
    2
    0 Votes
    2 Posts
    4 Views
    M
    on microsoft press, look for "Visual C++.net step by step" by Templeman and Olsen, quite a nice book. maybe not have all of the more advanced features you're looking for, but it's a nice start. Max.
  • Can't debug anymore ...

    visual-studio csharp c++ debugging help
    3
    0 Votes
    3 Posts
    4 Views
    M
    I had this problem several weeks ago and here are 2 steps which helped me to solve this mystery: 1. In the project properties dialog set Linker\Debug\Generate Debug Info to Yes. 2. If you have dlls make sure to copy Debug Databases ( *.pdb ) to the app's folder. :) 43 68 65 65 72 73 2c 4d 69 63 68 61 65 6c
  • System tray ALERTS ??

    tutorial c++ question
    2
    0 Votes
    2 Posts
    2 Views
    M
    Here's one Taskbar Notification dialog[^] 43 68 65 65 72 73 2c 4d 69 63 68 61 65 6c
  • i want to use .net namespaces ?

    csharp c++ com help tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • exceptions?

    c++ com help tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • C++

    c++ question
    4
    0 Votes
    4 Posts
    4 Views
    A
    Here's the program: int n; cin >> n; cout << "The result is" << (3 * n * n - n)/2 << endl; Best regards, Alexandru Savescu
  • IShellView and thumbnails on windows 2000

    help tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    1 Posts
    1 Views
    No one has replied
  • api available ?

    c++ com json tutorial question
    4
    0 Votes
    4 Posts
    2 Views
    N
    r00d0034@yahoo.com wrote: if i have window title then may i get the hwnd of it ? Use FindWindow or FindWindowEx Nish Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
  • is it the right way?

    csharp c++ com help tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Follow-up : C++ .NET GUI Creation

    c++ tutorial csharp visual-studio com
    6
    0 Votes
    6 Posts
    4 Views
    M
    also, look at MSDN : msdn[^] and remembering that the System::WinForms namespace was replaced with System::Windows::Forms. Max