04-11-2023, 03:30 PM
I am confused. What is the compiler trying to do?
I try to pass a parameter of type INT or Float and it keeps telling me that the conversion from type INT* to INT and from Float to Float* cannot be performed - what does this mean? Here is a sample code to QB64PE and below that the contents of the H file. It should be fine (but it would have to work) - what did I do wrong?
QB64 code:
plus.h file code:
I'm not big friends with the C language...
I try to pass a parameter of type INT or Float and it keeps telling me that the conversion from type INT* to INT and from Float to Float* cannot be performed - what does this mean? Here is a sample code to QB64PE and below that the contents of the H file. It should be fine (but it would have to work) - what did I do wrong?
QB64 code:
Code: (Select All)
Declare Library "plus"
Function calc_plus% (a As Integer, b As Integer)
End Declare
c% = calc_plus(5, 6)
Print c%
plus.h file code:
Code: (Select All)
int calc_plus (int a, int b)
{
int c = a + b;
return c;
}
I'm not big friends with the C language...