Home > Software engineering >  Use MFC PCI driver problems
Use MFC PCI driver problems

Time:09-24


Calls the PCI driver when there is a problem, the place that I didn't define, but I clearly contains the intrface. H this class

CodePudding user response:

DEFINE_GUID only defines the GUID, and not the entity,
So have to contain the corresponding lib or add GUID XXXX={XXXXX - XXX -}

CodePudding user response:

reference 1st floor zgl7903 response:
DEFINE_GUID only defines the GUID, and not the entity,
So have to contain the corresponding lib or add GUID XXXX={XXXXX - XXX -}

I am here defines its value

CodePudding user response:

In Guiddef. H
# ifdef INITGUID
# define DEFINE_GUID (name, l, w1, w2, b1, b2, b3, b4, b5, b6 and b7, b8) \
EXTERN_C const GUID DECLSPEC_SELECTANY name \
={l, w1, w2, {b1, b2, b3, b4, b5, b6 and b7, b8}}
# the else
# define DEFINE_GUID (name, l, w1, w2, b1, b2, b3, b4, b5, b6 and b7, b8) \
EXTERN_C const GUID FAR name
# endif//INITGUID

Either define INITGUID first

CodePudding user response:

reference zgl7903 reply: 3/f
in Guiddef.
in the h# ifdef INITGUID
# define DEFINE_GUID (name, l, w1, w2, b1, b2, b3, b4, b5, b6 and b7, b8) \
EXTERN_C const GUID DECLSPEC_SELECTANY name \
={l, w1, w2, {b1, b2, b3, b4, b5, b6 and b7, b8}}
# the else
# define DEFINE_GUID (name, l, w1, w2, b1, b2, b3, b4, b5, b6 and b7, b8) \
EXTERN_C const GUID FAR name
# endif//INITGUID

Or first define INITGUID

I will see in the evening, won't ask you again, thank you
  • Related