Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Can't see C# .NET Properties in DLL that is used inside delphi via COM


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Aug 16, 2017 11:47 PM Last Post By: Bismark Appah
Roni Lev

Posts: 1
Registered: 8/6/03
Can't see C# .NET Properties in DLL that is used inside delphi via COM  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 7, 2016 6:23 AM
Hello everyone,

I'm using dll, that was created in C# .NET, inside delphi via COM.
After the delphi unit was created, i saw all the functions and procedures inside the classes in dll and it's OK.

**The problem** is that these classes contain Properties that i need to populate in order to make the classes work,
BUT i can't see them at all! - They do not exist in the unit!
Properties in C# looks like this: public clsPath path { get; set; }
Be note that the Dll is an EXTERNAL so i do not have the code or can modify it.

I need a solution that will make me use these Properties.
I've added some of the code from C# .NET class:

public class clsRequest : IInterfaceEVV
{
public clsRequest();

public clsPath path { get; set; } <-- The Properties are here!
public string serialCommPort { get; set; } <-- The Properties are here!
public string url { get; set; } <-- The Properties are here!

public int A1(clsInput inputObj, ref clsPinPad pinpad, ref clsGlobal globalObj);
public int A2(clsInput inputObj, ref clsPinPad pinpad, ref clsGlobal globalObj);
public int A3(clsInput inputObj, ref clsGlobal globalObj);

. . .

}

Thanks In Advanced, Roni/Pini.

I'm using Delphi XE2 / win7 64bit with dll that is C# Visual studio 2010 assembly.

Bismark Appah

Posts: 26
Registered: 3/13/15
Re: Can't see C# .NET Properties in DLL that is used inside delphi via COM  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 16, 2017 11:34 PM   in response to: Roni Lev in response to: Roni Lev
Roni Lev wrote:
Hello everyone,

I'm using dll, that was created in C# .NET, inside delphi via COM.
After the delphi unit was created, i saw all the functions and procedures inside the classes in dll and it's OK.

**The problem** is that these classes contain Properties that i need to populate in order to make the classes work,
BUT i can't see them at all! - They do not exist in the unit!
Properties in C# looks like this: public clsPath path { get; set; }
Be note that the Dll is an EXTERNAL so i do not have the code or can modify it.

I need a solution that will make me use these Properties.
I've added some of the code from C# .NET class:

public class clsRequest : IInterfaceEVV
{
public clsRequest();

public clsPath path { get; set; } <-- The Properties are here!
public string serialCommPort { get; set; } <-- The Properties are here!
public string url { get; set; } <-- The Properties are here!

public int A1(clsInput inputObj, ref clsPinPad pinpad, ref clsGlobal globalObj);
public int A2(clsInput inputObj, ref clsPinPad pinpad, ref clsGlobal globalObj);
public int A3(clsInput inputObj, ref clsGlobal globalObj);

. . .

}

Thanks In Advanced, Roni/Pini.

I'm using Delphi XE2 / win7 64bit with dll that is C# Visual studio 2010 assembly.

Hi Roni,

You can use the .Net Assembly/WSDL Importer tool which is part of the .Net Runtime Library for Delphi to import the external .net dll and generate Delphi codes from the assemblies, its types and members
(including the properties of the type) from the imported dll using the runtime library files.

For more information about the .Net Runtime Library for Delphi, go to https://crystalnet-tech.com/RuntimeLibrary/RuntimeLibrary4Delphi.aspx

For more information about the .Net Assembly/WSDL Importer tool, go to https://crystalnet-tech.com/RuntimeLibrary/RuntimeLibUtilities.aspx

Edited by: Bismark Appah on Aug 16, 2017 11:47 PM

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02