Avatar of dominicwong
dominicwong
 asked on

What is the advantage of 'Integrate C project into C# project' vs 'Import DLL into C# project'

Hi experts
I have a C# project that needs to call a method (already) implemented in a C project.

There're two possibilities I could think of.
1. Integrate the C project into the C# project.
2. Build the C project into a DLL, and the C# project imports the DLL.

But I understood approach #1 is also effectively turning the integrated C project into a DLL.
It seems to me there is no benefit from approach #1. Is my understanding correct? Thanks.
C#.NET Programming

Avatar of undefined
Last Comment
dominicwong

8/22/2022 - Mon
SOLUTION
Rikin Shah

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
QuinnDex

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
dominicwong

ASKER
Thanks rikin_shah and QuinnDex.

Would you have any idea to my other DLL related question please:
https://www.experts-exchange.com/questions/28297745/Mysterious-exception-BadImageFormatException-from-an-un-used-DLL-in-C-project.html
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck