Questins in .net Class library

Questins in .net Class library

Post by Mahmoud Aw » Sun, 29 Jul 2007 20:58:23


hi all,
i have made aclass library in .net and in this class theres afunction that return DataSet object and when i convert it to tlb file this DataSet datatype convert to IUnknown datatype and when i make custing in Delphi to TDataset not working ,what can i made to work


thanks and best regards
Mahmoud Awad


From http://www.yqcomputer.com/

Posted via DevelopmentNow.com Group
http://www.yqcomputer.com/
 
 
 

Questins in .net Class library

Post by Cassio » Tue, 31 Jul 2007 01:59:19

Hi Mahmoud,

I don't know if it's possible. The .NET DataSet is completely
different from Delphi's TDataSet. Both have columns, rows, methods and
a lot of similarities but they're now equal. Open VS and Delphi and
compare it. You will see a lot of differences too.

If you're trying to use COM, I think you should not expose your .NET
DataSet directly to Delphi. One option is building a class that has a
private dataset and a method that return dataset's data as an array of
strings or something similar.

I'm not an expert so other people opinion is important.

Cassio Tavares

On Jul 28, 8:58 am, Mahmoud Awad< XXXX@XXXXX.COM >