1
I’m trying to call the method that returns a unsigned char through another method of the same class, I reviewed the whole internet but did not understand how to do it.
byte CryrazCore::*ComputeByteArray(byte inputData[], bool decryptMode)
{
int cs = this->CryrazCore::PushChecksum();
}
The method I’m trying to call is called CryrazCore::PushChecksum(), this is his statement:
// CryrazCore.cpp
byte CryrazCore::PushChecksum()
// CryrazCore.h
byte PushChecksum();
Here’s what it says on the bug, on the line of the first question code.
'this': can only be referenced Inside non-static Member functions or non-static data Member initializers
Where I’m going wrong to call the function?
What would that asterisk be on
::*? If it were to make a pointer tobyteshouldn’t he be next to the type? What if the return of the method isbyte, why the variablecsis the typeint?– Woss
As I said, I am new. I know almost nothing in this language, I put the
::*hoping to be a so-called "static", but I think it’s all wrong kkk– CypherPotato
The pointer
*bytewould be the same thing asref bytein C#, no?– CypherPotato