gethostname.p source code

kirsch59

Member
I'm looking for the version of gethostname.p that works with version 10.X.

It is my understanding that p-Hostname must now be a MEMPTR and must be sized before and cleaned up after the call.

Does anyone know where I can download the V10 version?
 
are you talking about smtpmail ?

which gethostname.p ? where did you find it ?

maybe someones win32 api ?


by the way is it oe10.0b without any service packs ?

if i'm not mistaken, that version before the 1st service pack did not/left out support (by mistake) for char datatypes in dll/shared libraries declarations (memptr would work).

of course you should install the service pack, in that case, if that's the case.
 
I found out the problem with the gethostname.p source code. I needed to change

RUN gethostname (OUTPUT w-TcpName,
INPUT w-Length,
OUTPUT w-Return).

to

RUN gethostname (INPUT-OUTPUT w-TcpName,
INPUT w-Length,
OUTPUT w-Return).
 
??

i don't follow your last post, is that a question ?


like i told you i don't know what gethostname.p you're talking about.

i cannot run or check it if i don't have it.


again ...

maybe you can tell us where you got it ? maybe you can post it.


i also asked about your version. which one is it ?
 
I was running gethostname.p from smtpmail.p. The code snippet from gethostname.p that fixed the problem was

RUN gethostname (INPUT-OUTPUT w-TcpName,
INPUT w-Length,
OUTPUT w-Return).
 
Back
Top