Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

'CreateDibSection' : undeclared identifier... in a DLL

I have used VC6.0 to create a standard Win32 DLL with MFC statically linked, and I have some exported functions. One of the functions needs to use CreateDibSection but it is always undefined, I verified that wingdi.h in included.

I fiddled with the project settings, adding GDI32.LIB, defining it as _AFXDLL,_DLL. Nothing I try seems to work, does anyone have a suggestion how I can get CreateDibSection to work in my DLL.

Jason
0
mite51
Asked:
mite51
  • 2
1 Solution
 
ZoppoCommented:
Hi mite51,

do you use CreateDibSection or CreateDIBSection? It needs to be CreateDIBSection...

ZOPPO
0
 
mite51Author Commented:
OMFG, I guess thats what I get for programming at 2am. I will verify it but the points are as good as yours :P
0
 
ZoppoCommented:
Thanks a lot ...

have a nice day,

regards,

ZOPPO
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now