Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFourier series program Pin
maidy_1919-May-09 11:29
maidy_1919-May-09 11:29 
AnswerRe: Fourier series program Pin
Garth J Lancaster19-May-09 12:04
professionalGarth J Lancaster19-May-09 12:04 
AnswerRe: Fourier series program Pin
Stuart Dootson19-May-09 12:06
professionalStuart Dootson19-May-09 12:06 
GeneralRe: Fourier series program Pin
maidy_1919-May-09 12:20
maidy_1919-May-09 12:20 
QuestionVC 6.0: shortcut key for create cpp source file? Pin
wb_program19-May-09 7:54
wb_program19-May-09 7:54 
AnswerRe: VC 6.0: shortcut key for create cpp source file? Pin
led mike19-May-09 8:03
led mike19-May-09 8:03 
GeneralRe: VC 6.0: shortcut key for create cpp source file? Pin
Michael Dunn19-May-09 11:24
sitebuilderMichael Dunn19-May-09 11:24 
QuestionCan you add a new string resource at runtime? Pin
negativeG19-May-09 7:53
negativeG19-May-09 7:53 
Is it possible to add a new string resource at runtime? e.g. I would like to add "My Custom string" with the resource ID "IDR_CUSTOM_STRING" (with some unused value) to the string table.

We wish to allow our customers to customize the application. e.g. where it by default says 'Some Program' and 'Some file type (*.som)', they might use 'Bob's Program' and 'Bob's files (*.bob)'. That info in particular is all encoded into the IDR_MYPROGTYPE resource in the string table. The constructor for CMultiDocTemplate only uses this resource to set those strings as needed. I could define a new entry in the string table, and use that, but that works for only a single customization. To allow complete flexibility, I want want to generate a new string table entry based on some data file that is accessed before the DocTemplate is created (early in CMyWinApp).
As the resources themselves as part of the exe seems frought with problems, so I am happy to leave that alone. It just seems that at some point that data must be loaded and allocated somewhere, somehow. I just want to add a new one.
Or... if there is a safe way to do it, just modify the existing one.

Thanks,
-G
AnswerRe: Can you add a new string resource at runtime? Pin
asrelu19-May-09 8:26
asrelu19-May-09 8:26 
AnswerRe: Can you add a new string resource at runtime? Pin
Code-o-mat19-May-09 8:28
Code-o-mat19-May-09 8:28 
GeneralRe: Can you add a new string resource at runtime? Pin
negativeG22-May-09 9:25
negativeG22-May-09 9:25 
Question[Message Deleted] Pin
ranga.careers19-May-09 6:27
ranga.careers19-May-09 6:27 
AnswerRe: MSCOMM Pin
CPallini19-May-09 7:39
mveCPallini19-May-09 7:39 
QuestionDisabling a CView, and darkening it Pin
Sternocera19-May-09 6:13
Sternocera19-May-09 6:13 
QuestionRe: Disabling a CView, and darkening it Pin
David Crow19-May-09 7:33
David Crow19-May-09 7:33 
AnswerRe: Disabling a CView, and darkening it Pin
Sternocera19-May-09 7:48
Sternocera19-May-09 7:48 
GeneralRe: Disabling a CView, and darkening it Pin
David Crow19-May-09 9:06
David Crow19-May-09 9:06 
GeneralRe: Disabling a CView, and darkening it Pin
Sternocera19-May-09 10:14
Sternocera19-May-09 10:14 
AnswerRe: Disabling a CView, and darkening it Pin
Sternocera19-May-09 11:18
Sternocera19-May-09 11:18 
GeneralRe: Disabling a CView, and darkening it Pin
Sternocera20-May-09 3:27
Sternocera20-May-09 3:27 
QuestionApplication Crashes at mfc42!CMapStringToString::GetAssocAt+14 Pin
U Mallikarjuna Rao19-May-09 5:58
U Mallikarjuna Rao19-May-09 5:58 
AnswerRe: Application Crashes at mfc42!CMapStringToString::GetAssocAt+14 Pin
Cedric Moonen19-May-09 7:52
Cedric Moonen19-May-09 7:52 
GeneralRe: Application Crashes at mfc42!CMapStringToString::GetAssocAt+14 Pin
U Mallikarjuna Rao19-May-09 8:59
U Mallikarjuna Rao19-May-09 8:59 
QuestionHow to change the clsid of an ocx? Pin
SIJUTHOMASP19-May-09 5:50
professionalSIJUTHOMASP19-May-09 5:50 
QuestionRe: How to change the clsid of an ocx? Pin
CPallini19-May-09 6:15
mveCPallini19-May-09 6:15 

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.