bianchi77
Advanced Member level 4
- Joined
- Jun 11, 2009
- Messages
- 1,313
- Helped
- 21
- Reputation
- 44
- Reaction score
- 20
- Trophy points
- 1,318
- Location
- California
- Activity points
- 9,442
Friends,
Why do I get : error C267: 'DrawString': requires ANSI-style prototype?
The code :
I call it with :
And got error :
error C267: 'DrawString': requires ANSI-style prototype
I think, I put all the input parameters correctly, but why is it happened ?
Thanks for helping
Why do I get : error C267: 'DrawString': requires ANSI-style prototype?
The code :
Code:
#define uchar unsigned char
void DrawString(uint x, uint y, uchar *pStr, uint LineColor,uint FillColor, uchar Mod)
{
while(1)
{
if (*pStr == 0)
{
return;
}
if (*pStr > 0x80)
{
DrawSingleHz(x, y, pStr, LineColor, FillColor, Mod);
x += HZ_column;
pStr += 2;
}
else
{
DrawSingleAscii(x, y, pStr, LineColor, FillColor, Mod);
x += 8;
pStr += 1;
}
}
}
//=================================
I call it with :
Code:
DrawString(68, 0, "0", RED, YELLOW, NORMAL);
And got error :
error C267: 'DrawString': requires ANSI-style prototype
I think, I put all the input parameters correctly, but why is it happened ?
Thanks for helping
Last edited: