buddhika888 wrote: > Hi, > I'm a novice to MFC programming and I had some problems when developing a > simple MFC single dialog application. > > Problems: > 1.I couldnt find the difference between CString::LoadString method and > CString::LoadStringW method? > > 2.When displaying a message box, it there are two messeageBox function in a > dialog object. which are messeageBox() and messeageBoxW(). > Why is this? > > Please help me out to find some answers. Thankx in advance. > Buddhika
I'm the resident MFC expert here. To answer your questions: 1) LoadString() is probably the ANSI call. LoadStringW() is the Unicode call. 2) See #1. Microsoft generally provides three function calls/APIs: FunctionName() FunctionNameA() FunctionNameW() FunctionName() will resolve to either A() or W() depending on the status of Unicode during the compilation stage (ANSI [A] or Unicode [W]). Unicode is probably preferred unless you are only targeting English-speaking countries. You can specifically declare which function to call as well (if you need to ignore the Unicode setting and call a specific function). -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
