FFI Win32 api calls with LPTSTR args?

Cees de Groot cg at cdegroot.com
Wed Jan 26 21:29:51 UTC 2005


On Tue, 25 Jan 2005 18:39:08 -0800, Ned Konz <ned at squeakland.org> wrote:

> GetTempPathA(DWORD nBufferLength, LPCTSTR lpBuffer );
>
Which would mean

apiGetTempPathBufferSize: aNumber inTo: aString
	<apicall: long 'GetTempPathA' (long char *) module: 'kernel32.dll'>
	^self externalCallFailed

Should be sort of ok, not?

I get the error message 'Only ExternalFunctions can be called' when I try  
this - does this means that my arguments are messed up or that this  
<apicall: > thingie is not correct?

(recalling the time that I first tried JNI. Or the VW native interface. Or  
...)



More information about the Squeak-dev mailing list