Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionftp transfert ? Pin
youssef21-Sep-01 8:22
youssef21-Sep-01 8:22 
AnswerRe: ftp transfert ? Pin
Joaquín M López Muñoz21-Sep-01 8:56
Joaquín M López Muñoz21-Sep-01 8:56 
Questionhiding other apps splash screens? Pin
Joan M21-Sep-01 7:58
professionalJoan M21-Sep-01 7:58 
AnswerRe: hiding other apps splash screens? Pin
Joaquín M López Muñoz21-Sep-01 9:53
Joaquín M López Muñoz21-Sep-01 9:53 
GeneralString resources & MAKEINTRESOURCE Pin
Chen Venkataraman21-Sep-01 7:41
Chen Venkataraman21-Sep-01 7:41 
GeneralRe: String resources & MAKEINTRESOURCE Pin
Tomasz Sowinski21-Sep-01 7:56
Tomasz Sowinski21-Sep-01 7:56 
GeneralRe: String resources & MAKEINTRESOURCE Pin
The_Server21-Sep-01 12:21
The_Server21-Sep-01 12:21 
GeneralRe: String resources & MAKEINTRESOURCE Pin
Michael Dunn21-Sep-01 14:06
sitebuilderMichael Dunn21-Sep-01 14:06 
Resources can be identified with either a WORD (0-65535) or a string ID. All APIs that deal with resources take an LPCTSTR parameter as the resource ID. So when you need to refer to a resource with a numerical ID, you use MAKEINTRESOURCE to convert the WORD to a string, which then gets passed to the API.
As for what AfxLoadString() is doing, strings in the string table are grouped in 16-string chunks. (That's why the string table editor in VC has horizontal lines every 16 strings). When one string in a chunk is loaded, all strings in that chunk are loaded into memory at the same time. That code is doing an additional check to make sure nID is referring to a chunk that exists. Just an additional debugging aide, I guess.

--Mike--
http://home.inreach.com/mdunn/
Ford: How would you react if I said that I'm not from Guildford after all, but from a small planet somewhere in the vicinity of Betelguese?
Arthur: I don't know. Why, do you think it's the sort of thing you're likely to say?
GeneralPlotting algebraic expressions Pin
21-Sep-01 6:18
suss21-Sep-01 6:18 
Questionhow could i reallocate an array? Pin
Gérald Mercet21-Sep-01 5:18
Gérald Mercet21-Sep-01 5:18 
AnswerRe: how could i reallocate an array? Pin
Joaquín M López Muñoz21-Sep-01 5:58
Joaquín M López Muñoz21-Sep-01 5:58 
GeneralRe: how could i reallocate an array? Pin
Nemanja Trifunovic21-Sep-01 6:10
Nemanja Trifunovic21-Sep-01 6:10 
GeneralScrollbar position in list control Pin
21-Sep-01 5:00
suss21-Sep-01 5:00 
GeneralRe: Scrollbar position in list control Pin
Michael Dunn21-Sep-01 14:16
sitebuilderMichael Dunn21-Sep-01 14:16 
GeneralCreating OCX with VC++ Pin
José Carlos21-Sep-01 3:52
José Carlos21-Sep-01 3:52 
GeneralRe: Creating OCX with VC++ Pin
Michael P Butler21-Sep-01 4:22
Michael P Butler21-Sep-01 4:22 
GeneralActiveXControl Pin
Remi Morin21-Sep-01 3:42
Remi Morin21-Sep-01 3:42 
GeneralRefreshing Client Area Pin
21-Sep-01 3:35
suss21-Sep-01 3:35 
GeneralRe: Refreshing Client Area Pin
Remi Morin21-Sep-01 3:41
Remi Morin21-Sep-01 3:41 
GeneralButtons......EditBox Pin
Ahmad9921-Sep-01 3:33
Ahmad9921-Sep-01 3:33 
GeneralRe: Buttons......EditBox Pin
21-Sep-01 6:18
suss21-Sep-01 6:18 
GeneralRe: Buttons......EditBox....Thanks and Need MoreHelp Pin
Ahmad9922-Sep-01 0:04
Ahmad9922-Sep-01 0:04 
GeneralRe: Buttons......EditBox....Thanks and Need MoreHelp Pin
Paolo Messina22-Sep-01 7:06
professionalPaolo Messina22-Sep-01 7:06 
GeneralRe: Buttons......EditBox Pin
Matt Gullett22-Sep-01 7:21
Matt Gullett22-Sep-01 7:21 
Questionhow can i bundle files into one file without creating the extension .zip?? Pin
DanYELL21-Sep-01 3:22
DanYELL21-Sep-01 3:22 

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.