S
seema
Hi all,
I am new to C programming. I have problem compiling a sample ,
#include <stdio.h>
int getuniqueaddress1(){
return 1;
}
int getuniqueaddress2(){
return 2;
}
int getuniqueaddress3(){
return 3;
}
typedef struct IRpcStubBufferVtbl
{
int wuEpad10; int wuEpad20; int wuEpad30;
}IRpcStubBufferVtbl;
struct IRpcStubBuffer
{
struct IRpcStubBufferVtbl *lpVtbl;
};
typedef struct tagCInterfaceStubVtbl
{
IRpcStubBufferVtbl Vtbl;
} CInterfaceStubVtbl;
const CInterfaceStubVtbl _IClassFactoryStubVtbl =
{
getuniqueaddress1(),getuniqueaddress2(),getuniqueaddress3()
};
int main()
{
}
Any idea about why I am hitting compilation error? Any work around for
fixing this problem?
Thanks in advance,
Seema
I am new to C programming. I have problem compiling a sample ,
#include <stdio.h>
int getuniqueaddress1(){
return 1;
}
int getuniqueaddress2(){
return 2;
}
int getuniqueaddress3(){
return 3;
}
typedef struct IRpcStubBufferVtbl
{
int wuEpad10; int wuEpad20; int wuEpad30;
}IRpcStubBufferVtbl;
struct IRpcStubBuffer
{
struct IRpcStubBufferVtbl *lpVtbl;
};
typedef struct tagCInterfaceStubVtbl
{
IRpcStubBufferVtbl Vtbl;
} CInterfaceStubVtbl;
const CInterfaceStubVtbl _IClassFactoryStubVtbl =
{
getuniqueaddress1(),getuniqueaddress2(),getuniqueaddress3()
};
int main()
{
}
Any idea about why I am hitting compilation error? Any work around for
fixing this problem?
Thanks in advance,
Seema