Encerrado

Help building C# cover functions for C

I have a C struct that is defined along with a set of functions, in a class-like manner, but in C rather than C++.

I need to build cover functions in C# for all these functions, but have limited knowledge of C#. This project is to take the C source code for the functions, the C source code for a "main" that uses these functions, then generate the C# cover functions along with a C# main function that shows these C# functions being exercised.

The C functionality includes storing and retrieving any objects (void*) in the struct; using callback functions; returing strings as (char**) - i.e., the pointer from inside the struct and converting them into C# strings, etc.

I do have a starting version of the C# cover functions and the C# main program. But there are obviously lots of holes as I don't know how to do this.

## Deliverables

I am including 4 files.

The first (myobj.c) contains the C functions I want a C# cover for.

The second (testc.c) contains a C main program that executes the functionality of the functions in myobj.c.

The third ([url removed, login to view]) is my attempt at generating the cover functions in C#.

Finally, the fourth ([url removed, login to view]) is my C# main program to test the cover functions.

All calls in testc.c must be replicated in [url removed, login to view] without changing the basic API (i.e., if a return value is an argument then it should not be changed into a function value return, but remain as a return value in the argument list).

The C files are compiled as:

> cl -c /MD myobj.c

> link /dll /implib:[url removed, login to view] /out:[url removed, login to view] [url removed, login to view]

> [url removed, login to view] -manifest [url removed, login to view] -outputresource:[url removed, login to view];2

This generates the DLL from the C functions.

Next I build the C# code as follows:

> csc /target:library /out:[url removed, login to view] [url removed, login to view]

> csc /out:[url removed, login to view] /r:[url removed, login to view] [url removed, login to view]

> [url removed, login to view]

Habilidades: Programação C, Programação C#, Engenharia, MySQL, PHP, Gestão de projetos, Arquitetura de software, Teste de Software

Ver mais: struct c programming, strings in c programming, source c code, set in c, r programming class, programming functions, pointer programming, php program md, php main functions, need help with my programming project, i need help with c++ programming, functions programming, functions in programming, functions in c# programming, functions in c programming, for c programming, cs programming, c++ programming test, c programming struct, c programming strings, c programming pointer, c programming functions, c programming function, c programming class, c programming char

Acerca do Empregador:
( 0 comentários ) United States

ID do Projeto: #3029380

16 freelancers estão ofertando em média $48 para este trabalho

yilin

See private message.

$42.5 USD in 3 dias
(70 Comentários)
5.7
mariusbucurvw

See private message.

$45.9 USD in 3 dias
(44 Comentários)
5.2
TaylorSmallwood

See private message.

$42.5 USD in 3 dias
(12 Comentários)
4.9
omederos

See private message.

$21.25 USD in 3 dias
(18 Comentários)
4.6
deltasp2002

See private message.

$68 USD in 3 dias
(7 Comentários)
4.3
bucktracker

See private message.

$42.5 USD in 3 dias
(26 Comentários)
4.2
pistarsolutions

See private message.

$15.3 USD in 3 dias
(26 Comentários)
3.7
aldayneko

See private message.

$170 USD in 3 dias
(3 Comentários)
3.0
anant7vw

See private message.

$25.5 USD in 3 dias
(10 Comentários)
2.8
codestudiovw

See private message.

$18.7 USD in 3 dias
(5 Comentários)
2.8
vw7288407vw

See private message.

$85 USD in 3 dias
(3 Comentários)
2.9
nguyenhoangtran

See private message.

$42.5 USD in 3 dias
(3 Comentários)
2.3
blueflamect

See private message.

$3.4 USD in 3 dias
(0 Comentários)
0.0
maiphuongvw

See private message.

$42.5 USD in 3 dias
(2 Comentários)
2.3
mufe

See private message.

$21.25 USD in 3 dias
(0 Comentários)
0.0
yasirmalik

See private message.

$85 USD in 3 dias
(0 Comentários)
0.0