Top search
Forums top search
FormatMessage LoadString from string table
Hi, do you know if there`s a simple / fast solution to add several strings from the string-table to one CString using FormatMessage? CString test ("%1%, %2% some other comments %3% and %4%"); CString test2(""); for(int i=0; ...
Message posted on the September 13th, 2010 - 9:35 AM ET
using the string class with LoadString( )
I'm finally starting to use the string class rather than char* and I'm wondering how I would load an LPSTR via LoadString( ) into a string variable? Regards, Ron Francis www.RonaldFrancis.com
Message posted on the November 11th, 2009 - 9:51 PM ET
I need to LoadString() programmatically based on ID not Value
I am localizing a application that has over 40 projects. Currently in our application we have some global strings that are accessed by all the projects. To facilitate localization I need to transfer these strings into a .rc file. The problem is ...
Message posted on the June 23rd, 2009 - 6:08 PM ET
Wierd Error Message about "vc\include\fstream"
I posted an article a short while back where I said I had a working program, that read data from a file and performed processing on that data. My boss asked me to change it so that every fifteen minutes it read a new line from the file and changed ...
Message posted on the November 5th, 2010 - 12:48 PM ET
MDI GUI
Hi, I have created (generated) a MDI project with tabbed documents with VS2008 Pro. Visual Studio generates an application with the File/Class view window, properties window, output window and the first MDI document/ view. I want to control the ...
Message posted on the March 1st, 2010 - 2:25 PM ET
problem in using mfc in windows service
Hi, I have created a windows service from app wizard win32 console application. I have selected the "Use MFC in Shared DLL option". But when i use CString::LoadString to load a string from the resource table, then LoadString returns ...
Message posted on the February 19th, 2009 - 6:29 AM ET
Localization help...
We are working on localizing a mixed COM/MFC application. The MFC dialogs automatically load resources from the localized satellite .dlls correctly, but the ATL dialogs only load resources from the primary .dll. Is it possible to make the ATL ...
Message posted on the July 22nd, 2009 - 2:24 PM ET
CString ... are 'they' nuts?
The code between /* ### */ is - of course - not in the original ... 8-| const CString& CString::operator=(LPCTSTR lpsz) { /* ### */ if (lpsz != NULL && HIWORD(lpsz) == NULL) { UINT nID = LOWORD((DWORD)lpsz); if (!LoadString(nID)) ...
Message posted on the February 4th, 2009 - 12:08 PM ET
Upgrading from VC6 to VC2010
I am attempting to upgrade to VS2010 from apps running under VS6 In my main Dialog's .cpp program I have the following under VC6 which works fine: BOOL CAdelphiPDlg::OnInitDialog() { CDialogEx::OnInitDialog(); ASSERT((IDM_ABOUTBOX & 0xFFF0) == ...
Message posted on the November 23rd, 2012 - 4:53 PM ET
METAFILE Memory Leak help!
I am new to GdiPlus and METAFILEs. We have a Sharepoint web part, that basically calls up an ASPX web page (C#) that calls a remote dll web service (C++) that then calls the engine dlls (C++) that produces an image of a chart and then displays it ...
Message posted on the January 20th, 2011 - 11:44 AM ET
Failed to create empty document.
Hi, I am getting "Failed to create empty document." when in release mode of my mfc sdi app(feature pack). and when in debug mode it points to ENSURE(strTitle.LoadString(IDS_AFXBARRES_MENU_BAR_TITLE)); Line:716 of File: afxmenubar.cpp ...
Message posted on the April 26th, 2010 - 11:27 AM ET
Terminating Accept
Hi All. Recently I posted a question (http://groups.google.com/group/ microsoft.public.vc.mfc/browse_thread/thread/6ec9bd3dc80c408e#) about a problem regarding closing an app using a system tray icon menu. What I didn't know till now is that the ...
Message posted on the March 22nd, 2010 - 9:28 AM ET
Changing fonts again.
Can someone help me with a font problem? In the code below I am trying to set the font for the c_info text variable. Whether I use FF_SWISS or FF_SCRIPT or any other the displayed text is allways the same. Changing the height, width, weight, ...
Message posted on the March 14th, 2010 - 9:24 AM ET
More Printing questions..... Merry Christmas
Hello Everyone. I have been struggling with this item for some time. For a while I was content to ignore it, but it has finally made it to the top of my list. I have an application where the User may choose reporting fonts. Three fonts. One for the ...
Message posted on the December 22nd, 2009 - 8:27 AM ET
June 20th, 2013 - 5:15 AM ET
Join now
Login

