Implement DLL into C#

Please discuss general Delphi programming topics here.

Implement DLL into C#

Postby dvdan » April 12th, 2013, 7:20 am

Good morning.
I'm desperate.
I've to program an exe that work with an cf7900 producted by mei.
They give me an example application and the source code written in c#.
I don0t know ho to translate this code into delphi code.
could someone implement the attached dlls into a delphi code.
I'm very grateful if someone will help me.
Attachments
CF7000 API.zip
(70.09 KiB) Downloaded 48 times
dvdan
Member
Member
 
Posts: 1
Joined: April 12th, 2013, 7:16 am

Re: Implement DLL into C#

Postby Kambiz » April 15th, 2013, 4:15 pm

The attachment contains .net assemblies, but the source code is required for porting the code to another language.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: Implement DLL into C#

Postby dejavu.cucud » May 8th, 2013, 9:26 pm

dvdan wrote:Good morning.
I'm desperate.
I've to program an exe that work with an cf7900 producted by mei.
They give me an example application and the source code written in c#.
I don0t know ho to translate this code into delphi code.
could someone implement the attached dlls into a delphi code.
I'm very grateful if someone will help me.


it has to be registered using regasm (.net framework tool). by using the /tlb argument to produce and register a type library for the cf7900.dll assembly, which can be imported and used in Delphi.

regasm /tlb cf7900.dll
dejavu.cucud
Active Member
Active Member
 
Posts: 6
Joined: May 8th, 2013, 6:06 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 3 guests

cron