Click here to Skip to main content
15,913,090 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# and C/C++ capabilities Pin
ali_reza_zareian27-Mar-06 20:31
ali_reza_zareian27-Mar-06 20:31 
AnswerRe: C# and C/C++ capabilities Pin
Bob Stanneveld27-Mar-06 21:17
Bob Stanneveld27-Mar-06 21:17 
QuestionAAC file format. Pin
temp555627-Mar-06 13:37
temp555627-Mar-06 13:37 
QuestionUsing ILMerge to embedd C++ DLL into C# EXE Pin
mikester22227-Mar-06 13:27
mikester22227-Mar-06 13:27 
AnswerRe: Using ILMerge to embedd C++ DLL into C# EXE Pin
Joel Lucsy27-Mar-06 15:38
Joel Lucsy27-Mar-06 15:38 
NewsRe: Using ILMerge to embedd C++ DLL into C# EXE Pin
leppie27-Mar-06 17:36
leppie27-Mar-06 17:36 
GeneralRe: Using ILMerge to embedd C++ DLL into C# EXE Pin
AB777127-Mar-06 22:19
AB777127-Mar-06 22:19 
AnswerRe: Using ILMerge to embedd C++ DLL into C# EXE Pin
mikester22228-Mar-06 3:33
mikester22228-Mar-06 3:33 
Hello Joel / All,

Thank you for your responses.

My C++ DLL POST2STK_LIB.dll is a .NET Assembly. It was created and compiled in Visual Studio .NET as a C++ project. The only real difference between it and my C# executable is the DLL contains unmanaged C++ code. But it is still a .NET Assy as best as I can tell. So it would seem there should be a way to use ILMerge to create the single executeable.

For what it's worth, since my dll contains unmanaged code, you can see in my "call" to run ILMerge, I had added the /zeroPeKind switch as my understanding is this is required to attempt to merge the unmanaged code DLL into the executeable. And, if this switch is not used, you get the following compiler error during the ILMerge process stating:

"Performing Post-Build Event...
An exception occurred during merging:
ILMerge.Merge: The assembly 'POST2STK_LIB' is not marked as containing only managed code.
(Consider using the /zeroPeKind option -- but read the documentation first!)"

Thanks again.

Mike
GeneralRe: Using ILMerge to embedd C++ DLL into C# EXE Pin
leppie28-Mar-06 6:34
leppie28-Mar-06 6:34 
GeneralRe: Using ILMerge to embedd C++ DLL into C# EXE Pin
mikester22228-Mar-06 6:42
mikester22228-Mar-06 6:42 
GeneralRe: Using ILMerge to embedd C++ DLL into C# EXE Pin
Member 1167734312-Oct-17 6:19
Member 1167734312-Oct-17 6:19 
QuestionMenu to Treeview Pin
i_martin_r27-Mar-06 12:41
i_martin_r27-Mar-06 12:41 
AnswerRe: Menu to Treeview Pin
Luis Alonso Ramos27-Mar-06 18:27
Luis Alonso Ramos27-Mar-06 18:27 
Questiondisplaying message box in ASP.NET and C#.net Pin
deepak127-Mar-06 10:53
deepak127-Mar-06 10:53 
AnswerRe: displaying message box in ASP.NET and C#.net Pin
George L. Jackson27-Mar-06 12:01
George L. Jackson27-Mar-06 12:01 
GeneralRe: displaying message box in ASP.NET and C#.net Pin
deepak129-Mar-06 9:52
deepak129-Mar-06 9:52 
AnswerRe: displaying message box in ASP.NET and C#.net Pin
Mark Greenwood27-Mar-06 12:07
Mark Greenwood27-Mar-06 12:07 
AnswerRe: displaying message box in ASP.NET and C#.net Pin
Sean8927-Mar-06 12:13
Sean8927-Mar-06 12:13 
AnswerRe: displaying message box in ASP.NET and C#.net Pin
albCode27-Mar-06 19:28
albCode27-Mar-06 19:28 
QuestionGather data.... Pin
KORCARI27-Mar-06 10:17
KORCARI27-Mar-06 10:17 
QuestionProperty window Pin
Le centriste27-Mar-06 9:50
Le centriste27-Mar-06 9:50 
AnswerRe: Property window Pin
Glaxalg27-Mar-06 12:03
Glaxalg27-Mar-06 12:03 
QuestionPlugin Engine (design question) Pin
MBursill27-Mar-06 8:27
MBursill27-Mar-06 8:27 
AnswerRe: Plugin Engine (design question) Pin
CWIZO27-Mar-06 21:00
CWIZO27-Mar-06 21:00 
AnswerRe: Plugin Engine (design question) Pin
Bob Stanneveld27-Mar-06 21:25
Bob Stanneveld27-Mar-06 21:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.