Click here to Skip to main content
16,011,870 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems using functions in structs in MSVC++ Pin
Ben Burnett20-Jun-01 7:32
Ben Burnett20-Jun-01 7:32 
GeneralRe: Problems using functions in structs in MSVC++ Pin
Jason Hihn20-Jun-01 8:21
Jason Hihn20-Jun-01 8:21 
GeneralMy documents directory Pin
jerry0davis20-Jun-01 3:37
jerry0davis20-Jun-01 3:37 
GeneralRe: My documents directory Pin
Matt Gullett20-Jun-01 3:44
Matt Gullett20-Jun-01 3:44 
GeneralRe: My documents directory Pin
jerry0davis20-Jun-01 3:48
jerry0davis20-Jun-01 3:48 
QuestionGetWindowLong????? Pin
20-Jun-01 3:00
suss20-Jun-01 3:00 
Generalsimple array question Pin
20-Jun-01 2:44
suss20-Jun-01 2:44 
GeneralRe: simple array question Pin
20-Jun-01 3:22
suss20-Jun-01 3:22 
When u reduce n from an array address (here x), the address will reduce to x - (n * sizeof(the type of x))

In this case u r reducing 1 from the double array address x. So, the new address will be educed by 8 bytes, since size of double is 8 bytes.


Go through the below given sample.

void foo(double* x)
{
printf("%f", *x);
}
void main()
{
double x[] = {1,2,3};
foo(x+1);
}

See the output to convince urself.


Big Grin | :-D
GeneralRe: simple array question Pin
20-Jun-01 3:31
suss20-Jun-01 3:31 
GeneralRe: simple array question Pin
20-Jun-01 17:46
suss20-Jun-01 17:46 
GeneralMDI and WS_MAXIMIZE,, Please Pin
mr200320-Jun-01 2:29
mr200320-Jun-01 2:29 
GeneralRe: MDI and WS_MAXIMIZE,, Please Pin
20-Jun-01 3:06
suss20-Jun-01 3:06 
GeneralRe: MDI and WS_MAXIMIZE,, Please Pin
mr200320-Jun-01 3:16
mr200320-Jun-01 3:16 
GeneralRe: MDI and WS_MAXIMIZE,, Please Pin
20-Jun-01 4:09
suss20-Jun-01 4:09 
GeneralVirtual Functions Pin
20-Jun-01 1:35
suss20-Jun-01 1:35 
GeneralRe: Virtual Functions Pin
Matt Gullett20-Jun-01 2:22
Matt Gullett20-Jun-01 2:22 
GeneralRe: Virtual Functions Pin
20-Jun-01 4:35
suss20-Jun-01 4:35 
GeneralHitTest on a CListCtrl Pin
sankar20-Jun-01 0:12
sankar20-Jun-01 0:12 
GeneralRe: HitTest on a CListCtrl Pin
Michael Dunn20-Jun-01 6:29
sitebuilderMichael Dunn20-Jun-01 6:29 
GeneralADO - what am i doing wrong?!! Pin
20-Jun-01 0:08
suss20-Jun-01 0:08 
GeneralRe: ADO - what am i doing wrong?!! Pin
Matt Gullett20-Jun-01 2:24
Matt Gullett20-Jun-01 2:24 
QuestionSerialize() or XML? Pin
Peter Robinson19-Jun-01 22:39
Peter Robinson19-Jun-01 22:39 
GeneralMFC42UD.DLL can't start... Pin
zia_asghar19-Jun-01 22:12
zia_asghar19-Jun-01 22:12 
GeneralRe: MFC42UD.DLL can't start... Pin
Christian Graus20-Jun-01 0:27
protectorChristian Graus20-Jun-01 0:27 
GeneralReturning collection class Pin
parag19-Jun-01 20:31
parag19-Jun-01 20:31 

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.