02-14-2005, 11:18 PM
Here's another question about possible compiler features. I was wondering if in sometime in the future will if be possible to return UDT's from function w/out using a pointer. Say if I have a library made in another language like C as the following:
MYUDT Func1(int v1, float v2, char* v3);
Will the following work for now in FB?
Declare Function Func1 Lib "udtlib" Alias "Func1" (v1 As Integer, v2 As Single, v3 As String) As Integer
And using MemCpy in crt.dll to get it
Dim a As MYUDT
MemCpy @a, Func1(0, 432.23, "Test), Len(a)
Thanks in advanced
MYUDT Func1(int v1, float v2, char* v3);
Will the following work for now in FB?
Declare Function Func1 Lib "udtlib" Alias "Func1" (v1 As Integer, v2 As Single, v3 As String) As Integer
And using MemCpy in crt.dll to get it
Dim a As MYUDT
MemCpy @a, Func1(0, 432.23, "Test), Len(a)
Thanks in advanced