In Progress

C# to Vb.net conversion (byte pointers etc)

Hello,

I need to convert the following code from C# to Vb.net (it's part of an EMV API).

--------------------------------------------------------------------------------------------------------

unsafe public uint InputPIN(ref byte pPinNum)

{

[url removed, login to view]("Input Password and Push Enter !");

[url removed, login to view]();

[url removed, login to view]();

if ([url removed, login to view])

{

string strPassword = Invoke(new GetPasswordTextCallback(GetPasswordText), new object[] { }).ToString();

byte[] byPassword = StrToByteArray(strPassword);

fixed (byte* _pPinNum = &pPinNum)

{

byte* ps = _pPinNum;

for (int i = 0; i < 4; i++)

*(ps + i) = byPassword[i];

}

}

return 1;

}

--------------------------------------------------------------------------------------------------------

The result would be like this:

--------------------------------------------------------------------------------------------------------

' InputPin

Public Function InputPIN(ByRef pPinNum As Byte) As UInteger

[url removed, login to view]("Input Password and Push Enter !")

[url removed, login to view]()

[url removed, login to view]()

If [url removed, login to view] Then

Dim strPassword As String = Invoke(New GetPasswordTextCallback(AddressOf GetPasswordText), New Object() {}).ToString()

Dim byPassword As Byte() = StrToByteArray(strPassword)

'... ???

End If

Return 1

End Function

--------------------------------------------------------------------------------------------------------

I am stuck with the conversion of the 'fixed' structure.

I think the functions needed are [url removed, login to view] and/or GCHandle

Skills: .NET, C# Programming, Visual Basic

See more: byref, vb.net if, int i, if vb net, c for int, vb.net for, need to reset password, c to vb.net, c to vb, vb to vb net, c++ to, c to, byte, functions net, convert visual net, conversion code, convert object, api reset, Push API, net end, conversion net net, convert net net, visual basic net convert, vb net functions, vb net function

About the Employer:
( 2 reviews ) Reykjav, Iceland

Project ID: #2499355

18 freelancers are bidding on average $43 for this job

sandeep25101982

C#/VB.Net expert here. Pick me for 100% accurate and perfect solution. Awaiting your response, Thanks

$100 USD in 1 day
(34 Reviews)
6.6
managonz

Hi, please check PM

$30 USD in 0 days
(13 Reviews)
5.9
HosElectro

im an experienced programmer in visual studio i can do your project in only 30 minutes thank you

$30 USD in 1 day
(15 Reviews)
4.6
chetanraj81lx

Hi, Check the message.

$30 USD in 1 day
(4 Reviews)
4.3
khiemdmse60773

Hi, Let me help you to convert

$30 USD in 0 days
(19 Reviews)
4.2
trinity09

I can finish it in zero Day. The solution is ready and can be delivered/ tested in 1 Hr.

$30 USD in 1 day
(1 Review)
1.0
lesterjohn

Dear Sir, I am ready to work with you, please see PM

$30 USD in 0 days
(4 Reviews)
0.0
SEOSEARCHTEAM

For more details please check PMB.......... Thanks

$30 USD in 1 day
(1 Review)
0.0
procode7

Hello, I can try to help you.

$30 USD in 1 day
(1 Review)
2.8
PJohnRaj

I have esperiance in C,c++,c# and MatLab

$100 USD in 30 days
(0 Reviews)
0.0
lsbitri

I can do this

$30 USD in 0 days
(0 Reviews)
0.0
IForce187

Hello, I can start immediately. Please check your private message box for more detail. Thanks.

$50 USD in 1 day
(0 Reviews)
0.0
ramjill

i am ready to do this conversion c# to vb.net. i will completed this within two [url removed, login to view] me .

$60 USD in 7 days
(0 Reviews)
0.0
BIDeveloperIn

Please check PMB

$40 USD in 0 days
(0 Reviews)
0.0
shagunsinghal

I Have 4 Year core experience in C# with Asp.net and vb.net with sql server 2005 Please give me a chance

$50 USD in 10 days
(0 Reviews)
0.0
geekyrishu

I can do this in less than one day.

$30 USD in 0 days
(0 Reviews)
0.0
pankaj215

Ready to work,please check pm

$30 USD in 1 day
(0 Reviews)
0.0
wancer

Hi Sir I am sure I can do this project for you, see your PM, please

$35 USD in 1 day
(0 Reviews)
0.0