Hi,

I'm using an API function that returns a pointer to a structure.

How can I access this pointer to a structure?

I'm trying to use the following:

int pHost;

pHost = gethostbyname("blablabla");

But it doesn't seem to like it. I get the following error when compiling:

error C2440: '=' : cannot convert from 'struct hostent *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast


Can someone help me?