If I use AfxSetRessourceHandle the problem is that I need a resource DLL. so, it implies 2 files by language : 1 exe + 1 dll. I need just one file by language
XtremDev
Posts
-
Multilanguage Resource compilation options -
Multilanguage Resource compilation optionsHi, I have inserted several resources in my project : ENU and FRA. I would like to generate 2 applications: - one only with the ENU resources - the second only with the FRA resources I tried to set the 'project settings > resources Tab' options with diferents parameters with no result. Please help Me! PS: I don't want a resource DLL. the project needs only one EXE file by language XtremDev
-
need help for a search loopmay be that your recursive search is too deep ... Did you try to increase the stack size in the project > settings > link options
-
where ESC goesCDialog::OnCancel()
-
win 32 C++ code performance optimizationIf you parallelize 2 downloads you will divide the download bandwitdh by 2 ??? no ? in consequence the download of the both files will take the same time than if you download one by one. However I think that installing during downloading is a good idea.
-
"Paint" Separator on Dialog?So you can do that :
CWnd * l_pRadioWnd = GetDlgItem(IDC_RADIO); if( !l_pRadioWnd ) return; CRect l_rctItem; l_pRadioWnd ->GetClientRect(l_rctItem); int l_nYLine = l_rctItem.bottom+10; CDC * l_pDC = GetDC(); CPen l_GrayPen(PS_SOLID, 1, RGB(100, 100, 100)); CPen l_WhitePen(PS_SOLID, 1, RGB(255, 255, 255)); CPen * l_pOldPen = l_pDC->SelectObject(&l_GrayPen); l_pDC->MoveTo(l_rctClient.left+2, l_nYLine); l_pDC->LineTo(l_rctClient.right-2, l_nYLine); l_pDC->SelectObject(&l_WhitePen); l_pDC->MoveTo(l_rctClient.left+2, l_nYLine+1); l_pDC->LineTo(l_rctClient.right-2, l_nYLine+1); l_pDC->SelectObject(l_pOldPen); ReleaseDC(l_pDC);
-
How to change the file version of o/p exe file property in VC .Net [modified]Use the resource editor to edit the version.
-
"Paint" Separator on Dialog?override the OnPaint() function and add this code :
CRect l_rctClient; GetClientRect(&l_rctClient); CDC * l_pDC = GetDC(); CPen l_GrayPen(PS_SOLID, 1, RGB(100, 100, 100)); CPen l_WhitePen(PS_SOLID, 1, RGB(255, 255, 255)); int l_nYLine = l_rctClient.top + l_rctClient.Height()/2; // example for your line y coordinate //could also be //GetDlgItem(IDC_MYITEM)->GetClientRect(l_rctItem); //int l_nYLine = l_rctItem.bottom+10; CPen * l_pOldPen = l_pDC->SelectObject(&l_GrayPen); l_pDC->MoveTo(l_rctClient.left+2, l_nYLine); l_pDC->LineTo(l_rctClient.right-2, l_nYLine); l_pDC->SelectObject(&l_WhitePen); l_pDC->MoveTo(l_rctClient.left+2, l_nYLine+1); l_pDC->LineTo(l_rctClient.right-2, l_nYLine+1); l_pDC->SelectObject(l_pOldPen); ReleaseDC(l_pDC);
-
Open file and recent files in MFC1 => the function AddToRecentFileList of the application is automatically called by the document to complete the MRU (Most Recent Files) file list when the application open a MRU file, the function OnOpenRecentFile is called by the application class 2 => in your class application::InitInstance there's the fuction LoadStdProfileSettings(5) which is called. This define the number of MRU
-
Application hibernation [modified]I see 2 solutions : - Create a service : I know that you dont want to do this...but a service is not closed on logoff - Use the Run Registry Key to launch your app for each logon and optimize the applicatino loading
-
Application hibernation [modified]Did you try to add a key in the following registry path "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" to automatically start your application for all users ?
-
Finding number of occurences in a list of numbersWhy did you use the name 'list' for a variable which is an array ? Could you post your current algorithm to correct it ?
-
Substing in VC++ [modified]Just for fun and if your interrested in that solution, try this :
char string[] = "abc def ghi"; char * token = strtok(string, " "); while( token ) { printf("[%s]\n", token); token = strtok(NULL, " "); }
-
Accessing MS Excel 2003 Data with MFC C++try this Otherwise search "Excel Automation" on google
-
findfirst file -
forward declare member function so that it can be friend functionYou can declare the other cat function as protected. In that case, the dog can not access to that function