Click here to Skip to main content
15,879,096 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
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
Comments
Sergey Alexandrovich Kryukov 7-Dec-11 23:36pm    
Why C++/CLI it tagged? Remove it; it has nothing to do with MFC. Why C?
--SA
DrBones69 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.
Sergey Alexandrovich Kryukov 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 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

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
 
Share this answer
 
v4
Comments
DrBones69 9-Dec-11 23:44pm    
"Brain"

HaHaHaHoHoHoHaHaHa!
Sergey Alexandrovich Kryukov 10-Dec-11 20:52pm    
Well, this is a hint. Don't look for recipes, use your brain (first).
--SA
[no name] 15-Dec-11 21:30pm    
5!
Sergey Alexandrovich Kryukov 16-Dec-11 8:47am    
Thank you, Pranit.
--SA
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...
 
Share this answer
 
Comments
DrBones69 12-Dec-11 19:12pm    
Good link, Thanks PK!
 
Share this answer
 
Comments
[no name] 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900