Click here to Skip to main content
15,844,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem with memory allocation when trying to store a large table Pin
User 58385222-Jan-08 19:58
User 58385222-Jan-08 19:58 
GeneralRe: problem with memory allocation when trying to store a large table Pin
Stephen Hewitt22-Jan-08 20:36
Stephen Hewitt22-Jan-08 20:36 
GeneralRe: problem with memory allocation when trying to store a large table Pin
David Crow23-Jan-08 4:27
David Crow23-Jan-08 4:27 
QuestionRead particular bit in a .bin file Pin
Kennis22-Jan-08 17:02
Kennis22-Jan-08 17:02 
GeneralRe: Read particular bit in a .bin file Pin
Don Box22-Jan-08 20:06
Don Box22-Jan-08 20:06 
GeneralPointers and reference Pin
vibindia22-Jan-08 16:08
vibindia22-Jan-08 16:08 
GeneralRe: Pointers and reference Pin
Stephen Hewitt22-Jan-08 17:39
Stephen Hewitt22-Jan-08 17:39 
GeneralRe: Pointers and reference Pin
Nitheesh George22-Jan-08 20:21
Nitheesh George22-Jan-08 20:21 
Internally reference is implemented as a pointer. The compiler take care about that. That is why the assembly language instructions looks the same. But we u can notify the following differences between a pointer and a reference.

1. a pointer is a variable holding an address of another variable.
2. u can reuse a pointer variable but this is not possible for a reference. or u can assign another address to a pointer variable.

3. u need to use * or -> operator to access the content of a pointer.
4 . there is a possibility of null reference for a pointer, so u need to check like

char *p = new char [MAX_PATH];
.....
.....
if(p)
{
.....do something
}
else
{
do something
}

i think the above will help to understand the things
GeneralATL Win32 issue Pin
act_x22-Jan-08 15:19
act_x22-Jan-08 15:19 
GeneralRe: ATL Win32 issue Pin
Naveen22-Jan-08 17:50
Naveen22-Jan-08 17:50 
Generalmethod call quiry Pin
gman200822-Jan-08 11:20
gman200822-Jan-08 11:20 
GeneralRe: method call quiry Pin
Nitheesh George22-Jan-08 22:27
Nitheesh George22-Jan-08 22:27 
GeneralRe: method call quiry Pin
CPallini22-Jan-08 22:38
mveCPallini22-Jan-08 22:38 
GeneralRe: method call quiry Pin
gman200823-Jan-08 2:45
gman200823-Jan-08 2:45 
GeneralSetting Folder Permission During Installation Pin
KMerker22-Jan-08 9:11
KMerker22-Jan-08 9:11 
General"an unnamed file contained an unexpected object" Pin
Dave Calkins22-Jan-08 8:35
Dave Calkins22-Jan-08 8:35 
GeneralRe: "an unnamed file contained an unexpected object" Pin
Dave Calkins22-Jan-08 8:43
Dave Calkins22-Jan-08 8:43 
GeneralRe: "an unnamed file contained an unexpected object" Pin
Stephen Hewitt22-Jan-08 13:30
Stephen Hewitt22-Jan-08 13:30 
QuestionWhat is the syntax of a static int array to array structure? Pin
Hakan Bulut22-Jan-08 6:46
Hakan Bulut22-Jan-08 6:46 
AnswerRe: What is the syntax of a static int array to array structure? Pin
David Crow22-Jan-08 6:59
David Crow22-Jan-08 6:59 
GeneralRe: What is the syntax of a static int array to array structure? Pin
Hakan Bulut22-Jan-08 7:24
Hakan Bulut22-Jan-08 7:24 
AnswerRe: What is the syntax of a static int array to array structure? Pin
Florin Crişan22-Jan-08 7:02
Florin Crişan22-Jan-08 7:02 
GeneralGDI+ region and rects Pin
bob1697222-Jan-08 6:29
bob1697222-Jan-08 6:29 
GeneralRe: GDI+ region and rects Pin
CPallini22-Jan-08 6:37
mveCPallini22-Jan-08 6:37 
GeneralRe: GDI+ region and rects Pin
bob1697222-Jan-08 7:30
bob1697222-Jan-08 7:30 

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.