Call out to 3Gl: struct includes char* | Page 2 | Bugs, Issues and Errors | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

—  Results per page  —








— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters
For a group of consecutive words like 'end of support' use Match phrase

No permission to create posts
sp_Feed Topic RSS sp_TopicIcon
Call out to 3Gl: struct includes char*
02 Nov 2018
4:17 pm
Avatar
istiller
Member
Forum Posts: 299
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi Freaks

For char* in a struct I got a solution, thanks to Arthur at the u.B.G at Hamburg/Germany !

Windows allready do have a “wrapper”-DLL, called shlwapi.dll
In the DLL there many, many function. One of them is “StrDup” (StrDupA and StrDupW)

PSTR StrDupA( PCSTR pszSrch );

Input is a (const) string, i.e a normal “basis string” in UnifAce signature
the function will copy the string onto a static heap and return the address
This address can the pass to any DLL, direct or in a struct.

Don’t forget to free the memory after the job is done:

LocalFree( HLOCAL hMem );

Ingo

No permission to create posts
Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 131

Currently Online:
31 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ulrich-merkel: 1890

Iain Sharp: 680

Theo Neeskens: 371

gianni: 357

Adrian Gosbell: 318

istiller: 299

rogerw: 272

Knut: 229

lalitpct: 197

Arjen van Vliet: 184

Member Stats:

Guest Posters: 3

Members: 10982

Moderators: 0

Admins: 6

Forum Stats:

Groups: 1

Forums: 62

Topics: 2323

Posts: 10052

Newest Members:

greentipodent1976, NicolasHib, gipipufen1981, Alfredvax, Lesterpioto, crystalst3, otogsa12, Ramonmaw, harolddz1, Lariskawo

Administrators: admin: 23, diseli: 1045, Nico Peereboom: 84, richiet: 406, Mike Taylor: 38, JanCees: 39