Click here to Skip to main content
16,005,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Object detection Pin
projectip13-May-08 22:07
projectip13-May-08 22:07 
QuestionResource ID not found even though exists Pin
kildareflare13-May-08 0:12
kildareflare13-May-08 0:12 
AnswerRe: Resource ID not found even though exists Pin
Rajkumar R13-May-08 0:22
Rajkumar R13-May-08 0:22 
GeneralRe: Resource ID not found even though exists Pin
kildareflare13-May-08 0:33
kildareflare13-May-08 0:33 
GeneralRe: Resource ID not found even though exists Pin
kildareflare13-May-08 0:48
kildareflare13-May-08 0:48 
GeneralRe: Resource ID not found even though exists Pin
Rajkumar R13-May-08 1:11
Rajkumar R13-May-08 1:11 
GeneralRe: Resource ID not found even though exists Pin
Rajkumar R13-May-08 1:07
Rajkumar R13-May-08 1:07 
GeneralRe: Resource ID not found even though exists [modified] Pin
kildareflare13-May-08 2:30
kildareflare13-May-08 2:30 
Error 1421 "Control ID not found" is the error reported.

The dll is loaded as follows:

if((CString)langID == LANGUAGE_SPANISH)
{
		hInst = AfxLoadLibrary(_T("CalcESP.dll"));
		if(hInst == NULL)
        	AfxMessageBox("Could not load CalcESP.dll");
}
AfxSetResourceHandle(hInst);


The handle hInst is valid and I belive the resource is loaded OK as some of the resource IDs are found OK - it's just some that are not. Is there a more precise way I can check what has been loaded?

To be honest I do not know dlls that well, however...

The appropriate dll is loaded in the applications InitInstance() function as shown above and then the handle retuned is used to set the default resouce location. Next views are created from doc templates and then the main MDI Frame window is created.

All dialogs are created using standard constructors - im assuming that they will use the default resource which has been set above.

The application would run and the dialogs load if I managed to comment out all the IDs that were "not found".

If I force the application to use the english hInst then everything works OK, as would be expected since this is the same as not changing the language.

However, if instead I copy the engligh dialog and resource.h file over the spanish ones - it has the same problem - even though it is now using the english resources which I know work OK and this is surely the same thing as forcing the application to use the english resouce path i.e hInst...?

Thanks again
Rich

modified on Tuesday, May 13, 2008 8:49 AM

GeneralRe: Resource ID not found even though exists Pin
Rajkumar R13-May-08 2:48
Rajkumar R13-May-08 2:48 
AnswerRe: Resource ID not found even though exists Pin
Iain Clarke, Warrior Programmer13-May-08 2:01
Iain Clarke, Warrior Programmer13-May-08 2:01 
GeneralRe: Resource ID not found even though exists [modified] Pin
kildareflare13-May-08 3:05
kildareflare13-May-08 3:05 
GeneralRe: Resource ID not found even though exists Pin
Iain Clarke, Warrior Programmer13-May-08 3:39
Iain Clarke, Warrior Programmer13-May-08 3:39 
GeneralRe: Resource ID not found even though exists [modified] Pin
kildareflare13-May-08 4:06
kildareflare13-May-08 4:06 
GeneralRe: Resource ID not found even though exists Pin
Iain Clarke, Warrior Programmer13-May-08 4:20
Iain Clarke, Warrior Programmer13-May-08 4:20 
GeneralRe: Resource ID not found even though exists Pin
kildareflare13-May-08 4:47
kildareflare13-May-08 4:47 
GeneralRe: Resource ID not found even though exists Pin
Iain Clarke, Warrior Programmer13-May-08 5:06
Iain Clarke, Warrior Programmer13-May-08 5:06 
GeneralRe: Resource ID not found even though exists Pin
kildareflare13-May-08 5:12
kildareflare13-May-08 5:12 
GeneralRe: Resource ID not found even though exists -RESOLVED Pin
kildareflare15-May-08 4:58
kildareflare15-May-08 4:58 
Questioncreate bitmap out of bytearray and display it on dialog ??? Pin
cmos12-May-08 23:45
cmos12-May-08 23:45 
AnswerRe: create bitmap out of bytearray and display it on dialog ??? Pin
Rajkumar R13-May-08 0:26
Rajkumar R13-May-08 0:26 
AnswerRe: create bitmap out of bytearray and display it on dialog ??? Pin
Mark Salsbery13-May-08 6:05
Mark Salsbery13-May-08 6:05 
GeneralRe: create bitmap out of bytearray and display it on dialog ??? [modified] Pin
cmos24-May-08 4:18
cmos24-May-08 4:18 
GeneralRe: create bitmap out of bytearray and display it on dialog ??? Pin
Mark Salsbery27-May-08 5:22
Mark Salsbery27-May-08 5:22 
QuestionNeed Help regarding regular expressions in VC 6.0 Pin
Member 372884112-May-08 23:43
Member 372884112-May-08 23:43 
AnswerRe: Need Help regarding regular expressions in VC 6.0 Pin
Rajkumar R12-May-08 23:59
Rajkumar R12-May-08 23:59 

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.