User Profile
Collapse
-
No what I am trying to do is take a PunkBuster screenshot which has information at the bottom of the screen which is also encoded in the tEXt chunk of the png file and grab that info. If I open the .png file with a text editor I can see in plain text the information I need in the tEXt Chunk. I see there is a plugin for Delphi which you just specify which chunk you want and it will grab the info without having to walk the file. I am looking for... -
Yes I am trying it in C#. I had tried basically what is on PngBitmapDecode r Class (System.Windows .Media.Imaging)
with like decoder.MetaDat a.Comment and such.
I tried opening the .png file with FileStream and StreamReader however it isn't reading the file fully when I convert it back to string so I am unsure how I should search the data for 'tEXtcomment'. I wish C# had png chunk methods :-\Leave a comment:
-
PNG tEXt Chunk
I'm trying to get the tEXt comment chunk from inside a png image. I can see the text if I open the .png file in a text editor however right clicking on it and going to properties doesn't show it there.
Am I just going to have to open the .png as a stream and go byte by byte or is there any references or methods that can obtain it for me? -
-
Thanks for the reply. This is a windows form application with 2008 express. I have a config class which serializies my settings to an .cfg file and deserializes them and I am trying to prevent constantly reading / writing the .cfg so I would like to keep them in the setters / getters and just pull the information from memory and load the config at startup and save at exit. However currently I have to reload them in every form. Can you give me...Leave a comment:
-
Sharing instance
I am trying to share an instance of config with my other classes however can't figure out how to get it out of the constructor
class1
now the auth classCode:Config config = new Config() Auth login = new Auth(config)
How would I make config global to that...Code:public Auth(Config config) { .... } public void checkAuth() { ... } -
-
It doesnt seem to be an issue with the code that gets the MD5 as I have another md5 program which runs as a shell on both my xp and vista machines and they both display different hashes for the same file which is the dll as well.
Here is the code for PB_Sock.dll
...Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.IO;
Leave a comment:
-
Here is my code
...Code:/* * MD5 Hash */ public static string GetMD5Hash(string pathName) { string strResult = ""; string strHashData = ""; byte[] arrbytHashValue; System.IO.FileStream oFileStream = null; System.Security.Cryptography.MD5CryptoServiceProviderLeave a comment:
-
-
Different Hash
I'm a bit confused on this one. I created a DLL in 3.5 .NET and on my Vista Laptop the md5 hash is different from the md5 hash on my XP Desktop. It is the EXACT same file as I downloaded it from the same location however they both run fine just the hash is different? Can anyone explain this?
I have my update program checking files hash's against an XML file so see if new updates are available and this is causing a problem as everytime... -
Nevermind I found it. The FOR should of been i < UpdatedFiles.Co unt()Leave a comment:
-
Index Error on file
When I run this if the file trying to be renamed / moved is the current file running to skip it. However I get an error that says
However I don't know where it would be trying to access the collection UpdatedFiles over the array size.Code:Index was out of range. Must be non-negative and less than the size of the collection
...Code:try { lblStatus.Text = "Installing..."; -
-
C# Updater
I created an auto update program to auto update my project. However when I run the updater it isn't updating any of the labels like lblStatus etc until the very end. I have tried removing the try { } however this does not resolve the issue. I know downloadfile is a block so it cannot multitask however I am waiting until the download is complete before changing any labels. Any ideas?
...Code:private void DoDownload()
-
Auto Create Email Address
Does anyone know of webhosting that will allow the auto create of email addresses (such as the ones that craigslist.com uses when a new item is setup to be sold) without me having to go into the webpanel and add them manually? -
Auto Create Email Address
Does anyone know of webhosting that will allow the auto create of email addresses (such as the ones that craigslist.com uses when a new item is setup to be sold) without me having to go into the webpanel and add them manually? -
AHHH I was not adding it as a reference. That did the trick! Thanks a bunch!!...Leave a comment:
-
-
C# Dll Messagebox
I have created a .dll that I am using in my .exe project however I would like to display information in the .dll in a messagebox from the dll. I did the [DllImport("user 32.dll")] and it still will not show the messagebox. Basically I need this for debugging the dll file to see what information it is getting/sending. Is it possible for .dll's to show messagebox's? Any ideas?
No activity results to display
Show More
Leave a comment: