Link to home
Start Free TrialLog in
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.
SOLUTION
Avatar of Rikin Shah
Rikin Shah
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dominicwong
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