P
prog00
Hi,
I write the following code:
void someproc() {
int controlids [] = {
IDC_BUTTON_RC_CONNECT,
IDC_BUTTON_RC_CONNECTPUBLIC,
IDC_BTN_SENDHELLO };
someproc2(controlids);
}
void someproc2(int * e)
{
int size = sizeof(e)/sizeof(int);
//.. do something with size.. like use in a for loop etc...
}
I expected to get the correct size, but it just gives me 1. What am I
doing wrong?
regards,
X.
I write the following code:
void someproc() {
int controlids [] = {
IDC_BUTTON_RC_CONNECT,
IDC_BUTTON_RC_CONNECTPUBLIC,
IDC_BTN_SENDHELLO };
someproc2(controlids);
}
void someproc2(int * e)
{
int size = sizeof(e)/sizeof(int);
//.. do something with size.. like use in a for loop etc...
}
I expected to get the correct size, but it just gives me 1. What am I
doing wrong?
regards,
X.