Click here to Skip to main content
15,890,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create transparent objects Pin
Anonymous8-Jan-04 6:17
Anonymous8-Jan-04 6:17 
GeneralSaving ColeServerDoc Pin
kevcs28-Jan-04 0:58
kevcs28-Jan-04 0:58 
GeneralRe: Saving ColeServerDoc Pin
Selvam R8-Jan-04 1:53
professionalSelvam R8-Jan-04 1:53 
GeneralDirectSound - Window Handle problem Pin
elza8-Jan-04 0:31
elza8-Jan-04 0:31 
GeneralRe: DirectSound - Window Handle problem Pin
tareqsiraj25-Mar-04 1:53
tareqsiraj25-Mar-04 1:53 
Generaldelete [] pCharPointer Pin
utkarsharma8-Jan-04 0:28
utkarsharma8-Jan-04 0:28 
GeneralRe: delete [] pCharPointer Pin
Mike Dimmick8-Jan-04 0:48
Mike Dimmick8-Jan-04 0:48 
GeneralRe: delete [] pCharPointer Pin
John R. Shaw8-Jan-04 4:37
John R. Shaw8-Jan-04 4:37 
I wish to elaborate on what mike said.
char* pCharPointer = new char[intLength]; // pCharPointer now contians an address like 0x50FC3456

pCharPointer = NULL; // pCharPointer now contians 0x00000000

delete [] pCharPointer; // does nothing and is still a valid call


char* pCharPointer = new char[intLength]; // pCharPointer now contians an address like 0x50FC3456

delete [] pCharPointer; // frees/releases memory
delete [] pCharPointer; // error - already free
pCharPointer = NULL; // pCharPointer now contians 0x00000000
delete [] pCharPointer; // does nothing and is still a valid call



INTP
GeneralRe: delete [] pCharPointer Pin
Jörgen Sigvardsson8-Jan-04 8:12
Jörgen Sigvardsson8-Jan-04 8:12 
GeneralIcons on the status area Pin
codevisio8-Jan-04 0:20
codevisio8-Jan-04 0:20 
GeneralRe: Icons on the status area Pin
utkarsharma8-Jan-04 0:47
utkarsharma8-Jan-04 0:47 
GeneralRe: Icons on the status area Pin
Monty28-Jan-04 1:21
Monty28-Jan-04 1:21 
GeneralRe: Icons on the status area Pin
codevisio8-Jan-04 2:40
codevisio8-Jan-04 2:40 
GeneralPdf2Text Pin
Anonymous8-Jan-04 0:17
Anonymous8-Jan-04 0:17 
GeneralRe: Pdf2Text Pin
Selvam R8-Jan-04 1:52
professionalSelvam R8-Jan-04 1:52 
GeneralPrinter protocol Pin
auur7-Jan-04 23:56
auur7-Jan-04 23:56 
GeneralCComboBox class Pin
Tonnystar7-Jan-04 23:52
Tonnystar7-Jan-04 23:52 
GeneralRe: CComboBox class Pin
2249178-Jan-04 1:43
2249178-Jan-04 1:43 
GeneralCComboBox class Pin
Tonnystar7-Jan-04 23:50
Tonnystar7-Jan-04 23:50 
GeneralInterfacing with MS Access Pin
mcsherry7-Jan-04 23:38
mcsherry7-Jan-04 23:38 
GeneralRe: Interfacing with MS Access Pin
BadJerry7-Jan-04 23:57
BadJerry7-Jan-04 23:57 
GeneralRe: Interfacing with MS Access Pin
mcsherry8-Jan-04 0:22
mcsherry8-Jan-04 0:22 
GeneralRe: Interfacing with MS Access Pin
Selvam R8-Jan-04 0:16
professionalSelvam R8-Jan-04 0:16 
QuestionMay I Ask? Pin
skylonely7-Jan-04 23:15
skylonely7-Jan-04 23:15 
AnswerRe: May I Ask? Pin
Cedric Moonen7-Jan-04 23:34
Cedric Moonen7-Jan-04 23:34 

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.