Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C++/CLI C Windows MFC ATL STL
I'm new to Windows programming and I'm wondering what would be the best data types to use in MFC. I am use to a DOS/UNIX environment, but it seems every time I turn around VS2010 wants me to cast something or my data type will not convert to something I have done. What should I stick with to make my life easier? What should I read up on to get a handle on the lastest methods? Are there certain library functions to stick with? I don't know what works best with Windows programming.
Posted 7-Dec-11 18:30pm
DrBones691.9K
Comments
SAKryukov at 7-Dec-11 23:36pm
   
Why C++/CLI it tagged? Remove it; it has nothing to do with MFC. Why C?
--SA
DrBones69 at 7-Dec-11 23:41pm
   
Because c & c++ are languages that I'm familiar with. The above states that I am use to a DOS/UNIX environment.
SAKryukov at 8-Dec-11 23:05pm
   
I did not say "C++", I say, "C++/CLI", which is a very different language. You should tag only in the scope of your question; and C++/CLI cannot be used with MFC. And what, are you familiar with C++/CLI? Based on DOS/UNIX? (Well, based on UNIX this is possible in principle...)
--SA
DrBones69 at 9-Dec-11 19:26pm
   
I'm sorry if I offended you, I'm only trying to figure out what data types work well with MFC without having to convert something every time I turn around. I can do alot with native programming, but with MFC the logic is the same, but the data types I think I need some help with. For instance, manipulating a C array is simple, but an MFC CStringArray throws me for a loop. Thank you for trying to teach me proper posting techniques, but what I need is MFC techniques.
 
-DrB
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

It looks like you are just starting, but your approach is already so wrong!
DrBones69 wrote:
What should I stick with to make my life easier?
Nothing. Are you sure you really need easier life? Most people want better life; and better life is usually not as easy and bad life.
 
DrBones69 wrote:
What should I read up on to get a handle on the lastestlatest methods?
You should read on technology, not methods. Why do you think you need latest methods? Normally, wise people prefer better methods, not the latest. Some of them are new, some are quite old. It depends.
 
DrBones69 wrote:
Are there certain library functions to stick with?
No, never. You should stick not to functions, but to ideas, and not too much. Sticking to anything too much, you loose flexibility.
 
DrBones69 wrote:
I don't know what works best with Windows programming.
Brain.
 
—SA
  Permalink  
v4
Comments
DrBones69 at 9-Dec-11 23:44pm
   
"Brain"
 
HaHaHaHoHoHoHaHaHa!
SAKryukov at 10-Dec-11 20:52pm
   
Well, this is a hint. Don't look for recipes, use your brain (first).
--SA
Pranit Kothari at 15-Dec-11 21:30pm
   
5!
SAKryukov at 16-Dec-11 8:47am
   
Thank you, Pranit.
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

When I started learning MFC this[^] helped me a lot.. See I think you are bogged down with MFC classes and architecture. Have patience, you can start with simple console based application, then move on Dialog based and so on...
  Permalink  
Comments
DrBones69 at 12-Dec-11 19:12pm
   
Good link, Thanks PK!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Pranit Kothari at 8-Dec-11 0:13am
   
He is new with MFC not with C++

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Kornfeld Eliyahu Peter 275
1 Maciej Los 204
2 Sergey Alexandrovich Kryukov 200
3 King Fisher 185
4 OriginalGriff 183
0 OriginalGriff 6,223
1 DamithSL 4,724
2 Maciej Los 4,196
3 Kornfeld Eliyahu Peter 3,894
4 Sergey Alexandrovich Kryukov 3,496


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 7 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100