|
I assume that the computer asked for a name like mfc42d.dll?
This is the debug version of the mfc.
You need to make a release build on your computer (see top toolbar or menu 'projects/configurations'. This one will then work with the non-debug version of the mfc, whose dll is available almost everywhere.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Or you can have your project built in static MFC library linking mode.
If the MFC library is the only library you are using.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
|
Some people just don't take to time to search around a bit before asking already-answered questions, eh?
The kindest thing you can do for a stupid person, and for the gene pool, is to let him expire of his own dumb choices.
[Roger Wright on stupid people]
We're like private member functions
[John Theal on R&D]
|
|
|
|
|
Nah, I don't mind if they didn't know about the FAQ (Chris took the link to it off the message boards). If they keep asking questions that are in the FAQ, then...
--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber
Kosh reminded me of some of the prima-donna programmers I've worked with. Knew everything but when you asked them a question; never gave you a straight answer.
-- Michael P. Butler in the Lounge
|
|
|
|
|
My OS is Windows 2000 with the Microsoft multilingual add on. I have a simple non-unicode windows MFC app that contains one standard property sheet with three pages on it. The property pages are displayed fine when I am using the "English" language.
I now change my language to use "Chinese (standard)". When the sheet is displayed, the pages inside the sheet appear with the wrong font and are oversized, with most of my controls not visible off the edge of the property sheet (the sheet does not resize to accommodate the oversized pages). Other standard dialogs appear OK.
I think this may be some kind of windows bug. Has anyone encountered anything like this before? Any ideas on a solution? No matter how hacky...
|
|
|
|
|
how can i add unicode support and arabic support in visual c?
|
|
|
|
|
I just converted a simple APP to unicode and I had to change the following on my settings dialog:
1) Add ",_UNICODE,UNICODE" to the "Preprocessor definitions" edit box on C/C++ tab.
2) Add ",_UNICODE,UNICODE" to the "Preprocessor definitions" edit box on Resources tab.
3) Change my "Entry-point symbol" to "wWinMainCRTStartup" on the Link tab.
Then, whenever you use strings in your code, you have to use the unicode functions and the "_T" macro and all that.
Not sure about Arabic support specifically...
|
|
|
|
|
And use TCHAR*, CString , wchar*, wstring, wstringstream throughout.
no char*, string as it is meant for MBCS or system without UNICODE.
Hope this helps
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
how to get the type of the system registry of a particular value using c++..
i use RegOpenKeyEx to open reg and RegQueryValueEx to get the value of the subkeys..
how to get the data and type of that value?
ranjani
|
|
|
|
|
how to get the type of the system registry of a particular value using c++..
i use RegOpenKeyEx to open reg and RegQueryValueEx to get the value of the subkeys..
how to get the data and type of that value?
ranjani
|
|
|
|
|
|
ranjjj wrote:
how to get the data and type of that value?
You seem to have answered your own question. RegQueryValueEx() is used to retrieve both the type and data for a specified value.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
for example to get the type of HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup
..what hould be the parameters to be passed on to thef unctiona dn chow should i use it in my code?
ranjani
|
|
|
|
|
DWORD dwType;
RegQueryValueEx(HKEY_CURRENT_USER, "SYSTEM\\CurrentControlSet\\Control\\BackupRestore\\FilesNotToBackup", NULL, &dwType, ...);
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
for example to get the type of HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup
..what hould be the parameters to be passed on to thef unctiona dn chow should i use it in my code?
ranjani
|
|
|
|
|
Hello people,
i am working on a dialog-based mfc app. I added a member-variable of type CMenu to the CDialog-derived class, so that a menu is available. I use the ON_UPDATE_COMMAND_UI makro in the message-map of the Dialog to enable/disable menu-items. But the corresponding menu-item isn't drawn in grey color as expected when it is disabled. Why? Does someone has a clue how i can fix this?
Best regards
tabor25
|
|
|
|
|
|
Thank you very much for answering to my question. I read the recommended article and added a menu to the demo-project including a test-item. Then i added a UI notification-handler for the menu-item to the dialog-class (where the ui-handler for the button is located), but in case of disabled the menu-item would not be drawn in grey color. I don't know what to do!
Best regards
tabor25
|
|
|
|
|
Hi all,
I have a unicode file (strings.mc contains ids and langauge translations).
i wrote to methods to perfrom reading from and saving to this file:
void CMyClass::ReadingMCFile()
{
FILE* fp = fopen(m_szMCFile, "rb");
ASSERT(NULL != fp);
if (NULL == fp)
{
AfxMessageBox((_T("Could not open the file : %s"),m_szMCFile),MB_ICONERROR);
return;
}
wchar_t wcBuff[MAX_PATH];
do
{
fgetws(wcBuff, MAX_PATH, fp);
m_vecMCFile.push_back(wcBuff);
} while(!feof(fp) );
fclose(fp);
}
where m_vecMCFile is in the type of :
std::vector<wchar_t*> m_vecMCFile;
now i wrote a method to write the changes back to the mc file (meaning going over the vector and write each line to the file as follows:
void CMyClass::WriteMCFile()
{
if (!DeleteFile(m_szMCFile))
{
AfxMessageBox((_T("Could not delete the file : %s for writing "),m_szMCFile),MB_ICONERROR);
return;
}
FILE* fp = fopen(m_szMCFile, "wb");
ASSERT(NULL != fp);
if (NULL == fp)
{
AfxMessageBox((_T("Could not open the file : %s"),m_szMCFile),MB_ICONERROR);
return;
}
wchar_t* wcBuff = NULL;
std :: vector<wchar_t*>::iterator vecIT;
for (vecIT = m_vecMCFile.begin(); vecIT != m_vecMCFile.end(); vecIT++)
{
wcBuff = (*vecIT);
fputws(wcBuff, fp);
}
fclose(fp);
}
this code doesn't work...
can any1 help me fix it?
thanks in advanced
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
trouble was the wchar_t wcBuff[MAX_PATH]; was defined local, so when the scope was out of the method the value was garbage, so i needed to save the value using the new operator......
that did the trick
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
hi all,
i am using AutoRichEditCtrl for displaying few text.i have set it to a different font in which some characters have a dot above it. whenever i try to write such characters with a dot above it a white space gets automatically appended. how do i remove such white spaces???
please help me......
thanks!
ramya.
|
|
|
|
|
something that came through my mind : may be the use of '\b' in the TXT string could help ?
when you add a new character, you're program looks if that character is not a white-space and so if you have a w/s as your last char, use \b to delete that w/s.
F
|
|
|
|
|
Hi there. I created a window with "CreateWindow" API as a child window in another application. I want that this window is transparent which isnt a problem using GetDC and BitBlt... but the problem: the parent window has a changing background. How can my created window notified when the parent refreshes?
Thanks for reading & helping
|
|
|
|
|
I'm working on an MDI application in MFC. I need my CMDIFrameWnd to be able to tell which CMDIChildWnd is currently active. Specifically, I need it to know which CMDIChildWnd's name is currently being displayed in the title bar of the CMDIFrameWnd, even if that CMDIChildWnd does not have the focus (due to focus being controlled by a modeless dialog, for example).
How can I track for that?
|
|
|
|