Is there any approach to write unit test cases for GUI based applications (VC++ applications). It's my client's requirement to write test cases for it.
Super Hornet
Posts
-
Unit testing for GUI(VC++) -
Whitebox TestingI couldn't find the right information about white box testing for vc++ application so thought of taking help from CP.
-
Whitebox TestingDoes function testing require communication between demo project and main project?
-
Whitebox Testingwhitebox testing is my clients requirement. I am deseprately looking for tutorials and tools. I am very confused to write test stubs/drivers for vc++ code. It would be very helpful if you can provide me some info about whitebox testing in vc++.
-
Whitebox TestingCan anyone provide me information about whitebox testing tools for Visual C++?
-
API for changing Language for non-Unicode Programs????Thank you Rajesh... this helps me I guess, will test it
-
API for changing Language for non-Unicode Programs????In ControlPanel->Regional and Language Options->Advanced Tab-> there is an option "Language for non-Unicode programs", I want to change it programatically, is there any API for that???
-
API for changing Language for non-Unicode Programs????Is there any such API???
-
Example for SetLocaleInfoCan we use SetLocaleInfo for non-union code to support unicode strings. If, so please give me an example not declaration.
-
How do Non - Unicode applications support different language strings?CPallini - Expecting reply from you
-
How do Non - Unicode applications support different language strings?We have non-unicode application where it has to support different language strings like korean, chinese etc. I had installed the required language packages. I have to change the language dynamically through a menu item. Until unless teh language settings have been done in regional/language settings and reboot the machine the language strings doesn't change. Is there any way to by-pass teh reboot so that I can update the required registry values for changing different language??? Even there's The Microsoft AppLocale Utility for this but I shouldn't use that utility in my application. Please post your views
-
Doubt regarding a queryI have a doubt regarding writing a query, I have table as below Server ID - Bag ID for example, It has 'n' number of rows here, server id is unique and bag id can be duplicated sometimes. I want to write a query for accessing only bag id's which are not duplicated. How do I frame a query???
-
Loading Resource from dll failsNow I am able to get the correct value's The problem is with resource id's, I haven't defined same resource id in dll and in mfc application.
-
Loading Resource from dll failsI have tried commenting the statement AfxSetResourceHandle(hinstance); but the same error The error code 1814 comes after LaodString call
-
Loading Resource from dll failsthank you for pointing the error
-
Loading Resource from dll failsModified code according to your suggestion:
HINSTANCE hinstance = ::LoadLibrary("SampleEN.dll"); if (!hinstance) { AfxMessageBox("Failed to load"); } else { HINSTANCE hInstResourceClient = AfxGetResourceHandle(); // Use DLL's instance handle AfxSetResourceHandle(hinstance); LPCTSTR lpszName = MAKEINTRESOURCE(1); //IDC\_STATIC\_TOP has been defined as 1 in the dll HRSRC hrsrc = FindResource(hinstance, lpszName, RT\_STRING); if (hrsrc) { HGLOBAL hglobal = LoadResource(hinstance, hrsrc); LockResource(hglobal); TCHAR szTemp\[256\]; LoadString(hinstance, IDC\_STATIC\_TOP, szTemp, 255); } AfxSetResourceHandle(hInstResourceClient); }
even now the string is empty. I get the error code: 1814 - which says resource couldn't be found. But I have re-verfied that the ID exists in the string table
-
Loading Resource from dll failsActually it's - hinsttance, mistakenly written here as m_hinstLib
-
Loading Resource from dll failsI have created a win32 resource dll which has only string table, also i have included \NOENTRY in linker options in-order to make it as resource only dll Now I am loading the dll in MFC application and loads fine but when I am try to get the string from the string table it doens't load. Here is my code:
HINSTANCE hinsttance = ::LoadLibrary("SampleEN.dll"); DWORD dwError = GetLastError(); if (!hinsttance) { AfxMessageBox("Failed to load"); } else { HINSTANCE hInstResourceClient = AfxGetResourceHandle(); // Use DLL's instance handle AfxSetResourceHandle(hinsttance); LPCTSTR lpszName = MAKEINTRESOURCE(1); //IDC\_STATIC\_TOP has been defined as 1 in the dll HRSRC hrsrc = FindResource(m\_hinstLib, lpszName, RT\_STRING); if (hrsrc) { TCHAR szTemp\[256\]; LoadString(m\_hinstLib, IDC\_STATIC\_TOP, szTemp, 255); } AfxSetResourceHandle(hInstResourceClient); }
what could be the problem???
-
free download link for MFC book[^]
-
how to capture system date change event?WM_TIMECHANGE will it be posted for evry mili sec or sec??? Actually I am looking for date change but not time change