|
Have a look into the ILMerge utility provided by Microsoft
I havent used it personally but I am under the impression that it will merge multiple dll's exe's into a single file.
post.mode = postmodes.signature;
SELECT everything FROM everywhere WHERE something = something_else;
> 1 Row Returned
> 42
|
|
|
|
|
I actually already tried it, but I cant seem to get it to work. I looked for a tutorial, but all it had was the commands for ILMerge. Thanks for the suggestion though.
Mike - I love to program!
|
|
|
|
|
Your way of having split up the application into modular pieces for maintainability is welcome. Since your only problem is shipping the same to your sister or somebody to test it out, you can do one thing:
(*) Zip the entire folder and send it out. They need to unpack the folder and run the EXE.
(*) Chances are that they just doubleclick the EXE alone in WinZip window itself. To workaround this, perhaps you can package all the files into a single setup.
NSIS Installer helps you build setup in a very easy way. You can give it a try.
Vasudevan Deepak Kumar
Personal Web: http://www.lavanyadeepak.tk/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
Try ILMerge. Not sure if its a standard program, but it'll do exactly what you want.
--
Joel Lucsy
|
|
|
|
|
I have an INI file that looks like this:
[section 1]
line0;argu1;argu2;argu3..etc
line0;argu1;argu2;argu3..etc
[section2]
Can anybody show me how can I read the section1,line 1 and extract argu3.
Thank you in advance
|
|
|
|
|
Look for the StreamReader class in System.IO . You can use the ReadLine method to read the file line by line and then use Split in on each line to get the semicolon separated values.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
That's a little too crude if you ask me. You also need to pay attention to what section you're in and you need to avoid commented-out lines, etc.
There are at least two options:
Write an ini reader/writer class using regular expressions and all that good stuff. I did this (but I can't post it here, because I did it for a company), because I also wanted it to be really fast (eg. reading all sections/attribute value pairs in one shot to a hash table).
Use the Windows API calls with Interop. This is much easier.
Matt Gerrans
|
|
|
|
|
|
Is the ini format necessary?
If not, consider using an XML file to hold your data. This can easily be read (and updated if necessary) using the functions/class available in the System.XML namespace.
As I example, if you had the following XML file:
<ini>
<section name="1">
<entry key="key1" value="abc">
<entry key="key2" value="def">
</section>
<section name="2">
<entry key="key1" value="ghi">
<entry key="key2" value="jkl">
</section>
</ini>
You would then have two options
1) Create a Schema for the XML file and then use the Framework SDK XSD tool to convert the schema to a csharp class. You can then desrialise the XML into an object and use the data within it.
2) Read the file into an XmlDocument, and uses Xpaths to read the data, for example :
if this is something that you might consider doing, post up a message and I will dig out some sample code
post.mode = postmodes.signature;
SELECT everything FROM everywhere WHERE something = something_else;
> 1 Row Returned
> 42
|
|
|
|
|
http://www.codeproject.com/csharp/aejw_ini_class.asp
|
|
|
|
|
I have a program that checks if file exist and if it does it reads the version as follows:
*********************************************
if(File.Exists("c:\\MyDLL.dll"))
{
FileVersionInfo VER = FileVersionInfo.GetVersionInfo("c:\\MyDLL.dll");
label9.Text = "MyDLL.DLL";
label10.Text = VER.FileVersion;
}
else
{
label1.Text = "MyDLL.DLL";
label12.Text = "File does not exist";
}
****************************************
The code works fine, the problem is that I have to repeeat this for every DLL in that folder.
Is there a better way to read all of the DLLs in a particular folder?
any help will be greatly appreciated
|
|
|
|
|
System.IO.Directory.GetFiles(<directory>, "*.dll")
|
|
|
|
|
there is nice implementation; take 5 mins to look into it:
http://www.csharpque.com/2012/04/process-dll-information-for-storage-sql.html
|
|
|
|
|
hi all
am a beginer in C# programing
so many of my friends told me that this site is the best way to enhancing my experience in programing
so please help me
and tell me
am now working from the MOC of Microsoft
so
#is there any good toturials that can provide me with the basics?:->
#is there any practices or quizes that can make me understand the concepts and ways of writing code in C#
waiting and hoping to recive an Answer
yours
MeDoOOO
MeDo
|
|
|
|
|
Buy yourself a good book. I used this one[^] and really liked it.
If you think you're going to buy a lot of books, look into O'Reilly Safari[^] or ACM's Professional Development Centre[^]. Both have online books sections for a set monthly fee.
If buying a book is not an option, there's tons of stuff available on the Web:
C# Tutorials[^]
And, don't forget all of the wonderful articles here on CP.
Jon Sagara
As you may presently yourself be fully made aware of, my grammar sucks.
Sagara.org | Blog | My Articles
|
|
|
|
|
|
i wanna drow curve in c# interface cuz i didn't know any thing about flash
|
|
|
|
|
Then search this site for examples. Several articles have been written pertaining to GDI drawing, including the drawing of curves and rounded rectangles, in C#, are found on this site.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Who is Jewish, the Trivia Game!
Judah Himango
|
|
|
|
|
You can try VG.net[^], it's soooooo cool!
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick
|
|
|
|
|
a want a function to resume if internet connection is disconnected
can any one help me
The C Lover ..
|
|
|
|
|
http://www.pconsulting.com.au/unrealdownload/
Live Life King Size
Alomgir Miah
|
|
|
|
|
|
Hi all,
I have a custom control, derived from System.Windows.Forms.UserControl. I'm using AutoScroll in this control to provide scrolling. I've overridden OnPaint in my control to do the drawing of the control. When the user scrolls, an Invalidate() is done on the control with the area that is newly exposed so that the invalidated area is as small as possible (this is done by the framework, not by me). Now my problem is that I want to update more of the control than just the part that is scrolled into view. I see two possibilities:
- Update the whole control when the user scrolls. Unfortunately I don't see a way to tell ScrollableControl (the class that UserControl is derived from that provides scrolling capabilities) to update the whole control when scrolling; I also don't see a way to get to the scrollbars directly to connect to a Scrolled() event (as confirmed in the windows.forms Petzold).
- Change the invalidated region from within the OnPaint handler. If I could find a way to tell the control to redraw everything and not just the rectangle that was passed to Invalidate() I could do that at the top of my OnPaint() member and be done. But no matter what I try, it seems I cannot update the invalidated area without calling Invalidate(), which will also send a WM_PAINT - I don't want since I'm already in OnPaint and that will create an infinite loop! The hack I came up with is something like this:
private bool m_DoingSecondOnPaint = false;
protected override void OnPaint(PaintEventArgs pea)
{
if (!m_DoingSecondOnPaint) {
m_DoingSecondOnPaint = true;
Invalidate();
} else {
m_DoingSecondOnPaint = false;
}
... do rest of drawing here ...
}
but as you can see this means that all the drawing code is executed twice for every time I want to draw the control. Is there a better way to do this?
cheers & thanks,
roel
|
|
|
|
|
Hello,
I have:
this.styleStages.GridColumnStyles["Name"]
is there a property, that will allow me to center the Column Headers in
my datagrid? If I use Allignment property right after ["Name"], it will just center the values for the column. Any ideas?
Thank you
|
|
|
|
|
Yeah, check out the format section of the property builder in design view. You can set the alignment of the header, item and footer.
"People who never make mistakes, never do anything."
My blog
http://toddsnotsoamazinglife.blogspot.com/
|
|
|
|