Click here to Skip to main content
15,914,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Changing the IP address of PC from my application Pin
David Crow1-Sep-08 4:16
David Crow1-Sep-08 4:16 
QuestionAdvanced visual studio C++ debugging? Pin
MeNot1-Sep-08 3:46
MeNot1-Sep-08 3:46 
QuestionRe: Advanced visual studio C++ debugging? Pin
Mark Salsbery1-Sep-08 11:37
Mark Salsbery1-Sep-08 11:37 
AnswerRe: Advanced visual studio C++ debugging? Pin
Rostfrei1-Sep-08 23:25
Rostfrei1-Sep-08 23:25 
QuestionRe: Advanced visual studio C++ debugging? Pin
Mark Salsbery2-Sep-08 6:52
Mark Salsbery2-Sep-08 6:52 
QuestionCoClass name issues Pin
George_George1-Sep-08 3:03
George_George1-Sep-08 3:03 
QuestionHow to get length of a pointer byte array and how to add elements at the end of pointer byte array? Pin
kapardhi1-Sep-08 2:53
kapardhi1-Sep-08 2:53 
AnswerRe: How to get length of a pointer byte array and how to add elements at the end of pointer byte array? Pin
Roger Stoltz1-Sep-08 3:49
Roger Stoltz1-Sep-08 3:49 
By judging from the subject line in your post as well as browsing through some of your previous posts it's clear that you have not grasped the concept of Dynamic_memory_allocation[^].

The code snippet you provided doesn't do what you think it does; e.g. you have an obvious "memory leak" since you allocate memory and then let the pointer point to the buffer on the stack. The size of the memory leak is depending on how many bytes the compiler thinks it would take to store the integer 256.

I strongly advise you to read this[^]!


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


Questionproblem in linking bluetooth related header files in VC++ Pin
manju23reddy1-Sep-08 2:37
manju23reddy1-Sep-08 2:37 
QuestionRe: problem in linking bluetooth related header files in VC++ Pin
_AnsHUMAN_ 1-Sep-08 2:44
_AnsHUMAN_ 1-Sep-08 2:44 
AnswerRe: problem in linking bluetooth related header files in VC++ Pin
manju23reddy1-Sep-08 3:21
manju23reddy1-Sep-08 3:21 
AnswerRe: problem in linking bluetooth related header files in VC++ Pin
David Crow1-Sep-08 4:02
David Crow1-Sep-08 4:02 
QuestionRe: problem in linking bluetooth related header files in VC++ Pin
David Crow1-Sep-08 4:07
David Crow1-Sep-08 4:07 
QuestionStatic variable in dll Pin
The NULL Developer1-Sep-08 1:55
professionalThe NULL Developer1-Sep-08 1:55 
AnswerRe: Static variable in dll Pin
Perspx1-Sep-08 2:05
Perspx1-Sep-08 2:05 
GeneralRe: Static variable in dll Pin
The NULL Developer1-Sep-08 2:09
professionalThe NULL Developer1-Sep-08 2:09 
AnswerRe: Static variable in dll Pin
Cedric Moonen1-Sep-08 2:19
Cedric Moonen1-Sep-08 2:19 
GeneralRe: Static variable in dll Pin
The NULL Developer1-Sep-08 3:04
professionalThe NULL Developer1-Sep-08 3:04 
GeneralRe: Static variable in dll Pin
Cedric Moonen1-Sep-08 3:22
Cedric Moonen1-Sep-08 3:22 
QuestionLNK2001: Pin
T.RATHA KRISHNAN1-Sep-08 1:41
T.RATHA KRISHNAN1-Sep-08 1:41 
AnswerRe: LNK2001: Pin
Prasann Mayekar1-Sep-08 2:08
Prasann Mayekar1-Sep-08 2:08 
QuestionRe: LNK2001: Pin
T.RATHA KRISHNAN1-Sep-08 2:13
T.RATHA KRISHNAN1-Sep-08 2:13 
AnswerRe: LNK2001: Pin
Prasann Mayekar1-Sep-08 2:17
Prasann Mayekar1-Sep-08 2:17 
GeneralRe: LNK2001: Pin
Prasann Mayekar1-Sep-08 2:19
Prasann Mayekar1-Sep-08 2:19 
GeneralRe: LNK2001: Pin
T.RATHA KRISHNAN1-Sep-08 2:19
T.RATHA KRISHNAN1-Sep-08 2:19 

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.