|
That's a bit disappointing, but alright
|
|
|
|
|
What kind of information do I need to provide about the program that could help you to give me an advice?
|
|
|
|
|
Well, where this value is stored would be once piece of information. Is it in a file somewhere or is it hardcoded in the source code?
|
|
|
|
|
I can't say for sure, but I think it's located in the .exe file or in the ICSharpCode.SharpZipLib.dll file, although i tried editing them with a hex editor and couldn't find such value (it could be there, but not written in plain text).
|
|
|
|
|
OK, there's no way you're changing that date.
You obviously don't have the source code and without it your going to find it extremely difficult to FIND the date let alone change it.
|
|
|
|
|
Well, basically it boils down to needing
1. What the program does
2. What it is that you want to change
3. The source code for the program
Going back and forth on a message board like this, it would be very difficult. I would recommend you locate someone you can work with over email and telephone or face to face.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I'm sorry that I didn't give much details, but that's the first time for me having to do such thing. This program is intended to edit a football computer game. With it you could change most aspects of it, including making new players, teams and also the time when a season starts. The thing that I need to change is the starting time of the season. But since this game is old (2007), you could only change the starting time of the season between 1.1.2006 and 28.12.2007. And I want to make it possible to set later years - 2008, 2009... 2015 so that it's up to date with real life. And about the source code how can I see it? I hope you understand what I mean.
|
|
|
|
|
SharpZipLib is a well known library to handle zip streams for compression/decompression.
It's unlikely your problem resides in this dll.
If you do not have the source code, then you may have to use a decompiler to get it back from the assembly. But beware of the fact that reverse engineering is in general not allowed; there's a great chance that, by doing this, you would break a copyright.
And, if the game executable has been signed, you have no chance to alter it without breaking it completely.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
|
|
|
|
|
Thank you for the information. Do I have to decompile the .exe file and which decompiler would you recommend? Also, I don't want to edit the game executable itself, but the .exe of the program that is created for editing. The editing program that I want to change is freeware and if I change it, it will be for personal use only so I don't think this should be a problem.
|
|
|
|
|
It's up to you to search for the terms of usage of this executable.
There are some decompilers available, either free or not. Here's a non-exhaustive list:
ILSpy[^] (free)
dotPeek[^] (free)
JustDecompile[^] (free)
.NET Reflector[^] (paying)
Dis#[^] (free until 7 .NET Framework assemblies decompilations)
I can hardly advise you for these as I've never done any decompilation. Good luck
There are two kinds of people in the world: those who can extrapolate from incomplete data.
|
|
|
|
|
Thank you again for the links! I'll try them and hope things work out for me
|
|
|
|
|
You're welcome
There are two kinds of people in the world: those who can extrapolate from incomplete data.
|
|
|
|
|
Do you have the source code for the program ?
If you don't, and you can't get help from wherever the program came from, then it's probable the authors/company did not intend for you to change that value. We are not going to help you hack some code.
If you have the source, then you'll need to develop some skills in programming to find the place where the date is set, and alter it. Start by searching the code for every use of keywords like "DateTime" and "TimeSpan."
«To kill an error's as good a service, sometimes better than, establishing new truth or fact.» Charles Darwin in "Prospero's Precepts"
|
|
|
|
|
I opened the .exe file and ICSharpCode.SharpZipLib.dll with a hex editor and found these instances in both files. Does this mean that the source code is located there?
|
|
|
|
|
You obviously have no idea what source code is. It's the original text language that is run through a compiler to get the resulting .EXE and .DLL's you're looking at in a hex editor. There are disassemblers that will show you a decent approximation of the source code but they won't do you any good as you can't modify the code in them.
|
|
|
|
|
I have used a windows application, that shows a battery meter progress bar (the same thickness as the taskbar), instead of a notify Icon. I want to know if this is possible in c#, and if so, how can I do it?
I would like to display a progress bar, the same thickness as the taskbar, next to the clock.
If someone could show me how to do this with some sample code, I would really appreciate it.
Thanks.
What I want is to display a progress bar, that it's percentage gets updated the same time the progress bar in my main form gets updated.
A solution, from the top of my head, would be to take a snapshot of the main progress bar continuously and use that as an icon.
This is an example of what I want (The battery meter that shows 98%):
http://superuser.com/questions/130889/how-can-i-turn-off-the-battery-meter-on-my-thinkpad-t500[^]
modified 6-Mar-15 12:59pm.
|
|
|
|
|
There are examples on showing a NotifyIcon. A progressbar could be made by simply changing the picture.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
The solution I use is the same as the windows file copy, and browser downloads: show the progress as part of the task bar icon - which windows can do automatically from 7 onwards.
If you have a look at this https://www.nuget.org/packages/Microsoft.WindowsAPICodePack-Shell/[^] it makes it really easy!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I looked at the website, and installed the code pack, but I still don't know how to use it.
Can you please tell me where can I find some tutorial on how to use this?
Thanks.
|
|
|
|
|
|
|
I viewed the examples, and the only thing that I could find was an application that displays its progress in the icon that appears in the taskbar. That's not exactly what I'm looking for.
What I'm looking for, is a way to display an actual progress bar in the notification area, besides the clock, and the only example that I saw that came close to it was the taskbar demo.
Please tell me if this can be done.
See example:
|
|
|
|
|
Just a guess on my part here but I think you need to look adding a new toolbar to the task bar. Like the quick launch, windows search, links and address.
You are going to want to actually display something on the task bar.
I found this on CodeProject: Windows 7 Taskbar C# Quick Reference.[^]
I'm sure that this is detailing the actual icons on the task bar but it might be a start.
Jack of all trades, master of none, though often times better than master of one.
|
|
|
|
|
What I need is to use a deskband, in order for me to place a control in the taskbar, the only thing is I don't know how to.
Can someone please help me, by telling me how to use a deskband?
Thanks.
|
|
|
|
|
I have used an animated tray icon in years past. With images for every 10% or something then change the icon when the progress bar gets to those levels. 10% might be kinda tight for a tray icon.
Try this link @ StackOverflow for a couple of links.[^]
I didn't look at the links just pulled a quick search.
HTH
Jack of all trades, master of none, though often times better than master of one.
|
|
|
|