Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 6th, 2006, 08:55 AM
ÂËÉ«¾µ
Guest
 
Posts: n/a
Default About error MIDL2337 : unsatisfied forward declaration

in my idl file, i define a user-define data type as bollow:
typedef struct RasterFileHeader
{
DWORD dwVersion;
LONG nDataOffset;
LONG nBandCount;
LONG nWidth;
LONG nHeight;
enum PixelDataTypeEnum ePDType; // it's a enum type import from another
tlb by importlib(...)
enum ImageModeEnum eImageMode; // it's a enum type import from another
tlb by importlib(...)
LONG nTileWidth;
LONG nTileHeight;
double dResolutionX;
double dResolutionY;
double dOrgX;
double dOrgY;
double dDPIX;
double dDPIY;
double dInvalidValue;
LONG nReserve1;
LONG nReserve2;
LONG nReserve3;
} RasterFileHeader;

when complied, it comes to the error:"error MIDL2337 : unsatisfied forward
declaration".

i has found out that



  #2  
Old December 6th, 2006, 09:05 AM
ÂËÉ«¾µ
Guest
 
Posts: n/a
Default Re: About error MIDL2337 : unsatisfied forward declaration

Quote:
i has found out that
when i comment the above two enum data type
// enum PixelDataTypeEnum ePDType;
// enum ImageModeEnum eImageMode;

then compile it again, it works without errors.

Is there anybody tell me why?

thanks!
colorfilter


  #3  
Old December 6th, 2006, 10:05 AM
Alex Buell
Guest
 
Posts: n/a
Default Re: About error MIDL2337 : unsatisfied forward declaration

On Wed, 6 Dec 2006 17:27:58 +0800, I waved a wand and this message
magically appears in front of __ɫ__:
Quote:
when i comment the above two enum data type
// enum PixelDataTypeEnum ePDType;
// enum ImageModeEnum eImageMode;
You need to give the values for the enumeration, i.e., enum
PixelDataTypeEnum { 8bit, 16bit, 24bit }, or include the definitions
for ePDType and eImageMode from elsewhere.

--
http://www.munted.org.uk

You've been eating the cat food again, haven't you?
  #4  
Old December 6th, 2006, 10:55 AM
benben
Guest
 
Posts: n/a
Default Re: About error MIDL2337 : unsatisfied forward declaration

ÂËÉ«¾µ wrote:
Quote:
in my idl file, i define a user-define data type as bollow:
typedef struct RasterFileHeader
{
DWORD dwVersion;
LONG nDataOffset;
LONG nBandCount;
LONG nWidth;
LONG nHeight;
enum PixelDataTypeEnum ePDType; // it's a enum type import from another
tlb by importlib(...)
enum ImageModeEnum eImageMode; // it's a enum type import from another
tlb by importlib(...)
LONG nTileWidth;
LONG nTileHeight;
double dResolutionX;
double dResolutionY;
double dOrgX;
double dOrgY;
double dDPIX;
double dDPIY;
double dInvalidValue;
LONG nReserve1;
LONG nReserve2;
LONG nReserve3;
} RasterFileHeader;
>
when complied, it comes to the error:"error MIDL2337 : unsatisfied forward
declaration".
>
i has found out that
Judging the error name it seems that the above is MIDL code not C++, or
you are compiling with a wrong compiler. But, that is just my guess so I
can be wrong.

Ben
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles