Here's the function I use:
Code:
char convert(int* time,char* outtime)
{
*outtime=(char)*time;
}
here are the errors:
Code:
e:\programs\projects\opengl tests\graphic opengl stardate\sdopengl\stdate.cpp(11) : error C2664: 'convert' : cannot convert parameter 1 from 'char [100]' to 'int *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
e:\programs\projects\opengl tests\graphic opengl stardate\sdopengl\stdate.cpp(18) : error C2664: 'convert' : cannot convert parameter 1 from 'char [100]' to 'int *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
e:\programs\projects\opengl tests\graphic opengl stardate\sdopengl\stdate.cpp(117) : error C2664: 'convert' : cannot convert parameter 1 from 'int' to 'int *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
mainsource.cpp
why? i've looked it through, theoretically it should work.