MinGW / NetBeans IDE DLL for Bitmap
Posted: Mon Jul 24, 2017 3:48 am
Hi,
Has anyone created a DLL for Bitmap manipulation using the MinGW / gcc / gc++ / NetBeans IDE as outlined on the Flowstone Guru site?
The MinGW / gcc / gc++ / NetBeans IDE are the preferred method of making DLL's for Flowstone currently according to Flowstone Guru.
I have used (MinGW / gcc / gc++ / NetBeans IDE) to create DLL's doing other functions (audio delay, format manipulation etc.) but have not used it for Bitmap manipulation.
The Flowstone Example DLL has an example (and I have tested and it works) but they used Visual Studio 2008 to compile the DLL - unfortunately that version of Visual Studio is long gone... VS 2015 now...
Also, I noticed something in the "Helper Macros"
Notice the BYTE* in the GETBITMAPDATA (#define)... does C or C++ allow the use of BYTE* ? should that be int* ?
Any help or examples using the MinGW / gcc / gc++ / NetBeans IDE for Bitmap manipulation would be greatly appreciated.
Aron
Has anyone created a DLL for Bitmap manipulation using the MinGW / gcc / gc++ / NetBeans IDE as outlined on the Flowstone Guru site?
The MinGW / gcc / gc++ / NetBeans IDE are the preferred method of making DLL's for Flowstone currently according to Flowstone Guru.
I have used (MinGW / gcc / gc++ / NetBeans IDE) to create DLL's doing other functions (audio delay, format manipulation etc.) but have not used it for Bitmap manipulation.
The Flowstone Example DLL has an example (and I have tested and it works) but they used Visual Studio 2008 to compile the DLL - unfortunately that version of Visual Studio is long gone... VS 2015 now...
Also, I noticed something in the "Helper Macros"
Code: Select all
#define GETFRAMESIZE(p) p ? *((int*)p) : 0
#define GETBITMAPWIDTH(p) p ? *((int*)p) : 0
#define GETBITMAPHEIGHT(p) p ? *((int*)p+1) : 0
#define GETBITMAPCHANNELS(p) p ? *((int*)p+2) : 0
#define GETBITMAPDATA(p) p ? ((BYTE*)p+12) : 0
#define GETBITMAPBYTES(p) p ? *((int*)p) * *((int*)p+1) * *((int*)p+2) : 0
#define NEWINTARRAY(p,n) if(n>0) { *((int**)&p)=new int[n+1]; ((int*)p)[0]=n; }Notice the BYTE* in the GETBITMAPDATA (#define)... does C or C++ allow the use of BYTE* ? should that be int* ?
Any help or examples using the MinGW / gcc / gc++ / NetBeans IDE for Bitmap manipulation would be greatly appreciated.
Aron