Click here to Skip to main content
15,909,518 members
Home / Discussions / C#
   

C#

 
QuestionHow to get logged user list from Active Directory Pin
indiaone27-Mar-06 17:10
indiaone27-Mar-06 17:10 
AnswerRe: How to get logged user list from Active Directory Pin
Dave Kreskowiak27-Mar-06 17:46
mveDave Kreskowiak27-Mar-06 17:46 
QuestionPocket PC Pin
hung_ngole27-Mar-06 15:40
hung_ngole27-Mar-06 15:40 
QuestionC# and C/C++ capabilities Pin
KaKa'27-Mar-06 15:26
KaKa'27-Mar-06 15:26 
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 
Hello,

1) I have a C# console application that currently is compiled and linked to an external C++ DLL file that contains unmanaged C++ code. This compiles and executes fine.

2) I would like to compile the C# application so that the C++ DLL is compiled into a single C# EXE application so that I no longer need to deliver the C++ DLL separately.

NOTE: My current files separately compiled files are:

C# EXE: POST2STK_Console.exe (size=20 KB)
C++ DLL: POST2STK_LIB.dll (size=41 KB)

I am trying to merge these together using ILMerge, but I keep running into the following issue:

If I compile with the following "Post-build Event Command Line" parameter set in my project's build properties as:

ilmerge /target:winexe /out:TEST.exe POST2STK_Console.exe POST2STK_LIB.dll /zeroPeKind

I do NOT get any compiler errors and get output of TEST.exe as a 25 KB size file. This makes no sense when the sum of orginal EXE and DLL files noted above = 61 KB. More importantly, if I try to run TEST.exe, I also get a runtime Exception "System.TypeLoadException" has occurred in TEST. Which from what I can tell is a result of the fact that the DLL was actually NOT compiled into the TEST executeable when ILMerge was run, even though there were no errors shown when this was done.

Anyone that can offer any assistance on how to get this to work, it would be greatly appreciated.

Thanks!
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 
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 

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.