Still not working, I've decided not to worry about debug at the moment. However I have another stragnge problem now!
I have 2 functions defined in the library
void d3dRoundBox(int iX1, int iY1, int iX2, int iY2, int iRadius, int iFilled)
{
if (iFilled == 0)
RoundRectUnfilled(iX1, iY1, iX2-iX1, iY2-iY1, iRadius, g_Forecolour);
else
RoundRectFilled(iX1, iY1, iX2-iX1, iY2-iY1, iRadius, g_Forecolour);
}
void d3dRoundBox(int iX1, int iY1, int iX2, int iY2, int iRadius, int iFilled, DWORD dwColour)
{
if (iFilled == 0)
RoundRectUnfilled(iX1, iY1, iX2-iX1, iY2-iY1, iRadius, dwColour);
else
RoundRectFilled(iX1, iY1, iX2-iX1, iY2-iY1, iRadius, dwColour);
}
They are in my include file which is referenced in my test project
void d3dRoundBox ( int iX1, int iY1, int iX2, int iY2, int iRadius, int iFilled );
void d3dRoundBox ( int iX1, int iY1, int iX2, int iY2, int iRadius, int iFilled, DWORD dwColour );
I then add a line to call each function in the test app
d3dRoundBox(300,300,600,450,10,1);
d3dRoundBox(300,300,600,450,10,1,d3dRGBA(255,0,0,155));
but when I compile I get this error.
Main.obj : error LNK2019: unresolved external symbol "void __cdecl d3dRoundBox(int,int,int,int,int,int,unsigned long)" (?d3dRoundBox@@YAXHHHHHHK@Z) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
It's definately there, but I'm not sure why it can't see it. I have tried giving it a completely different name to no avail.
Does anyone have any ideas what I'm doing wrong?
EDIT - Sorry! Please ignore this post as it would appear that somehow the output path for the release version of the library got corrupted which meant the application was picking up and older version that didn't have the function defined in it.