In Progress

Explain this code and translate to pure C# .Net

Explain that code an convert to pure C# managed Code:

public unsafe static string DecodeString(string decode)

{

IAtlStringMgr* ptr = <Module>.AfxGetStringManager();

CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > > cStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >;

<Module>.[url removed, login to view]<char,1>.{ctor}(ref cStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >, ptr);

byte* ptr2 = decode;

ptr2 = [url removed, login to view] + ptr2;

Char modopt([url removed, login to view])& char modopt([url removed, login to view])& = ptr2;

char* ptr3 = char modopt([url removed, login to view])&;

<Module>.[url removed, login to view]<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >.=(ref cStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >, ptr3);

string result;

string cryptKey = "xxxx" //in real Code an other string

IAtlStringMgr* ptr4 = <Module>.AfxGetStringManager();

CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > > cStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >2;

<Module>.[url removed, login to view]<char,1>.{ctor}(ref cStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >2, ptr4);

byte* ptr5 = cryptKey;

if (ptr5 != null)

{

ptr5 = [url removed, login to view] + ptr5;

}

Char modopt([url removed, login to view])& char modopt([url removed, login to view])&2 = ptr5;

char* ptr6 = char modopt([url removed, login to view])&2;

<Module>.[url removed, login to view]<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >.=(ref cStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >2, ptr6);

<Module>.desDecodeString(ref cStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >, (CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >*)(&cStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >2));

result = new string(<Module>.[url removed, login to view]<char,1>..PBD(ref cStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >));

<Module>.[url removed, login to view]<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >.{dtor}(ref cStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >);

return result;

}

and the same for encode:

Skills: .NET, Anything Goes, C# Programming, C++ Programming

See more: module desdecodestring, static programming, public programming, string programming, programming string, programming static, programming char, char programming, 2 translate, translate to , byte, atl, string decode encode, translate net, code translate, net translate, string encode decode, decode code, convert pure, decode encode, encode decode, ptr, decode null, net encode, net decode

About the Employer:
( 48 reviews ) Brandenburg, Germany

Project ID: #2558029

Awarded to:

johnnycl

Hello, I can provide code translation in C#. John

$100 USD in 7 days
(9 Reviews)
4.6

13 freelancers are bidding on average $277 for this job

srinichal

I can tell you and make the code

$250 USD in 5 days
(81 Reviews)
6.9
szymszteinsl

Ready, sir!

$200 USD in 2 days
(22 Reviews)
5.9
R4ndy

Looking forward to hear from you!

$250 USD in 10 days
(2 Reviews)
5.7
hossein1363422

Hi, ready to do this

$150 USD in 4 days
(8 Reviews)
4.3
trinity09

I am a C# expert can provide you converted C# code. Just for verificattion provide me input data and expected output Data.

$80 USD in 2 days
(7 Reviews)
3.4
raghavender1986

I'll do it.

$60 USD in 1 day
(0 Reviews)
0.0
hiraju

I have very good knowledge in C#.Net. I able to do.

$250 USD in 6 days
(0 Reviews)
0.0
OzBCNi450

Custom software development: w w w . The Administrator removed this message for containing contact details which breaches our Terms of Service . i o

$1500 USD in 1 day
(0 Reviews)
0.0
stevchen99

i can do that, please PMB me

$100 USD in 2 days
(0 Reviews)
0.0
invegood

Hi! I'm C# expert. Ready to help. Thanks!

$160 USD in 3 days
(0 Reviews)
0.0
M538oWVuC

Custom software development: w w w . The Administrator removed this message for containing contact details which breaches our Terms of Service . i o

$250 USD in 1 day
(0 Reviews)
0.0
chayner

I'm an experienced C/C++ and C# developer. I can explain this code for you and convert it to C#.

$250 USD in 5 days
(0 Reviews)
0.0