|
-
December 13th, 2004, 06:28 PM
#1
struct - a simple question.
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|