Click here to Skip to main content
15,892,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
ipforce14-May-09 4:10
ipforce14-May-09 4:10 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
aishui090515-Sep-09 17:13
aishui090515-Sep-09 17:13 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
ipforce15-Sep-09 21:12
ipforce15-Sep-09 21:12 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
aishui090518-Sep-09 19:12
aishui090518-Sep-09 19:12 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
ipforce18-Sep-09 20:48
ipforce18-Sep-09 20:48 
Questionhelp me Create ISO image file from folders... Pin
lek25813-May-09 0:37
lek25813-May-09 0:37 
AnswerRe: help me Create ISO image file from folders... Pin
Rajesh R Subramanian13-May-09 1:21
professionalRajesh R Subramanian13-May-09 1:21 
QuestionLoading Resource from dll fails Pin
Super Hornet13-May-09 0:02
Super Hornet13-May-09 0:02 
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???
AnswerRe: Loading Resource from dll fails Pin
«_Superman_»13-May-09 0:09
professional«_Superman_»13-May-09 0:09 
GeneralRe: Loading Resource from dll fails Pin
Super Hornet13-May-09 0:16
Super Hornet13-May-09 0:16 
GeneralRe: Loading Resource from dll fails Pin
«_Superman_»13-May-09 0:21
professional«_Superman_»13-May-09 0:21 
GeneralRe: Loading Resource from dll fails Pin
Super Hornet13-May-09 0:22
Super Hornet13-May-09 0:22 
GeneralRe: Loading Resource from dll fails Pin
Super Hornet13-May-09 0:29
Super Hornet13-May-09 0:29 
AnswerRe: Loading Resource from dll fails Pin
Super Hornet13-May-09 1:21
Super Hornet13-May-09 1:21 
AnswerRe: Loading Resource from dll fails Pin
Stuart Dootson13-May-09 0:10
professionalStuart Dootson13-May-09 0:10 
GeneralRe: Loading Resource from dll fails Pin
Super Hornet13-May-09 0:23
Super Hornet13-May-09 0:23 
QuestionNot able to connect to the database Pin
vital_parsley200012-May-09 23:34
vital_parsley200012-May-09 23:34 
AnswerRe: Not able to connect to the database Pin
CPallini12-May-09 23:40
mveCPallini12-May-09 23:40 
AnswerRe: Not able to connect to the database Pin
Madhu Nair12-May-09 23:44
Madhu Nair12-May-09 23:44 
GeneralRe: Not able to connect to the database Pin
vital_parsley200013-May-09 4:19
vital_parsley200013-May-09 4:19 
AnswerRe: Not able to connect to the database Pin
Madhu Nair13-May-09 19:45
Madhu Nair13-May-09 19:45 
AnswerRe: Not able to connect to the database [modified] Pin
Madhu Nair13-May-09 20:03
Madhu Nair13-May-09 20:03 
AnswerRe: Not able to connect to the database Pin
David Crow13-May-09 3:17
David Crow13-May-09 3:17 
QuestionLoad data from database to BCG grid Pin
MrKBA12-May-09 21:56
MrKBA12-May-09 21:56 
AnswerRe: Load data from database to BCG grid Pin
Madhu Nair12-May-09 22:14
Madhu Nair12-May-09 22:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.