Click here to Skip to main content
15,922,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert float to double Pin
Jambolo25-Mar-03 17:03
Jambolo25-Mar-03 17:03 
GeneralRe: Convert float to double Pin
Reservoir Dog23-Mar-03 23:48
Reservoir Dog23-Mar-03 23:48 
GeneralSetting default font for CRichEditCtrl Pin
Ph@ntom23-Mar-03 20:22
Ph@ntom23-Mar-03 20:22 
GeneralDDI Hooking Pin
vikramlinux23-Mar-03 20:21
vikramlinux23-Mar-03 20:21 
GeneralWeb Browser Control Pin
Steven M Hunt23-Mar-03 16:02
Steven M Hunt23-Mar-03 16:02 
GeneralRe: Web Browser Control Pin
Neville Franks23-Mar-03 23:27
Neville Franks23-Mar-03 23:27 
Generalhelp with Dynamic allocation in C. Pin
mnjobes23-Mar-03 14:55
mnjobes23-Mar-03 14:55 
GeneralRe: help with Dynamic allocation in C. Pin
Taka Muraoka23-Mar-03 15:11
Taka Muraoka23-Mar-03 15:11 
/quick look

the problem is probably in your call to realloc() - the parameter specifies the new number of bytes the buffer should be, not the number of extra bytes you want.

you should also not use the variable name cin - it has special meaning in C++

and ditch the long if-else statement at the end! look at isalpha(), ispunct() and toupper(). A-Z are contiguous in ASCII so toupper(ch) - 'A' will map the letter in ch to a value between 0 and 25.



You should save yourself and your company years of grief by shooting yourself through the head immediately. Believe me, in the long run it'll turn out better for everyone. - Tyto (at arstechnica)

Awasu 1.0[^]: A free RSS reader with support for Code Project.

GeneralRe: help with Dynamic allocation in C. Pin
mnjobes23-Mar-03 19:09
mnjobes23-Mar-03 19:09 
GeneralRe: help with Dynamic allocation in C. Pin
Taka Muraoka23-Mar-03 19:16
Taka Muraoka23-Mar-03 19:16 
GeneralRe: help with Dynamic allocation in C. Pin
mnjobes26-Mar-03 20:32
mnjobes26-Mar-03 20:32 
GeneralRe: help with Dynamic allocation in C. Pin
Taka Muraoka26-Mar-03 21:10
Taka Muraoka26-Mar-03 21:10 
GeneralChanging the file extension for documents in VC7 Pin
Matt Gates23-Mar-03 14:21
Matt Gates23-Mar-03 14:21 
GeneralRe: Changing the file extension for documents in VC7 Pin
Nish Nishant23-Mar-03 20:00
sitebuilderNish Nishant23-Mar-03 20:00 
QuestionEmulating Win32 on Windows 98/Me? Pin
Ambit23-Mar-03 12:45
Ambit23-Mar-03 12:45 
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
Taka Muraoka23-Mar-03 12:51
Taka Muraoka23-Mar-03 12:51 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Ambit23-Mar-03 14:29
Ambit23-Mar-03 14:29 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Taka Muraoka23-Mar-03 15:28
Taka Muraoka23-Mar-03 15:28 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Ambit24-Mar-03 2:30
Ambit24-Mar-03 2:30 
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
Stefan Pedersen23-Mar-03 12:52
Stefan Pedersen23-Mar-03 12:52 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Ambit23-Mar-03 14:47
Ambit23-Mar-03 14:47 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Stefan Pedersen23-Mar-03 23:36
Stefan Pedersen23-Mar-03 23:36 
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
Dave Bryant23-Mar-03 13:52
Dave Bryant23-Mar-03 13:52 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Ambit23-Mar-03 14:32
Ambit23-Mar-03 14:32 
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
Navin23-Mar-03 16:42
Navin23-Mar-03 16:42 

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.