Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Visual C++/MFC People

FortKnox (169099) writes | more than 11 years ago

User Journal 13

Lets say... hypothetically... that there is a consultant (that is well versed in Java and OO and had C++ while at school, and is a bit rusty at it) that needed to learn Visual C++ and MFC within, say, a week.

What would he have to do to get in the know that fast?Lets say... hypothetically... that there is a consultant (that is well versed in Java and OO and had C++ while at school, and is a bit rusty at it) that needed to learn Visual C++ and MFC within, say, a week.

What would he have to do to get in the know that fast?

He has a copy of VC++ 6 lying around somewhere, but hasn't ever done C++ on windows.

cancel ×

13 comments

Sorry! There are no comments related to the filter you selected.

Buy a Qt license... (1)

Xerithane (13482) | more than 11 years ago | (#5921660)

Skip MFC.. That's what they made me do, almost the exact same circumstances except I wasn't rusty with C++..

Go for GTK+ or Qt (1)

AnimeFreak (223792) | more than 11 years ago | (#5921704)

MFC is a fucking pain the ass to code in.

Re:Go for GTK+ or Qt (1)

M.C. Hampster (541262) | more than 11 years ago | (#5921780)


MFC is a fucking pain the ass to code in.

Sorry, I have to ask: What exactly is a "fucking" and how does it pain the ass? :-)

Re:Go for GTK+ or Qt (0)

Anonymous Coward | more than 11 years ago | (#5921974)

When you get fucked in the ass, you look like this guy right here [goatse.cx] That's why it hurts.

Also note, do not click that link, it's a goatse.cx link. but you clicked it before reading this, right?

Re:Go for GTK+ or Qt (1)

John Harrison (223649) | more than 11 years ago | (#5921790)

I agree. I have been in the same position of going from Java to MFC quickly and MFC is crap. It isn't intuitive, there are side effects that you have no chance of understanding, and you can't trace through how things happen or why you need a particular method. I used the book Programming Microsoft Visual C++ by Kruglinski, Wingo, and Shepherd. The book was OK, but MFC is seriously messed up. It is an ugly hack. What else can I say. You will hate it.

On the other hand I was able to be productive in Qt in MINUTES. Interesting how a nice toolkit just works, while a bad one makes you sit and scratch you head.

Look at lots of source code (1)

Jack William Bell (84469) | more than 11 years ago | (#5921744)

... and fake it.

Good point (1)

M.C. Hampster (541262) | more than 11 years ago | (#5921948)

And Code Project [codeproject.com] is a good place to get lots of free MFC code and tutorials.

Thanks (1)

MousePotato (124958) | more than 11 years ago | (#5924216)

great link. Thanks for sharing :)

If you are looking for a book... (1)

M.C. Hampster (541262) | more than 11 years ago | (#5921760)

... Programming Windows with MFC [amazon.com] by Jeff Prosise is considered to be the "Petzold" of MFC. Personally, if your C++ is a litty rusty and you haven't done C++ programming in Windows, trying to learn MFC in a week will be quite a challenge. It's a rather strange implementation of OO principles for Windows and has tons of strange nuances that I can't seem to grasp. If you can get away with skipping MFC, but they won't buy you a Qt license like X mentioned, then you could also look into Windows Template Library (WTL). It comes with the Windows Platform SDK.

Focus on VC++ (1)

Abm0raz (668337) | more than 11 years ago | (#5921795)

VC++ is basically the same as C++, with premade Visual controls, such as windows, textboxes, drop-down lists, etc ...

The easiest way to learn is decide on what you want to do, then ask me :) or, if I'm too drunk to respo... err, unavailable, you can easily check for help online. There are TONS of VC++ help sites with code examples online, all free.

Just remember, VC++ is event driven, unlike C++. If you don't know how to get data to or from your object, type in the object name, followed by a period (ex: FormMain.) and press the down arrow. This will show a list of EVERY available method, function, class, struct, etc ... available. (Method? sorry, my VB got int he way there.) :)

-Ab

MFC (1)

The Bungi (221687) | more than 11 years ago | (#5922023)

If he has an option, he's better off learning WTL. MFC is a pain in the butt.

But, if he must muck with MFC, I'd recommend the book MC Hampster mentioned, as well as going through the Scribble tutorial that ships with VC++.

And yes, Codeproject.com is your friend.

MFC bad. (1)

Keith Russell (4440) | more than 11 years ago | (#5922066)

To paraphrase Dijkstra: The use of MFC cripples the mind. It's teaching, therefore, should be regarded as a criminal offense. :-)

Is this for a specific assignment, or are you just brushing up on your m4d w1n32 skillz? Don't try to plumb the murky depths of MFC unless you absolutely need to. It's not worth the energy. If you're working with COM, check out ActiveX Template Library (ATL). In fact, check out templates in general. STL and Boost are very handy things to have in your toolkit.

Good luck. (1)

JMZero (449047) | more than 11 years ago | (#5922498)

I know it's pointless for me to say, but I have to agree with most of the other people here - MFC is evil (and it's also a bit of a dead end now that .NET is around the corner).

Whether you can learn it quickly enough will depend on what your project is. Are you starting a new application? How fancy is the UI? Any silliness like MDI forms?

If possible, I'd aim it towards rudimentary UI in as few windows as possible. Use the Win32 application wizard to get your first window drawn, and only get caught up in the Windowsisms you need.

If you're going to be working with another project that's already in MFC, it's a different story. It actually isn't that hard to work with code that's already working, and it'll give you good templates to do maintenance work on.

Good luck.
Check for New Comments
Slashdot Login

Need an Account?

Forgot your password?

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>