ryu
December 13th, 2004, 05:28 PM
Hi Gurus,
I having a trouble with structure. I am building Printer Port using Windows 2000 DDK (Free Build Enviroment).
When I build the code, it shows the following error:
printTest.c(49) : error C2032: '<Unknown>' : function cannot be member of struct
'_LINEBYTE'
In printTest.c, I have the following structure
------------------------------------------------------------------------------------------------------
....
....
....
typedef struct _LINEBYTE
{
int test;
int myTestFunction();
}LineByte;
....
....
....
-------------------------------------------------------------------------------------------------------
When I compile using Visual C++, it works fine. If I ignore (commented out) this structure, it compile in Visual C++ and Windows 2000 DDK - Free Build Enviroment.
I am just wondering, is the original (old C) structure does not support function? I think I was right, but I just need to confirm it with the GURUs.
Thanks in advance for any help.
Sam
I having a trouble with structure. I am building Printer Port using Windows 2000 DDK (Free Build Enviroment).
When I build the code, it shows the following error:
printTest.c(49) : error C2032: '<Unknown>' : function cannot be member of struct
'_LINEBYTE'
In printTest.c, I have the following structure
------------------------------------------------------------------------------------------------------
....
....
....
typedef struct _LINEBYTE
{
int test;
int myTestFunction();
}LineByte;
....
....
....
-------------------------------------------------------------------------------------------------------
When I compile using Visual C++, it works fine. If I ignore (commented out) this structure, it compile in Visual C++ and Windows 2000 DDK - Free Build Enviroment.
I am just wondering, is the original (old C) structure does not support function? I think I was right, but I just need to confirm it with the GURUs.
Thanks in advance for any help.
Sam