User Profile

Collapse

Profile Sidebar

Collapse
arggg
arggg
Last Activity: Dec 30 '08, 09:27 PM
Joined: Mar 18 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • arggg
    replied to PNG tEXt Chunk
    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...
    See more | Go to post

    Leave a comment:


  • arggg
    replied to PNG tEXt Chunk
    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 :-\
    See more | Go to post

    Leave a comment:


  • arggg
    started a topic PNG tEXt Chunk

    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?
    See more | Go to post

  • arggg
    replied to Sharing instance
    in .NET
    Awesome Singleton did the trick! TY!
    See more | Go to post

    Leave a comment:


  • arggg
    replied to Sharing instance
    in .NET
    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...
    See more | Go to post

    Leave a comment:


  • arggg
    started a topic Sharing instance
    in .NET

    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
    Code:
    Config config = new Config()
    Auth login = new Auth(config)
    now the auth class
    Code:
    public Auth(Config config)
    {
     ....
    }
    public void checkAuth()
    {
    ...
    }
    How would I make config global to that...
    See more | Go to post

  • arggg
    replied to Different Hash
    in .NET
    Any ideas on what is going on?
    See more | Go to post

    Leave a comment:


  • arggg
    replied to Different Hash
    in .NET
    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;
    ...
    See more | Go to post

    Leave a comment:


  • arggg
    replied to Different Hash
    in .NET
    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.MD5CryptoServiceProvider
    ...
    See more | Go to post

    Leave a comment:


  • arggg
    replied to Different Hash
    in .NET
    I'm using C# MD5CryptoServic es
    See more | Go to post

    Leave a comment:


  • arggg
    started a topic Different Hash
    in .NET

    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...
    See more | Go to post

  • arggg
    replied to Index Error on file
    in .NET
    Nevermind I found it. The FOR should of been i < UpdatedFiles.Co unt()
    See more | Go to post

    Leave a comment:


  • arggg
    started a topic Index Error on file
    in .NET

    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
    Code:
    Index was out of range. Must be non-negative and less than the size of the collection
    However I don't know where it would be trying to access the collection UpdatedFiles over the array size.

    Code:
    try
                    {
                        lblStatus.Text = "Installing...";
    ...
    See more | Go to post

  • arggg
    replied to C# Updater
    in .NET
    awesome that did it! Thanks!...
    See more | Go to post

    Leave a comment:


  • arggg
    started a topic C# Updater
    in .NET

    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()
    ...
    See more | Go to post

  • arggg
    started a topic Auto Create Email Address

    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?
    See more | Go to post

  • arggg
    started a topic Auto Create Email Address

    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?
    See more | Go to post

  • arggg
    replied to C# Dll Messagebox
    in .NET
    AHHH I was not adding it as a reference. That did the trick! Thanks a bunch!!...
    See more | Go to post

    Leave a comment:


  • arggg
    replied to C# Dll Messagebox
    in .NET
    Cant use System.Windows. Forms in a library....
    See more | Go to post

    Leave a comment:


  • arggg
    started a topic C# Dll Messagebox
    in .NET

    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?
    See more | Go to post
No activity results to display
Show More
Working...