Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13175
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: DLL Definition/Third Party DLLs |
| Date | 2020-12-10 11:24 +0100 |
| Message-ID | <i3ebacFj6rqU1@mid.individual.net> (permalink) |
| References | (1 earlier) <i370meF61isU1@mid.individual.net> <d42de7a2-4dad-4f89-b9d4-5acf4d6b4fe7n@googlegroups.com> <i396m8Fivo4U1@mid.individual.net> <499292c1-11ad-4e85-b46c-3131b5b32f47n@googlegroups.com> <6a6464bb-9b5d-40e5-8b4d-09e707fdf3e8n@googlegroups.com> |
Hi Sebastián > I will change all functions and then test... > > It's safe to change? > > DLL_EXPORT_IMPORT int DLL_STD_CALL SetPort( const char *port ); > > From: > _DLL FUNCTION SetPort(cPort AS STRING) AS INT PASCAL:DllName.SetPort > > to > _DLL FUNCTION SetPort(pszPort AS PSZ) AS INT PASCAL:DllName.SetPort > > and then call > > LOCAL iResult:= 0 AS INT > LOCAL pszPort:= NULL_PSZ AS PSZ > > pszPort:= StringAlloc(cPort) > iResult:= SetPort(pszPort) > MemFree(pszPort) > pszPort:= NULL_PSZ That should work. Wolfgang --
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
DLL Definition/Third Party DLLs Sebastián BASSANO <ccyasa.sbassano@gmail.com> - 2020-12-07 05:40 -0800
Re: DLL Definition/Third Party DLLs "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-12-07 16:39 +0100
Re: DLL Definition/Third Party DLLs Sebastián BASSANO <ccyasa.sbassano@gmail.com> - 2020-12-07 08:03 -0800
Re: DLL Definition/Third Party DLLs "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-12-08 12:34 +0100
Re: DLL Definition/Third Party DLLs Sebastián BASSANO <ccyasa.sbassano@gmail.com> - 2020-12-09 03:25 -0800
Re: DLL Definition/Third Party DLLs Sebastián BASSANO <ccyasa.sbassano@gmail.com> - 2020-12-09 08:56 -0800
Re: DLL Definition/Third Party DLLs "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-12-10 11:24 +0100
Re: DLL Definition/Third Party DLLs Sebastián BASSANO <ccyasa.sbassano@gmail.com> - 2020-12-16 06:17 -0800
Re: DLL Definition/Third Party DLLs Jamal <nospam@example.com> - 2020-12-08 01:56 -0500
Re: DLL Definition/Third Party DLLs Sebastián BASSANO <ccyasa.sbassano@gmail.com> - 2020-12-09 03:24 -0800
csiph-web