xsharp.eu • VOSTRUCT with PSZ
Page 1 of 1

VOSTRUCT with PSZ

Posted: Fri Jun 12, 2020 1:41 pm
by tuedel
We are at the very very first beginning and trying to convert a big application to xsharp. A lot of things from VO were made "again" to avoid problems with GC etc.

So for our definition base, we are heavily using VOSTRUCTS and within PSZ. All defined within a defines.prg.

Following code will not compile, due to "member type must be one of the following....". Is there a chance to avoid this problem?

example:

Code: Select all

VOSTRUCT MenuSC

	MEMBER dwDataSize                 AS DWORD
	MEMBER Data                       IS MenuSC_Data
	MEMBER dwSubQRICount              AS DWORD
	MEMBER dwStringCount              AS DWORD
	MEMBER ST                         AS PSZ	//was other struct before MenuSC_StringTable
	MEMBER dwCollectionCount          AS DWORD
	MEMBER dwBlockCount               AS DWORD
END VOSTRUCT

VOSTRUCT with PSZ

Posted: Fri Jun 12, 2020 4:11 pm
by robert
Hans-Werner,

A structure with a PSZ should be no problem. The VO SDK is full of them.
I added the following implementation for MenuSc_Data and then it compiles.

VOSTRUCT MenuSC_Data
MEMBER a as long
END VOSTRUCT

Of course I have no idea what is in your MenuSc_Data.

Robert

Robert

VOSTRUCT with PSZ

Posted: Fri Jun 12, 2020 6:25 pm
by tuedel
Hi Robert,

thanks for the quick reply. Ok, it seems, that the problem is coming from another point of code. So I was right (under normal circumstances), that this struct is possible - Member AS PSZ is not a problem.

Thx.