VOSTRUCT with PSZ

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
tuedel
Posts: 3
Joined: Tue May 01, 2018 1:31 pm

VOSTRUCT with PSZ

Post 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
User avatar
robert
Posts: 4243
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

VOSTRUCT with PSZ

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
tuedel
Posts: 3
Joined: Tue May 01, 2018 1:31 pm

VOSTRUCT with PSZ

Post 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.
Post Reply