Hi!
CLSHEAP is supposed to create the pointers to strings. Use STRUCT to create structures for API functions. Than in that structure definition use integer type for Host_Name. As the value of that structure field put the integer value returned by CLSHEAP - the pointer to the memory prepared for string.
HTH.
>Hello,
>
>how can i alloc an INTEGER in CLSHEAP?
>
>my structure starts as followed:
>
>typedef struct hlserver
>{
>int ID,
>char *Host_Name,
>...
>}
>
>don't understand how to create the INT as the first value in the structure
>
>THX beforehand
>
>Christian Ehlscheid
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.