|
Hi,
I am a newbie in .Net,
can u tell me how to use the ILMerge utility
i have downloaded the utility from Microsoft's site.
I am using VS2003
Thanks
Pramod
|
|
|
|
|
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
|
|
|
|
|
mikester222 wrote: 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 did it work? AFAIK there is now way to do this, if you however find an answer, be kind enough to share Thanks
|
|
|
|
|
Hi Leppie,
It compiles and ILMerge "works" in so much as it does not give any errors during compile and build of the merged EXE. BUT... what does not "work" is the actual EXE created does not contain the DLL's code embedded within it as described in my original post above. As you say, there may be no way to do this, that is what I'm trying to understand.
Thx.
Mike
|
|
|
|
|
To "ilmerge" unmanaged DLLs consider bxilmerge, it's not github
https:
|
|
|
|
|
Hi,
How can I do to generate a treeview that contains all the Menus (including MenuItems too) of my MDI Form ?
Thanks.
|
|
|
|
|
There is no way to do it, but manually. You have to enumerate all MenuItem s and their children and add them as nodes.
Luis Alonso Ramos
Intelectix
Chihuahua, Mexico Not much here: My CP Blog!
|
|
|
|
|
I want to display messagebox to the users in the asp.net webpage. These message box should have the Yes,No,Cancel button in them which returns values for what they click. eg if they click yes then return like 1.
Deepak Anish
Computer Programmer
Maxumise Fiji Ltd
Suva, Fiji
|
|
|
|
|
The UI of ASP.NET is handled by the browser most of the time. The window object of the DOM has an alert method: alert("Hello, World"); It has a single button that lets the user close the dialog.
|
|
|
|
|
I need to display the confirmation message box not alert. I am using:
Response.Write("window.confirm('Moving next will result in loss of unsaved data!')");
but this doesnt give results. here either you click Ok or Cancel on the massage it does the same operation it does not check what the user clicked.
Deepak Anish
Computer Programmer
Maxumise Fiji Ltd
Suva, Fiji
|
|
|
|
|
Ok well you have two choices here - either put up with using Window.Confirm in javascript - which gives you an Ok or Cancel property
or
You can create a web page which you open as a Modal web page (showModalDialog in Javascript) and have that present the information to the user with the three choices - you can then have that return the information to you.
|
|
|
|
|
|
Response.Write("alert('hello world')");
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
Hi.Im actually working in a program for ploting Bode functions using ZedGraph user control.The main point is to gather data from graph (like coordinates of different points)and show them on a table.Anybody can show me how can I do this or maybe reference me any tutorial?
Best regards
|
|
|
|
|
I would like to have a designer property which is a collection of a complex object, a little like the Columns property for the ListView control.
I have looked for articles but to no avail.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
|
I am attempting to add plugin support to a program I wrote.
I have found many articles on Code Project, each showing how you can create objects from an assembly loaded at runtime. This is great, however, my original design made extensive use of inheritance.
Now I'm trying to figure out how I can expose a "parent class" to a plugin.
For example: Button inherits from Surface. Surface needs to be something that can be re-written by plugin developers, so that Button will now inherit the version of Surface in the plugin.
Can this even be done?
-Mike.
|
|
|
|
|
I don't think you can do that (or even want to do that; plugins should have very limited set of functionality avalible to them; inserting them into the core of a aplication is not the best choice...)...
But please correct me if I am wrong.
--------------------------------------------------------
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hello,
This can be done, although it is not an easy road you want to travel.. Here late binding is not enough, but you also need to create code at runtime. I don't know exactly how to do this. Also several problems arise: what if more than one replacement for the surface class is found? What to do with errors that the plugin might cause? Etc.
But I wonder, why do you want to give complete control over your application to some third party?
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
FillEllipse and FillRectangle don't seem to work with a height or width of 1. That's too bad. I need it to draw a line or pixel when one or both are 1. It seems I have to put extra code in there just for that.
"If only one person knows the truth, it is still the truth." - Mahatma Gandhi Web - Blog - RSS - Math
|
|
|
|
|
If memory serves me correctly, the fill functions won't touch the border; so hypothetically, if after you FillEllipse, you DrawEllipse with a pen like your brush, it should create the necessary shape.
Then again, I haven't done GDI in years.
--
I've killed again, haven't I?
|
|
|
|
|
I'll add DrawEllipse. Currently, I'm doing fill without it.
"If only one person knows the truth, it is still the truth." - Mahatma Gandhi Web - Blog - RSS - Math
|
|
|
|
|
|
If that's the case, why does a height or width of two work? Aren't they drawing both sides with a minimum of 1 pixel each?
"If only one person knows the truth, it is still the truth." - Mahatma Gandhi Web - Blog - RSS - Math
|
|
|
|
|
I've got a class that uses a System.Threading.ReaderWriterLock .
class MyClass
{
int myReadLockCount;
int myWriteLockCount;
void DoSomeReads()
{
this.AcquireReaderLock();
try
{
...
}
finally
{
this.ReleaseReaderLock();
}
}
void DoSomeWrites() {...}
void AcquireReaderLock()
{
myRWLock.AcquireReaderLock(...);
Interlocked.Increment(ref myReadLockCount);
}
void AcquireWriterLock() {...};
void ReleaseReaderLock() {...};
void ReleaseWriterLock() {...};
}
During the course of running and debugging this application, I receive scenarios where myWriteLockCount variable is greater than 1! How can this be; isn't ReaderWriterLock supposed to allow one writer at a time?
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: How 'bout a little guitar now?
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|