Terminé

Write a Delphi XE5 interface based on c# code to talk to an C DLL from Delphi

Dear Delphi programmers,

We are looking for a skilled Delphi programmer with good C++ C# knowledge able to create an interface header for a C++ DLL that will be used by our Delphi application.

Testing can’t be outsourced since the DLL is controlling a Hardware device.

The DLL Exports 88 functions

What we have:

the code c# class to call the functions of the DLL

the compiled DLL

C Source of the DLL is not available

And What th c# code looks like:

using System;

using [login to view URL];

using [login to view URL];

using [login to view URL];

using [login to view URL];

using [login to view URL];

namespace sbxpc

{

class SBXPCDLL

{

[DllImport("[login to view URL]", CallingConvention = [login to view URL])]

static extern void _DotNET();

public static void DotNET()

{

_DotNET();

}

[DllImport("[login to view URL]", CallingConvention = [login to view URL])]

static extern byte _EnableDevice(Int32 dwMachineNumber, byte bFlag);

public static bool EnableDevice(Int32 dwMachineNumber, byte bFlag)

{

return _EnableDevice(dwMachineNumber, bFlag) > 0;

}

#region Not Tested Part 1

[DllImport("[login to view URL]", CallingConvention = [login to view URL])]

static extern byte _SetMachineType(Int32 dwMachineNumber, ref IntPtr lpszMachineType);

public static bool _SetMachineType(Int32 dwMachineNumber, string lpszMachineType)

{

IntPtr string_in = [login to view URL](lpszMachineType);

try

{

return _SetMachineType(dwMachineNumber, ref string_in) > 0;

}

catch (Exception)

{

return false;

}

finally

{

[login to view URL](string_in);

}

}

[DllImport("[login to view URL]", CallingConvention = [login to view URL])]

static extern byte _GetEnrollData(Int32 dwMachineNumber,Int32 dwEnrollNumber,Int32 dwEMachineNumber,Int32 dwBackupNumber, IntPtr dwMachinePrivilege, ref IntPtr dwEnrollData, IntPtr dwPassWord);

public static bool GetEnrollData(Int32 dwMachineNumber, Int32 dwEnrollNumber, Int32 dwEMachineNumber, Int32 dwBackupNumber, out Int32 dwMachinePrivilege, byte[] dwEnrollData, out Int32 dwPassWord)

{

dwMachinePrivilege = 0;

dwPassWord = 0;

byte[] privilege = new byte[4];

byte[] password = new byte[4];

GCHandle gh_privilege = [login to view URL](privilege, [login to view URL]);

GCHandle gh_password = [login to view URL](password, [login to view URL]);

GCHandle gh_enroll_data = [login to view URL](dwEnrollData, [login to view URL]);

try

{

Compétences : Codage, Delphi, Programmation C

Concernant l'employeur :
( 9 commentaires ) Oberlunkhofen, Switzerland

Nº du projet : #32229703

Décerné à:

(1108 Commentaires)
7.6

3 freelances font une offre moyenne de 215 $ pour ce travail

techplusintl

Hi there, ★★★ C / C++ / Delphi / C# Expert ★★★ 10+ Years of Experience ★★★ I've read requirements and ready to create an interface header. I have strong grasp on Object-Oriented Programming along with excellent analyt Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(9 Commentaires)
5.2
umairkaramat24

Hi! How are you doing? I have read the project description and really interested in this job, I have 4 years’ experience doing similar jobs regarding to these skills Delphi, C Programming and Coding. Please start the c Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(1 Évaluation)
1.5