Click here to Skip to main content
15,902,198 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionWhat are the different project types? Pin
Hadi Fakhreddine23-Nov-04 23:04
Hadi Fakhreddine23-Nov-04 23:04 
AnswerRe: What are the different project types? Pin
toxcct25-Nov-04 1:01
toxcct25-Nov-04 1:01 
GeneralProgramming a ping n trace route program Pin
hafiziziziz22-Nov-04 16:20
hafiziziziz22-Nov-04 16:20 
GeneralRe: Programming a ping n trace route program Pin
Roland Bär7-Dec-04 0:40
Roland Bär7-Dec-04 0:40 
GeneralLinking with an unknow java VM from Managed C++ Pin
Large Data File20-Nov-04 22:11
Large Data File20-Nov-04 22:11 
GeneralPlacing a form on another form Pin
1gfr118-Nov-04 11:13
1gfr118-Nov-04 11:13 
Generalwrapping unmanaged classes for controls Pin
BlackDice18-Nov-04 9:50
BlackDice18-Nov-04 9:50 
GeneralHa Ha Pin
ursus zeta24-Nov-04 10:28
ursus zeta24-Nov-04 10:28 
You know, until I saw this question, I hadn't read the source for the C Maunder Grid Control. The MFC Grid Control is an impressive body of work (and, I didn't read it all the way through on first reading).
I've never been in a project where you would have to wrap so many disparate types, but, it's probably best not to EVEN TRY to display that monster on a .NET Form.
I'm fairly new to .NET, and, in particular the Interop marshaler, but, I don't think you could wrap the "mfc control class" (because there isn't one). It's not a COM component, and consequently, has no type library. If you wanted to pursue this strategy, you'd have to wrap each individual type that C Maunder uses in his implementation, and marshaling all that data into .NET accurately would surely drive you to (well, what's the worst thing you can imagine?).
Run Time Callable Wrappers are generally for small cohesive units, like classes and interfaces and objects that are type compatible from managed to unmanaged. User defined types often require special custom marshaling routines, and much of this is trial and error.
However, I'll bet Microsoft likes the C Maunder MFC Grid Control (they have spies everywhere), and, I wouldn't be surprised if they have a highly elite team of .NET code fiends working on the advanced version as we forum.
The overriding concern here is: Just how different are MFC and .NET?
I would recommend the book: ".NET and COM: The Complete Interoperability Guide", by Adam Nathan (everything I know, I learned from this book).
To use this control in .NET, you'd have to re-write the entire thing to be compatible with the Common Language Runtime types. I think this would be a very cool commercial project. I wonder if Chris has franchised the concept yet.
GeneralRe: wrapping unmanaged classes for controls Pin
TigerNinja_14-Dec-04 13:51
TigerNinja_14-Dec-04 13:51 
GeneralRe: wrapping unmanaged classes for controls Pin
sunhui15-Dec-04 12:57
sunhui15-Dec-04 12:57 
GeneralMC++ and CString Pin
Cokeisit16-Nov-04 23:57
Cokeisit16-Nov-04 23:57 
GeneralRe: MC++ and CString Pin
TigerNinja_14-Dec-04 13:48
TigerNinja_14-Dec-04 13:48 
Generalerror PRJ0002 : error result returned from 'rc.exe'. Pin
Emiliano16-Nov-04 12:39
Emiliano16-Nov-04 12:39 
GeneralRe: error PRJ0002 : error result returned from 'rc.exe'. Pin
Flame Gitsnik23-Nov-04 10:41
Flame Gitsnik23-Nov-04 10:41 
GeneralRe: error PRJ0002 : error result returned from 'rc.exe'. Pin
Emiliano24-Nov-04 3:01
Emiliano24-Nov-04 3:01 
GeneralRe: error PRJ0002 : error result returned from 'rc.exe'. Pin
reia0918-Aug-10 23:47
reia0918-Aug-10 23:47 
GeneralRe: error PRJ0002 : error result returned from 'rc.exe'. Pin
reia0919-Aug-10 0:11
reia0919-Aug-10 0:11 
GeneralFramework handling multiple interops Pin
sups111115-Nov-04 22:41
sups111115-Nov-04 22:41 
GeneralRe: Framework handling multiple interops Pin
ursus zeta20-Nov-04 12:07
ursus zeta20-Nov-04 12:07 
GeneralScrolling down Pin
User 91483314-Nov-04 22:22
User 91483314-Nov-04 22:22 
GeneralRe: Scrolling down Pin
Christian Graus15-Nov-04 9:35
protectorChristian Graus15-Nov-04 9:35 
GeneralRe: Scrolling down Pin
User 91483315-Nov-04 14:22
User 91483315-Nov-04 14:22 
GeneralRe: Scrolling down Pin
Christian Graus15-Nov-04 14:41
protectorChristian Graus15-Nov-04 14:41 
GeneralRe: Scrolling down Pin
User 91483317-Nov-04 4:26
User 91483317-Nov-04 4:26 
GeneralClock Simulation in .NET Pin
ZisisSim13-Nov-04 22:58
ZisisSim13-Nov-04 22:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.