• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 289
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

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