The Q / A link in is very close to what I'm looking for, but I'm just starting with C # and you need to fill out a little more and maybe some hints for a better way to continue.
I have an application that I wrote for PalmPre / webOS in Javascript, and part of it is written in C for portability, not for performance. It performs Lear Jet performance calculations.
In the webOS world, C code (plugin) goes in its own process and there is a way for JS to call and call C code (using "main") to start the process, and C can register entry points. Then JS can call the entry point with some arguments, the code C performs the calculation, and then C returns a pointer to a string of digits in JS for display. C code does not have graphics, does not allocate dynamic memory, etc. I would like to essentially convert the JS GUI code to C # and use the C code with a few changes (# if's) for C # to do the same thing that JS on Pre now does.
Answer 1 / option2 I think this is the best, but I did not understand what he meant by “your project versus consumer project” and how / why it means that one of them is dllimport and one is dllexport, and I do not have a DLL, I only have C-code routines. It seems like all I have to do is replace it with “PublicFunc” with my C routine, right? And could I have a few arguments saying "params"? However, the type of the return type is not specified, how would I return a response to C #? Is 'returntype' a reserved word? Or an example of a place owner? Or am I off track because I don't have a DLL? BTW, C code has a compilation mode to run autonomously as a DOS program for testing.
- , , ? MS VS 2010 Express , . , - ?
!