Hi all.
I want to know how to pass a bitmap from vb into a vc++ dll, so that I can do some transformations on it, and then have the dll pass the new bitmap back to vb.
Hi all.
I want to know how to pass a bitmap from vb into a vc++ dll, so that I can do some transformations on it, and then have the dll pass the new bitmap back to vb.
Probably better to ask this question in a VB forum too.
Extreme Visual Basic
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
Thanks for the reply, but I just came from a vb forum and they suggested I try here.
arf arf no-one wants to solve your problems!
I can't really help you with this, because I've forgotten what VB I ever knew. Sorry.
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
Pass the hDC to the VC++ DLL, and then you can manipulate it using the GDI functions.
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
excuss my lacking knowledge, but what is hdc
HDC is a handle to a device context. A device context contains information about how things will be drawn to the screen. I suggest you google "device context" and go to the MSDN reference.
Basically, you'll use a WinAPI function to load your DLL. You'll then obtain the HDC for the bitmap, and pass it to the DLL.
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
Thanks. I do that search and get back to you.