The issue of naming conflict between ProcedureDLL function and library function.

Just starting out? Need help? Post your questions and find answers here.
pbc
New User
New User
Posts: 1
Joined: Sun May 04, 2025 5:39 am

The issue of naming conflict between ProcedureDLL function and library function.

Post by pbc »

I'm writing msimg32.dll and need to export the function name "AlphaBlend" using ProcedureDLL.
I must use this exact function name, but PureBasic reports an error: "Invalid name: same as a command (from library '2DDrawing')."
The 2DDrawing library cannot be removed since I use it frequently. How can I resolve this issue?
User avatar
mk-soft
Always Here
Always Here
Posts: 6244
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: The issue of naming conflict between ProcedureDLL function and library function.

Post by mk-soft »

First of all, please don't shout like that.
Note: Large font = very loud

What do you have in mind? Normally you use the MSIMG32.dll and don't write one.
Here you will have to use a different name. e.g. AlphaBlendingEx
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Fred
Administrator
Administrator
Posts: 18207
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: The issue of naming conflict between ProcedureDLL function and library function.

Post by Fred »

Yes, there is no point writing a new msimg32.dll unless you want to fake it and create a malware. Locked.
Locked