Solved

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

Posted on 2002-05-02
3
272 Views
Last Modified: 2013-12-03
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
Comment
Question by:mite51
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
Zoppo earned 200 total points
ID: 6986264
Hi mite51,

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

ZOPPO
0
 
LVL 1

Author Comment

by:mite51
ID: 6986848
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
 
LVL 31

Expert Comment

by:Zoppo
ID: 6988058
Thanks a lot ...

have a nice day,

regards,

ZOPPO
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question