Welcome to MSDN Blogs Sign in | Join | Help

Return to the native land

I have heard about and experienced myself the fun/pain of transitioning into managed code from native. However, right now I'm going through the reverse phase. I'm coding in pure C++ after almost 3 years. Its not maintainence work but designing and creating new COM components that are used from managed and native code, which makes it all the more difficult.

The feeling is kind of weird. I get the same macho-geeky feelings one gets when mucking around with COM pointers and weird ATL macros and fix memory corruption/leaks. But mostly I feel scared. I double check every allocation I make to ensure I have released them and feel helplessly out of Fx support.

The funny part is that all the weird COM things which I desperately wanted to forget came back seamlessly. I have an advice for people working on COM. Bring up a text editor and code COM scratch up without any Fx support once. Manage all the ugly vtables, aggregation, dispatch tables yourself and then you'll never ever forget it. I think inside COM or one such books Essential COM takes the reader through this step and thats the one I followed and its helping me immensely now.

 

Published Friday, April 13, 2007 9:46 PM by abhinaba
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Return to the native land

Friday, April 13, 2007 3:30 PM by Dilip

That must be "Essential COM" by Don Box.  It avoids teaching COM via any frameworks (like ATL) and takes the straight C++ approach.

I had similar experiences when I went back to working in COM/C++ after spending 3 blissful years with .NET/C#.  It wasn't pleasant to say the least but it does add to my geek factor when I write some really convoluted template code that I myself will forget in a day.

# re: Return to the native land

Saturday, April 14, 2007 2:34 PM by abhinaba

Thanks for reminding. Essential COM it is...

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker