Write a Delphi XE5 interface based on c# code to talk to an C DLL from Delphi
$30-250 USD
Maksettu toimituksen yhteydessä
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
{
Projektin tunnus: #32229703
Tietoa projektista
Myönnetty käyttäjälle:
3 freelanceria on tarjonnut keskimäärin $215 tähän työhön
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 Lisää
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 Lisää