Click here to Skip to main content
15,921,250 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Header File Pin
FlamTaps4-Oct-05 14:42
FlamTaps4-Oct-05 14:42 
Questionwarning C4503 Pin
valerie994-Oct-05 11:21
valerie994-Oct-05 11:21 
AnswerRe: warning C4503 Pin
Member 17264404-Oct-05 20:45
Member 17264404-Oct-05 20:45 
General/EHsc was not selected Pin
valerie995-Oct-05 4:24
valerie995-Oct-05 4:24 
GeneralRe: warning C4503 Pin
Jose Lamas Rios5-Oct-05 7:45
Jose Lamas Rios5-Oct-05 7:45 
QuestionMy VC++ Dosnt Have Certain Header Files??? Pin
katocan4-Oct-05 11:13
katocan4-Oct-05 11:13 
AnswerRe: My VC++ Dosnt Have Certain Header Files??? Pin
Blake V. Miller5-Oct-05 10:47
Blake V. Miller5-Oct-05 10:47 
QuestionDifference between free(*str) and free(str) Pin
KellyR4-Oct-05 10:40
KellyR4-Oct-05 10:40 
This may seem like a silly question, but let's say we've got a pointer to a character array labeled str.

What is the difference between calling:
free(*str);
free(str);

Wouldn't free(*str) just free whatever single character the pointer is currently pointing to? This seems pointless? But it's called like this all over the place in this piece of code I've just been given to fix so I'm trying to figure out why they put it in.

The problem is that the call to free(*str) is sometimes crashing the code, even when it's checked like so:
if (*str)
free(*str);

Thanks!

AnswerRe: Difference between free(*str) and free(str) Pin
Axter4-Oct-05 11:13
professionalAxter4-Oct-05 11:13 
QuestionAPI's for retreiving url's Pin
Jim Crafton4-Oct-05 10:08
Jim Crafton4-Oct-05 10:08 
AnswerRe: API's for retreiving url's Pin
Jim Crafton4-Oct-05 10:17
Jim Crafton4-Oct-05 10:17 
AnswerRe: API's for retreiving url's Pin
Bartosz Bien4-Oct-05 10:18
Bartosz Bien4-Oct-05 10:18 
GeneralRe: API's for retreiving url's Pin
Jim Crafton4-Oct-05 10:30
Jim Crafton4-Oct-05 10:30 
QuestionRegistry case sensitivity - useless to check? Pin
dandy724-Oct-05 9:31
dandy724-Oct-05 9:31 
AnswerRe: Registry case sensitivity - useless to check? Pin
Bartosz Bien4-Oct-05 10:09
Bartosz Bien4-Oct-05 10:09 
QuestionTaskbar broadcast messages? Pin
Nautilus Master4-Oct-05 8:58
Nautilus Master4-Oct-05 8:58 
QuestionVS.Net Dialog Editor broken Pin
Jim A. Johnson4-Oct-05 8:16
Jim A. Johnson4-Oct-05 8:16 
AnswerRe: VS.Net Dialog Editor broken Pin
Jim A. Johnson4-Oct-05 10:26
Jim A. Johnson4-Oct-05 10:26 
Questionlooking for C++ code Pin
repati4-Oct-05 7:45
repati4-Oct-05 7:45 
AnswerRe: looking for C++ code Pin
Jim A. Johnson4-Oct-05 8:19
Jim A. Johnson4-Oct-05 8:19 
AnswerRe: looking for C++ code Pin
PJ Arends4-Oct-05 9:39
professionalPJ Arends4-Oct-05 9:39 
GeneralRe: looking for C++ code Pin
Wes Aday4-Oct-05 12:54
professionalWes Aday4-Oct-05 12:54 
QuestionReading all lines Pin
Alex Cutovoi4-Oct-05 7:36
Alex Cutovoi4-Oct-05 7:36 
AnswerRe: Reading all lines Pin
Chris Losinger4-Oct-05 8:27
professionalChris Losinger4-Oct-05 8:27 
AnswerRe: Reading all lines Pin
David Crow4-Oct-05 8:27
David Crow4-Oct-05 8:27 

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.