|
-
February 17th, 2008, 10:26 AM
#1
LoadBitmap
hi, I've created a function that loads a bitmap but for some reason visual c++ won't let me call it "LoadBitmap", I know there's already a function called LoadBitmap in windows.h, but I've tried using namespaces, changing the amount of parameters (even though the parameter types are completely different). here's the error message i get:
error LNK2019: unresolved external symbol "void __cdecl LoadBitmapA(struct _iobuf *,struct BMP *,int)" (?LoadBitmapA@@YAXPAU_iobuf@@PAUBMP@@H@Z) referenced in function _WinMain@16
the function I use looks something like:
LoadBitmap(FILE * f, BMP * bmp);
I declare this in "BMP.h" and then include it in "BMP.cpp". then I include "BMP.h" into another source an, if I include <windows.h> also it gives this error, it works find if I change the name though???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|