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...
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]
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]
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]
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
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
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]
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 :-)
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
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 :-)
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
****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.