MFC to .NET
-
What if you have a set of controls that you like and been using for a while in MFC and suddendly you want to use them under C#. What is the approach would you use to make the porting painless? Or maybe just exposing MFC to .NET Cheers, Erick
-
What if you have a set of controls that you like and been using for a while in MFC and suddendly you want to use them under C#. What is the approach would you use to make the porting painless? Or maybe just exposing MFC to .NET Cheers, Erick
Erick Sgarbi wrote: Or maybe just exposing MFC to .NET I don't have much experience on the subject. But Nish and Tom Archer are releasing a book this fall (I think September) on how to do this. Matt Newman
Sonork: 100:11179 "Jokes should at least try to be intelligent - this is just toilet humor" - Heath Stewart -
What if you have a set of controls that you like and been using for a while in MFC and suddendly you want to use them under C#. What is the approach would you use to make the porting painless? Or maybe just exposing MFC to .NET Cheers, Erick
You'd use MFC with .NET. Tom and Nish have a book comming out soon[october I think... I read the first 4 chapters and it's very good at explaining all this stuff]. If you need some help drop me an email and I'll see what I can do but I'm only around for the next 2 weeks and I'm a little busy at the moment. Regards, Brian Dela :-)
-
What if you have a set of controls that you like and been using for a while in MFC and suddendly you want to use them under C#. What is the approach would you use to make the porting painless? Or maybe just exposing MFC to .NET Cheers, Erick
-
Thanks Brian. I'll definetly put an order for that one :-D. I am not in a hurry for porting my MFC to .NET however I just wanted to know if there was a quick and dirty way to do it so I could start doing some benchmarking. Cheers. Erick
-
Erick Sgarbi wrote: Or maybe just exposing MFC to .NET I don't have much experience on the subject. But Nish and Tom Archer are releasing a book this fall (I think September) on how to do this. Matt Newman
Sonork: 100:11179 "Jokes should at least try to be intelligent - this is just toilet humor" - Heath StewartThanks Matt!:-D Cheers, Erick
-
You'd use MFC with .NET. Tom and Nish have a book comming out soon[october I think... I read the first 4 chapters and it's very good at explaining all this stuff]. If you need some help drop me an email and I'll see what I can do but I'm only around for the next 2 weeks and I'm a little busy at the moment. Regards, Brian Dela :-)
I thought the book was about using .NET stuff from a MFC program. What Erick want is the other way around, using MFC controls in C# - Anders Money talks, but all mine ever says is "Goodbye!" http://SourceLocker.net[^] SourceControl and DefectTracker Project. nsms@spyf.dk <- Spam Collecting ;)
-
I thought the book was about using .NET stuff from a MFC program. What Erick want is the other way around, using MFC controls in C# - Anders Money talks, but all mine ever says is "Goodbye!" http://SourceLocker.net[^] SourceControl and DefectTracker Project. nsms@spyf.dk <- Spam Collecting ;)
Anders Molin wrote: I thought the book was about using .NET stuff from a MFC program. Yep. but I said in teh first line of the post that you would use MFC with .NET. Ok.. Maybe I wasn't clear. Regards, Brian Dela :-)
-
What if you have a set of controls that you like and been using for a while in MFC and suddendly you want to use them under C#. What is the approach would you use to make the porting painless? Or maybe just exposing MFC to .NET Cheers, Erick
Check this article if interested: http://members.cox.net/igor.tebelev/ActiveXDeployer Unfortunately it can't be published on CP. "...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..." Me
-
Check this article if interested: http://members.cox.net/igor.tebelev/ActiveXDeployer Unfortunately it can't be published on CP. "...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..." Me
Thanks Igor, But my questions was more towards MFC. Say you have an MFC dll that contais ..a grid yes..say that I am trying to get Chris' MFC grid to work on .NET, what is the most painless way to do it? Nice article anyway. Cheers Erick
-
Thanks Igor, But my questions was more towards MFC. Say you have an MFC dll that contais ..a grid yes..say that I am trying to get Chris' MFC grid to work on .NET, what is the most painless way to do it? Nice article anyway. Cheers Erick
I would assume that nothing stops you from writing MC wrapper around MFC dll. However, that would be almost the same as converting MFC control to an ActiveX with just one advantage: you don't have to follow strict Automation rules. Would it be painless? I doubt. For simple cases it probably would. But for more advanced MFC controls -- I would assume it will require alot of work. Also, trying to utilize MFC will render your managed code not to run in secured sandbox. So, why bother? Regards, Igor "...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..." Me
-
I would assume that nothing stops you from writing MC wrapper around MFC dll. However, that would be almost the same as converting MFC control to an ActiveX with just one advantage: you don't have to follow strict Automation rules. Would it be painless? I doubt. For simple cases it probably would. But for more advanced MFC controls -- I would assume it will require alot of work. Also, trying to utilize MFC will render your managed code not to run in secured sandbox. So, why bother? Regards, Igor "...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..." Me
That's what I thought.:(( Cheers, Erick