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
  • You can't implement typesafe collections in MC++

    c++ database
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • TcpListener.AcceptTcpClient query

    question html database com hosting
    3
    0 Votes
    3 Posts
    9 Views
    A
    Yes, I have an application using pretty much the same logic and it works ok. Andres Manggini. Buenos Aires - Argentina.
  • Using C Class in VB

    data-structures help
    6
    0 Votes
    6 Posts
    16 Views
    M
    I'm confused The message "Thanks for your help X| " doesn't represent a bad think... It was simply my ironic death, the death of the lost programmer... anonymous why i don't know...
  • System::Timers::Timer

    csharp c++ help tutorial question
    8
    0 Votes
    8 Posts
    20 Views
    N
    silversmith wrote: #using System::Timers ; That's wrong usage. Try this :- #using <system.dll> Nish Author of the romantic comedy Summer Love and Some more Cricket [New Win]
  • No jagged arrays in MC++

    c++ com question
    7
    0 Votes
    7 Posts
    14 Views
    N
    Christian Graus wrote: And either way I thought it was worth pointing out that jagged arrays are not a new idea. I know that. That's why I wonder why they left it out of the managed extensions. But I have got info that it will be included in the next release of the VC++ compiler :-) Nish Author of the romantic comedy Summer Love and Some more Cricket [New Win]
  • upgrading app from vc6 to vc.net

    csharp c++ help question
    2
    0 Votes
    2 Posts
    7 Views
    N
    The return types don't match. One is a void and the other is an LRESULT Author of the romantic comedy Summer Love and Some more Cricket [New Win]
  • Opening Multiple Forms

    question
    2
    0 Votes
    2 Posts
    6 Views
    N
    dtamburin wrote: I would like to open more than one Form at once I guess you mean modeless forms. You can use Show() for that. dtamburin wrote: I have a base form and want to pop up a custom message box form on top of it when needed. If you mean, you want a modal form you need to use ShowDialog() instead of Show() Or you can use the MessageBox class Author of the romantic comedy Summer Love and Some more Cricket [New Win]
  • Custom collections

    question csharp c++ data-structures cryptography
    2
    0 Votes
    2 Posts
    7 Views
    J
    Refer to Nish's excellent article on implementing collections in MC++. He uses one possible solution (flag to say if it is modified). James "Java is free - and worth every penny." - Christian Graus
  • Two classes

    c++ help question
    7
    0 Votes
    7 Posts
    15 Views
    M
    Thanks man. It's working. :) :) :) 43 68 65 65 72 73 2c 4d 69 63 68 61 65 6c
  • 0 Votes
    1 Posts
    4 Views
    No one has replied
  • i need help!!!!!

    help c++ sysadmin regex tutorial
    4
    0 Votes
    4 Posts
    11 Views
    D
    Rama Krishna wrote: At first I thought that it was pretty rude I think my reply was very rude.
  • 0 Votes
    2 Posts
    7 Views
    J
    Use one of the synchronization classes to ensure that only one thread can access the thread at a time (or multiple threads can read; but they must be done before a write could be performed). Look for the .NET Monitor and Mutex classes for more info (more are available but those two are off the top of my head). James
  • Some hope for MC++ coders

    c++ question winforms com collaboration
    20
    0 Votes
    20 Posts
    50 Views
    N
    Rocky Moore wrote: Actually, isn't that an ATL string [in] MFC [in] .NET Yes it is :-D Author of the romantic comedy Summer Love and Some more Cricket [New Win]
  • Indexers, MC++ and C#

    csharp c++ database dotnet
    4
    0 Votes
    4 Posts
    12 Views
    N
    James T. Johnson wrote: Its not just MC++ collections that can't be accessible through C# indexers; its that MC++ indexers don't come up in C# as indexers. I can't figure out why that is; because I haven't looked into it much; maybe I'll revisit that issue now Puzzling!!! Nish :suss: Author of the romantic comedy Summer Love and Some more Cricket [New Win] Buy it, read it and admire me :-)
  • A problem with serializtion

    help xml question
    6
    0 Votes
    6 Posts
    14 Views
    J
    Correct; unfortunately MS didn't document this topic very well. The XmlSerializer doesn't use any of the other serialization stuff, no Serializable attribute nor ISerializable; I think its a shame myself. The XmlSerializer works by using the reflection.emit classes to construct a class that will place all the public fields/property's in an XML document; when it deserializes it tries to access the nodes in the document as the field/property name to place the value back in. When it does this it creates an instance of the object using the default constructor. It DOES let you control some functionality by using Attributes and the OverrideAttributes class; but I don't like that solution very well. James
  • 0 Votes
    4 Posts
    10 Views
    N
    Brandon Parker wrote: find a computer running dual processors!!! I was thinking quad P IV with 2GB RAM Nish :-( Author of the romantic comedy Summer Love and Some more Cricket [New Win] Buy it, read it and admire me :-)
  • Indexers

    csharp c++
    5
    0 Votes
    5 Posts
    16 Views
    M
    I'll appreciate it. :) Thanks
  • Mixing managed and unmanaged code

    question csharp c++ dotnet learning
    6
    0 Votes
    6 Posts
    17 Views
    A
    Nish - Native CPian wrote: if it allows you to have a managed line of code inside an unmanaged marked function. I should think not! It doesn't! Best regards, Alexandru Savescu
  • Fatest Way Around

    help question database tutorial
    11
    0 Votes
    11 Posts
    31 Views
    A
    I think you need not replace the STL that comes with Visual C with the SGI implementation. Best regards, Alexandru Savescu
  • WinForms?

    csharp question c++ delphi winforms
    6
    0 Votes
    6 Posts
    17 Views
    N
    ****Alexpro wrote: Thanks Nish, but as you said in the first article, there is now GUI support in Manage C++ Yeah, that's really sad!!! Nish :( Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.