Search found 51 matches

by stefan.ungemach
Thu Mar 02, 2023 7:03 pm
Forum: Product
Topic: (Still) confused with WORD PTR, PTR/PSZ and strings - how to avoid XS9068?
Replies: 5
Views: 2098

(Still) confused with WORD PTR, PTR/PSZ and strings - how to avoid XS9068?

<t>I still struggle with some VO code pieces which throw warnings in XSharp:<br/>
<br/>
1. What would be the correct way to test if 2 strings occupy the same space in memory other than with<br/>
<br/>
IF PTR(SELF:_cValue) == PTR(cResult)<br/>
<br/>
2. How passing a string value to FUNCTION ...
by stefan.ungemach
Wed Mar 01, 2023 9:55 pm
Forum: Product
Topic: OLE Base Class Generation
Replies: 1
Views: 1203

OLE Base Class Generation

What would be the best approach to do something like VO "Automation Server Base Class Generation" in X#? We have tons of generated OLE code and the XPorter shows XS9010 (maybe more) - I'm not quiet sure if manually correcting the generated VO code would be the wise thing...
by stefan.ungemach
Wed Mar 01, 2023 8:16 pm
Forum: Product
Topic: Size of Char[] array?
Replies: 4
Views: 1985

Size of Char[] array?

Hi Chris, thanks, that did the trick.

BTW: Apologies for so many stupid questions, but I've finally started to migrate our complex VO framework to XSharp - and that's 1.5 millions of code lines ;)
by stefan.ungemach
Wed Mar 01, 2023 7:26 pm
Forum: Product
Topic: Size of Char[] array?
Replies: 4
Views: 1985

Size of Char[] array?

<r>This code gives me a warning XS9021 in the <COLOR color="red"><s>[color=red]</s>red line<e>[/color]</e></COLOR>:<br/>
<br/>
... <br/>
<COLOR color="red"><s>[color=red]</s>pResult := Char[]{<B><s>[b]</s>dwResult<e>[/b]</e></B>}<e>[/color]</e></COLOR><br/>
XSharp.ADS.ACE.AdsGetString(self:_hADT ...
by stefan.ungemach
Tue Feb 28, 2023 6:58 pm
Forum: Product
Topic: PARTIAL CLASS
Replies: 8
Views: 2385

PARTIAL CLASS

<r>Wouldn't work since there is too much code relying on the generated classes (i.e. dbTABELLE). But due to the discussion which helped me understanding the PARTIAL concept better I started working with a modified approach. In a nutshell<br/>
<br/>

<LIST><s>[list]</s>
<LI><s>[*]</s>I generate all ...
by stefan.ungemach
Tue Feb 28, 2023 2:37 pm
Forum: Product
Topic: PARTIAL CLASS
Replies: 8
Views: 2385

PARTIAL CLASS

<t>My proplem is that we have approx. 1.500 tables. Most of them use the standard methods, but some (or groups of some) overwrite these for some quiete complex mechanisms. I cannot force the developers to overwrite the same method for hundreds of classes (which I'd need if I made the base class ...
by stefan.ungemach
Tue Feb 28, 2023 12:17 pm
Forum: Product
Topic: PARTIAL CLASS
Replies: 8
Views: 2385

PARTIAL CLASS

<t>Hi Robert,<br/>
<br/>
then I have an architectural problem.<br/>
<br/>
In VO we have that base class dbAbstract. The subclasses are generated code into a library on top of that. Then these subclasses are extended in several layers above by the developers. Because under VO strongly typed stuff ...
by stefan.ungemach
Tue Feb 28, 2023 11:47 am
Forum: Product
Topic: PARTIAL CLASS
Replies: 8
Views: 2385

PARTIAL CLASS

<r>I'm struggling with XS0433 ("The type XX exists in both...") probably because I got something wrong with partial classes. The funny thing is that it did compile until 2 days ago...<br/>
<br/>
Project 0:<br/>
CLASS dbAbstract inherit dbServer<br/>
...<br/>
END CLASS<br/>
<br/>
Project 1 (including ...
by stefan.ungemach
Tue Feb 28, 2023 10:11 am
Forum: Product
Topic: DO/CASE limits?
Replies: 8
Views: 2410

DO/CASE limits?

Thanks again to all. I have chosen Leonid's approach.
by stefan.ungemach
Mon Feb 27, 2023 9:45 pm
Forum: Product
Topic: DO/CASE limits?
Replies: 8
Views: 2410

DO/CASE limits?

Thank you Chris,

the hashtable is a much smarter solution - especially because we're talking of generated code here which leads to several thousand elements. I have several use cases for this :)