Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msimg32.lib has to be included in order to build winchen due to unresolved external symbol __imp__AlphaBlend@44 #34

Open
Twenkid opened this issue Nov 23, 2022 · 1 comment

Comments

@Twenkid
Copy link

Twenkid commented Nov 23, 2022

Hi, I tried to compile the project on Win10, I had to include msimg32.lib:

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2019	unresolved external symbol __imp__AlphaBlend@44 referenced in function "void __cdecl DrawBitmap(struct HDC__ *,struct HBITMAP__ *,short,short)" (?DrawBitmap@@YAXPAUHDC__@@PAUHBITMAP__@@FF@Z)	winchen	Z:\chenard\winchen\wbrdbuf.obj	1	

Project-->Options-->Linker-->Additional Dependencies

image

Suggested by: https://forums.codeguru.com/showthread.php?361894-AlphaBlend-function

@cosinekitty
Copy link
Owner

Hi @Twenkid and thank you for the report. This is strange because I can compile it without adding msimg32.lib, and the program runs fine on my Windows 10 system. I am using Visual Studio 2019. What compiler are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants