DIGIT-ARC read-only archive · snapshot: July 23, 2026

problem: Front end in C# and backend in C?

17 posts · originally from https://geek.digit.in/community/threads/problem-front-end-in-c-and-backend-in-c.129542/

siddharthmakwana
siddharthmakwana Original post #1
Jul 14, 2010 at 11:44 AM
Is it possible to connect front end created in C#(visual studio) to a C file as a back end...?
i want to make a MD5 sum calculator for which i have prepared GUI in C# and i do have a C code that generates MD5 sum of a given file or text. the C code takes the file path or string as a command line arguments.....

GUI consist of two text boxes. one to input filename or text and other in which MD5 sum should be printed...
L
Jul 14, 2010 at 7:44 PM
Is it possible to connect front end created in C#(visual studio) to a C file as a back end...?
i want to make a MD5 sum calculator for which i have prepared GUI in C# and i do have a C code that generates MD5 sum of a given file or text. the C code takes the file path or string as a command line arguments.....

GUI consist of two text boxes. one to input filename or text and other in which MD5 sum should be printed...
yes
create the C code as a DLL project and use it in C# project
google on how to use C dll in c#
Garbage
Garbage #3
Jul 14, 2010 at 7:55 PM
Or you can "execute a command" (your C program executable) passing the parameter and return the string which can be displayed in the text box.

Though I recommend to write the program in C# instead of using it as a command.
MetalheadGautham
Jul 14, 2010 at 11:23 PM
Though I recommend to write the program in C# instead of using it as a command.
Any reasons ? I've always assumed that code is much faster when executed in C compared to modern high level languages...
And for a digest algorithm this should be a human noticable time difference for larger files right ?
Garbage
Garbage #5
Jul 14, 2010 at 11:41 PM
Any reasons ? I've always assumed that code is much faster when executed in C compared to modern high level languages...
And for a digest algorithm this should be a human noticable time difference for larger files right ?

That recommendation isn't because of the execution speed. But invoking (OS) commands from program is never considered as good option.

And BTW, read the following links please. Just for information.
Canned Platypus Blog Archive It’s Faster Because It’s C
Hacker News | It?s Faster Because It?s C
:)
L
Jul 15, 2010 at 3:13 AM
Any reasons ? I've always assumed that code is much faster when executed in C compared to modern high level languages...
And for a digest algorithm this should be a human noticable time difference for larger files right ?
it is always speed vs effort
in this case if he implements both UI n BL in C# , he will effort with no penalty in speed
arpanmukherjee1
Jul 16, 2010 at 2:00 PM
i developed a form applic in C# for finding duplicate files using md5 Hash.

used the md5 security class

it worked out quiet nicely for large files also.

for files of 3 - 10 GB used file splitting method. will post src code if you like.

---------- Post added at 02:00 PM ---------- Previous post was at 01:57 PM ----------

lucifer_is_back;1262221 create the C code as a DLL project and use it in C# project [/QUOTE said:
this is what i think is the best method for using c codes in other langs.
Garbage
Garbage #8
Jul 18, 2010 at 11:00 AM
Great... Host the project on Sourceforge or Github or GoogleCode or CodePlex and please provide a link.
And BTW, under which license are you publishing your code? I'm just curious... :p
arpanmukherjee1
Jul 18, 2010 at 6:38 PM
i did not create any class of my own, just used it.

i did it for request of friend of mine (avid collector of hindi songs) who was having same mp3 file multiple times over the drive.

i did not publish it anywhere, i will upload it to RS with src,(tomorrow)
change as u like

but tell me if u do smthing interesting with it
siddharthmakwana
Jul 19, 2010 at 12:57 AM
i developed a form applic in C# for finding duplicate files using md5 Hash.

used the md5 security class

it worked out quiet nicely for large files also.

for files of 3 - 10 GB used file splitting method. will post src code if you like.

---------- Post added at 02:00 PM ---------- Previous post was at 01:57 PM ----------



this is what i think is the best method for using c codes in other langs.




i think CRC32 is enough for this purpose.....:idea:
Garbage
Garbage #11
Jul 19, 2010 at 2:49 PM
i did not create any class of my own, just used it.

i did it for request of friend of mine (avid collector of hindi songs) who was having same mp3 file multiple times over the drive.

i did not publish it anywhere, i will upload it to RS with src,(tomorrow)
change as u like

but tell me if u do smthing interesting with it

I will still insist to host the project on some site. It will be helpful for others as well as you for issue tracking and improvement.
arpanmukherjee1
Jul 27, 2010 at 10:17 AM
now here is my code :: RS :: report if links broken

Setup::
RapidShare: 1-CLICK Web hosting - Easy Filehosting
MD5: 2B439A7732BE0B5E61BED21EBB033FDD


solution::
RapidShare: 1-CLICK Web hosting - Easy Filehosting
MD5: 462A1D05BCBEB912F9319674D5E28561

:bananana:
arpanmukherjee1
Jul 28, 2010 at 9:37 AM
:bump:

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
anybody dwnloaded it yet
Garbage
Garbage #14
Jul 28, 2010 at 8:35 PM
Will download and try tonight. Have to boot into Windows. :S
L
Jul 29, 2010 at 9:38 AM
:bump:

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
anybody dwnloaded it yet
downloaded it
trying out

---------- Post added at 09:38 AM ---------- Previous post was at 09:31 AM ----------

got the following error on rebuilding the solution
Error 1 Unable to find manifest signing certificate in the certificate store. FileSpider
arpanmukherjee1
Jul 29, 2010 at 7:38 PM
my bad... sorry ::: delete all files from ./Filespider/bin & Debug folder

if that dont work consult

Unable to find manifest signing certificate in the certificate store. (MSB3323) - SharpDevelop Community

& this

error MSB3323: Unable to find manifest signing certificate in the certificate store.
L
Jul 30, 2010 at 9:06 PM
my bad... sorry ::: delete all files from ./Filespider/bin & Debug folder

if that dont work consult

Unable to find manifest signing certificate in the certificate store. (MSB3323) - SharpDevelop Community

& this

error MSB3323: Unable to find manifest signing certificate in the certificate store.
changed the solution settings :D