Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Super Hornet

@Super Hornet
About
Posts
145
Topics
61
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Unit testing for GUI(VC++)
    S Super Hornet

    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.

    C / C++ / MFC testing c++ beta-testing

  • Whitebox Testing
    S Super Hornet

    I couldn't find the right information about white box testing for vc++ application so thought of taking help from CP.

    C / C++ / MFC c++ testing beta-testing tools question

  • Whitebox Testing
    S Super Hornet

    Does function testing require communication between demo project and main project?

    C / C++ / MFC c++ testing beta-testing tools question

  • Whitebox Testing
    S Super Hornet

    whitebox 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++.

    C / C++ / MFC c++ testing beta-testing tools question

  • Whitebox Testing
    S Super Hornet

    Can anyone provide me information about whitebox testing tools for Visual C++?

    C / C++ / MFC c++ testing beta-testing tools question

  • API for changing Language for non-Unicode Programs????
    S Super Hornet

    Thank you Rajesh... this helps me I guess, will test it

    C / C++ / MFC json question

  • API for changing Language for non-Unicode Programs????
    S Super Hornet

    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???

    C / C++ / MFC json question

  • API for changing Language for non-Unicode Programs????
    S Super Hornet

    Is there any such API???

    C / C++ / MFC json question

  • Example for SetLocaleInfo
    S Super Hornet

    Can we use SetLocaleInfo for non-union code to support unicode strings. If, so please give me an example not declaration.

    C / C++ / MFC tutorial

  • How do Non - Unicode applications support different language strings?
    S Super Hornet

    CPallini - Expecting reply from you

    C / C++ / MFC windows-admin tools question announcement

  • How do Non - Unicode applications support different language strings?
    S Super Hornet

    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

    C / C++ / MFC windows-admin tools question announcement

  • Doubt regarding a query
    S Super Hornet

    I 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???

    MySQL question database sysadmin tutorial

  • Loading Resource from dll fails
    S Super Hornet

    Now 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.

    C / C++ / MFC c++ help question learning

  • Loading Resource from dll fails
    S Super Hornet

    I have tried commenting the statement AfxSetResourceHandle(hinstance); but the same error The error code 1814 comes after LaodString call

    C / C++ / MFC c++ help question learning

  • Loading Resource from dll fails
    S Super Hornet

    thank you for pointing the error

    C / C++ / MFC c++ help question learning

  • Loading Resource from dll fails
    S Super Hornet

    Modified 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

    C / C++ / MFC c++ help question learning

  • Loading Resource from dll fails
    S Super Hornet

    Actually it's - hinsttance, mistakenly written here as m_hinstLib

    C / C++ / MFC c++ help question learning

  • Loading Resource from dll fails
    S Super Hornet

    I 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???

    C / C++ / MFC c++ help question learning

  • free download link for MFC book
    S Super Hornet

    [^]

    C / C++ / MFC csharp c++ visual-studio learning

  • how to capture system date change event?
    S Super Hornet

    WM_TIMECHANGE will it be posted for evry mili sec or sec??? Actually I am looking for date change but not time change

    C / C++ / MFC tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups