Zła metoda

0

Witam. Mógłby mi ktoś powiedzieć co jest nie tak?

unsigned long *Function(Inter Create, char *Name);

unsigned long Class::*Function(Inter Create, char *Name)
{
	unsigned long *temporary = NULL;
	while ( temporary == NULL)
	{
		temporary = reinterpret_cast<unsigned long*>(Inter Create(Name, NULL));
	}

	return temporary ; 
}

Błąd:
Return value type does not match the function type

Inter oznacza typedef void* (*Inter)(const char *Name, int *ReturnCode);

0

wydaje mi się, że funkcja powinna wyglądać tak:

unsigned long* Class::Function(Inter Create, char* Name)
{
    unsigned long* temporary = NULL;
    
    while(temporary == NULL)
    {
		temporary = reinterpret_cast<unsigned long*>(Create(Name, NULL));
    }

    return temporary;
}

1 użytkowników online, w tym zalogowanych: 0, gości: 1