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
  • Process related question?

    question tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • 32 Bitmaps -> 24 Dibs -> .bmp File

    graphics json performance help
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • moving labels

    question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Remoting in VC++

    tutorial csharp c++ sysadmin
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • plz see this error

    csharp c++ visual-studio com help
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Why an error??

    help question
    2
    0 Votes
    2 Posts
    2 Views
    N
    You have simply created an array. But you haven't created the individual array members yet! Use the following code :- __gc struct hello { int x; int y; }; int _tmain(void) { hello *st[]= new hello*[5]; for(int i=0; i<5; i++) st[i] = new hello(); st[0]->x = 100; return 0; } Regards, Nish Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
  • com?

    com help tutorial question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • how to convert intptr into hwnd

    com tutorial question
    2
    0 Votes
    2 Posts
    6 Views
    F
    Hi, Get the Integer from IntPtr and then get HWND from the Integer. eg: hWnd = (HWND)((int)iPtr); Thanks, Firoz
  • waiting for ur reply

    com tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • C++ to MC++ testing

    c++ dotnet csharp testing beta-testing
    2
    0 Votes
    2 Posts
    4 Views
    J
    If you simply compile you app with /clr and add no __gc classes or use and __gc classes, then you haven't use the CLR at all. The /clr will add a dependancy to the application so that it won't run on a machine that doesn't have the .NET runtime installed. If all you're doing is /clr with nothing else, it's not worth using the /clr. Only use the /clr if you going to use any of the clr objects or routines. Joel Lucsy (jjlucsy@ameritech.net)
  • executing activeX control app in .Net framework

    csharp dotnet com tutorial question
    2
    0 Votes
    2 Posts
    2 Views
    N
    ydasari wrote: Can anyone tell me how to execute a activeX control application in .Net framework? I could compile but it asks me for "which excutable" when i try to run. You can't execute a control obviously. Add another project(exe) to the solution and make it the default project. In that project use the activex control you are making. Now when you take run, the program would get executed that houses the control. Nish Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
  • Proffesional vs Enterprise !!!

    game-dev csharp html database visual-studio
    3
    0 Votes
    3 Posts
    3 Views
    H
    Hello David :) Thanks alot for your help ;) My month article: Game programming by DirectX by Lan Mader. Please visit in: www.geocities.com/hadi_rezaie/index.html Hadi Rezaie
  • event abt keboard and mouse?

    com tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • plz read and solve mine problem

    com help question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Arrays and stuff

    csharp help question
    4
    0 Votes
    4 Posts
    3 Views
    J
    Nishant S wrote: Last time I quoted you, you had used a newly invented word - "performant" I don't think he invented the word; its one of those American words that just isn't in the dictionary :) Blasted dictionaries can't always be right ;P James "And we are all men; apart from the females." - Colin Davies
  • what is managed c++?

    question c++
    2
    0 Votes
    2 Posts
    2 Views
    N
    The C++ language, compiled for the .NET platform. A set of language extensions expose functionality of the platform itself - garbage collection, the common type system, etc. This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2001 Microsoft Corporation. All rights reserved.
  • char representation of a double

    tutorial
    2
    0 Votes
    2 Posts
    2 Views
    N
    For native or managed code? Something like the following would do the trick: (in native code) memcpy(szDb, &nDb, 8); (with a managed array) char __pin* temp = &szDb[0]; memcpy(temp, &nDb, 8); This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2001 Microsoft Corporation. All rights reserved.
  • ToolBoxBitMap Attribute

    csharp c++ graphics help tutorial
    2
    0 Votes
    2 Posts
    2 Views
    N
    Firoz -- I've been meaning to upload an article on this... __typeof() doesn't work on types that haven't been fully parsed by the compiler; this will be fixed in a future release. As a workaround, place a dummy class ahead of your MyControl class and specify it instead: namespace NickHod { namespace Multimedia { private __gc class ThisAssembly { }; \[ToolboxBitmapAttribute(\_\_typeof(ThisAssembly), S"CdDrive.bmp") \] public \_\_gc class CdDrive : public System::ComponentModel::Component { The next trick is to name your bitmap using the fully qualifed namespace where the dummy-class lives. In my example above, the bitmap filename is "NickHod.Multimedia.CdDrive.bmp" In the Linker/Input settings for your project, specify this bitmap under "Embed Managed Resource File" (the linker switch is /ASSEMBLYRESOURCE). The other thing you'll need to do is use sn.exe to genereate a strong-name for your assembly (specified in AssemblyKeyFileAttribute() in AssemblyInfo.cpp), then register it in the GAC with gacutil.exe. Good luck! -Nick This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2001 Microsoft Corporation. All rights reserved.
  • MFC APLICATION AND MANAGED CODE

    csharp c++ dotnet com question
    7
    0 Votes
    7 Posts
    2 Views
    I
    if u could tell that if i want to inherit a class from csocket that might be c# class how to do it ? relpy in the same way plz sketch a little code for that. thanks for above code you dont imagine how much it solve mine promblem. r00d0034@yahoo.com
  • 0 Votes
    1 Posts
    1 Views
    No one has replied