Click here to Skip to main content
15,901,505 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dialog based + creating file associations? Pin
Allman8-Jun-04 3:08
Allman8-Jun-04 3:08 
GeneralTriggerring the keyboard event from Window Service Pin
ThatsAlok8-Jun-04 1:11
ThatsAlok8-Jun-04 1:11 
GeneralRe: Triggerring the keyboard event from Window Service Pin
Rodrigo Pinto Pereira de Souza8-Jun-04 2:39
Rodrigo Pinto Pereira de Souza8-Jun-04 2:39 
GeneralRe: Triggerring the keyboard event from Window Service Pin
ThatsAlok9-Jun-04 2:01
ThatsAlok9-Jun-04 2:01 
GeneralRe: Triggerring the keyboard event from Window Service Pin
Antony M Kancidrowski8-Jun-04 2:42
Antony M Kancidrowski8-Jun-04 2:42 
GeneralRe: Triggerring the keyboard event from Window Service Pin
ThatsAlok9-Jun-04 1:30
ThatsAlok9-Jun-04 1:30 
GeneralFlag Window. Pin
Renjith Ramachandran8-Jun-04 1:08
Renjith Ramachandran8-Jun-04 1:08 
GeneralCrazy char-array Pin
Gadjuka8-Jun-04 0:57
Gadjuka8-Jun-04 0:57 
I try to create a dynamic char-array and then copy a certain number of chars from another string to it:
<br />
char *tempLabel = new char[labelLen];             //Line 1<br />
strncpy(tempLabel, label, labelLen);              //Line 2<br />


When I step through the code the variables contains:
After line 1:
label = "resolutionXììììììììì....aso" (is an [128]-array)
tempLabel = "ìììììììììììýýýý" (as you see, 4 chars too much)
labelLen= 11;

After line 2:
label = "resolutionXììììììììì....aso"
tempLabel = "resolutionXýýýý" (Still too big!)
labelLen= 11;

Why??? I don't want those 'ý'-s, what's wrong? Does anyone have a clue?
GeneralRe: Crazy char-array Pin
jmkhael8-Jun-04 1:59
jmkhael8-Jun-04 1:59 
GeneralRe: Crazy char-array Pin
Manfred Staiger8-Jun-04 2:01
Manfred Staiger8-Jun-04 2:01 
GeneralRe: Crazy char-array Pin
David Crow8-Jun-04 2:34
David Crow8-Jun-04 2:34 
GeneralRe: Crazy char-array Pin
John R. Shaw8-Jun-04 17:57
John R. Shaw8-Jun-04 17:57 
GeneralRe: Crazy char-array Pin
David Crow9-Jun-04 2:18
David Crow9-Jun-04 2:18 
GeneralRe: Crazy char-array Pin
Gadjuka8-Jun-04 2:11
Gadjuka8-Jun-04 2:11 
QuestionHow could I get main window handle in CDocument? Pin
chenbuaa8-Jun-04 0:52
chenbuaa8-Jun-04 0:52 
AnswerRe: How could I get main window handle in CDocument? Pin
Manfred Staiger8-Jun-04 1:22
Manfred Staiger8-Jun-04 1:22 
AnswerRe: How could I get main window handle in CDocument? Pin
Andrew Quinn AUS8-Jun-04 1:28
Andrew Quinn AUS8-Jun-04 1:28 
GeneralActiveX Controls Pin
sweep1238-Jun-04 0:43
sweep1238-Jun-04 0:43 
GeneralRe: ActiveX Controls Pin
Cedric Moonen8-Jun-04 1:14
Cedric Moonen8-Jun-04 1:14 
GeneralRe: ActiveX Controls Pin
sweep1238-Jun-04 5:12
sweep1238-Jun-04 5:12 
GeneralWindows Platform SDK Pin
guy20048-Jun-04 0:36
guy20048-Jun-04 0:36 
GeneralRe: Windows Platform SDK Pin
GuimaSun8-Jun-04 3:25
GuimaSun8-Jun-04 3:25 
GeneralRe: Windows Platform SDK Pin
Diddy10-Jun-04 2:56
Diddy10-Jun-04 2:56 
GeneralRe: Windows Platform SDK Pin
Diddy8-Jun-04 3:27
Diddy8-Jun-04 3:27 
GeneralFinding process genereating ARP reuquests Pin
abdul moeed7-Jun-04 23:46
abdul moeed7-Jun-04 23:46 

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.