Click here to Skip to main content
16,018,418 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 18:58
User 58385222-Jan-08 18:58 
GeneralRe: problem with memory allocation when trying to store a large table Pin
Stephen Hewitt22-Jan-08 19:36
Stephen Hewitt22-Jan-08 19:36 
GeneralRe: problem with memory allocation when trying to store a large table Pin
David Crow23-Jan-08 3:27
David Crow23-Jan-08 3:27 
QuestionRead particular bit in a .bin file Pin
Kennis22-Jan-08 16:02
Kennis22-Jan-08 16:02 
GeneralRe: Read particular bit in a .bin file Pin
Don Box22-Jan-08 19:06
Don Box22-Jan-08 19:06 
GeneralPointers and reference Pin
vibindia22-Jan-08 15:08
vibindia22-Jan-08 15:08 
GeneralRe: Pointers and reference Pin
Stephen Hewitt22-Jan-08 16:39
Stephen Hewitt22-Jan-08 16:39 
GeneralRe: Pointers and reference Pin
Nitheesh George22-Jan-08 19:21
Nitheesh George22-Jan-08 19: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 14:19
act_x22-Jan-08 14:19 
GeneralRe: ATL Win32 issue Pin
Naveen22-Jan-08 16:50
Naveen22-Jan-08 16:50 
Generalmethod call quiry Pin
gman200822-Jan-08 10:20
gman200822-Jan-08 10:20 
GeneralRe: method call quiry Pin
Nitheesh George22-Jan-08 21:27
Nitheesh George22-Jan-08 21:27 
GeneralRe: method call quiry Pin
CPallini22-Jan-08 21:38
mveCPallini22-Jan-08 21:38 
GeneralRe: method call quiry Pin
gman200823-Jan-08 1:45
gman200823-Jan-08 1:45 
GeneralSetting Folder Permission During Installation Pin
KMerker22-Jan-08 8:11
KMerker22-Jan-08 8:11 
General"an unnamed file contained an unexpected object" Pin
Dave Calkins22-Jan-08 7:35
Dave Calkins22-Jan-08 7:35 
GeneralRe: "an unnamed file contained an unexpected object" Pin
Dave Calkins22-Jan-08 7:43
Dave Calkins22-Jan-08 7:43 
GeneralRe: "an unnamed file contained an unexpected object" Pin
Stephen Hewitt22-Jan-08 12:30
Stephen Hewitt22-Jan-08 12:30 
QuestionWhat is the syntax of a static int array to array structure? Pin
Hakan Bulut22-Jan-08 5:46
Hakan Bulut22-Jan-08 5:46 
AnswerRe: What is the syntax of a static int array to array structure? Pin
David Crow22-Jan-08 5:59
David Crow22-Jan-08 5:59 
GeneralRe: What is the syntax of a static int array to array structure? Pin
Hakan Bulut22-Jan-08 6:24
Hakan Bulut22-Jan-08 6:24 
AnswerRe: What is the syntax of a static int array to array structure? Pin
Florin Crişan22-Jan-08 6:02
Florin Crişan22-Jan-08 6:02 
GeneralGDI+ region and rects Pin
bob1697222-Jan-08 5:29
bob1697222-Jan-08 5:29 
GeneralRe: GDI+ region and rects Pin
CPallini22-Jan-08 5:37
mveCPallini22-Jan-08 5:37 
GeneralRe: GDI+ region and rects Pin
bob1697222-Jan-08 6:30
bob1697222-Jan-08 6: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.