Search:

Type: Posts; User: ibennz

Page 1 of 8 1 2 3 4

Search: Search took 0.04 seconds.

  1. Thread: Eof

    by ibennz
    Replies
    3
    Views
    581

    VS 2008 Re: Eof

    Well thats kinda lame, how people will use EOF then ? There is no way ? I guess this way to store settings is 100% flagged as virus. I'll have to use my.settings or something else.
  2. Thread: Eof

    by ibennz
    Replies
    3
    Views
    581

    VS 2008 Eof

    Hi guys , I've been messing lately with codedom and reflection. Lets say I compile my code and I want to display a messagebox but the message data is written as bytes at the end of my executable...
  3. Replies
    6
    Views
    2,000

    VS 2008 Re: regsavekey

    I'm using norton, a simple regedit is detected as "heuristic". I know its false positive, Im only willing to edit HKCU, thats why i'm looking for an alternative way such as apis or vbs.
  4. Replies
    6
    Views
    2,000

    VS 2008 Re: regsavekey

    Also tried with a simple vbs ;


    No error, but nothing added on startup.
  5. Replies
    6
    Views
    2,000

    VS 2008 Re: regsavekey

    It's quite simple , anything that isn't signed trigger most of antivirus (with managed code like : messing with filecopy, mess in regedit or writebytes) . I'm doing some basic application that...
  6. Replies
    6
    Views
    2,000

    VS 2008 [RESOLVED] regsavekey

    Hi everyone , I've been messing with this api : http://www.pinvoke.net/default.aspx/advapi32.RegSaveKey

    And I know you have to open it first with RegOpenKey.

    I tried few solution but yet I...
  7. Replies
    0
    Views
    528

    VS 2008 Quick question about packers

    Hi everybody, I was wondering if packers drop files when you open a packed file. I'm using mpress, all work fine with native , but when i try run a managed in memory using reflection it throw : "File...
  8. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    Finally I made it, I've read all bytes one by one as string. Then from there compress the string. It's not the best compression ever, but I still loose like 65% of the original size. Thanks again.
    ...
  9. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    I'm aware, I looked while compression. Trying to avoid storing byte arrays. I'd prefer to use brute text. Thats for my personal purpose tho. Ill keep working on.
  10. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    String builder prob. That would be the best choice.
  11. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    Well , sorry if I explain kinda badly. I just want to store here byte compressed as string. I keep getting bigger files when I decompress and save it.
  12. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    Oh for allah's sake ... I dont think i need to convert to text when im compressing , I just want to return the compressed data as text !!! Thats a part of my application , I do not want to return it...
  13. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    At first I was compressing text, but it ended up bloated. Now I'm trying what you said : Straight compression

    And return the data as text. Hopefully smaller than : convert.frombase64

    Then after...
  14. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    Lets make it simplier , I do not want to return byte arrays. My main point here is to reduce a text size. Thats why I used gzip , I read it was possible. You helped me alot since I didnt really knew...
  15. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    Because I do not want to stick in bytes. I want to return it as string. Is it a bad thing tho ?
  16. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    Well you can read bytes as string, or use convert to read the whole thing as text. My approach was simply to compress that actual text. That's what I've been trying to explain , I read it was...
  17. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    Yeah I know , but I just need to reduce the text lenght (size). And the text would be the exe. I'm quite lost, I read you can compress string but as you said it bloat it. (and I saw it myself, the...
  18. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    I was aware, but I thought I could use gzip stream to compress it more. As I see it doesn't work as expected. Ill have to go on plan B, Such as gather repetitions to loose some lenght. Thanks.
  19. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    "the bottom of the hole" ? You read it up there, I want to make the text smaller. There is many way (I was trying to avoid this one) such as phase the text and Join repetitives chars like this: aaaa...
  20. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    If you're not here to help or give me documents about the subject, I'd tend to say : be quiet and mind your own stuff.

    Did you even read before replying ? I want to compress TEXT on runtime. Then...
  21. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    My bad, explained myself wrong. I want to read the bytes as string and compress them on runtime. Then decompress and save the original file at same size as the begining.
  22. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    I didnt knew, But I need to compress text. I dont want to save as .zip, I just want it smaller then save it at same size. I had an idea about reading each byte as text but that would produce an huge...
  23. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    I'd prefer to have brute text. But If I can compress as byte then read them as string (and the string is smaller), that would also do it. I just want smaller text than the one I get from convert.from.
  24. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    Read a file by bytes, convert them as string. Compress the string. Decompress the string, convert to byte and save the exe to the save exact size.
  25. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    Thats what I ended with, it actually doesn't compress the file but pump his size from 170ko to 4,5mo . That random string convertion in the original class must have helped in the compression I'd...
  26. Replies
    39
    Views
    3,214

    VS 2008 Re: Convert

    From that point, you're totally right. I'll recode something more fluid and post see if it will do the job. I used that for my other project and I didnt needed to reconvert to bytes after.
  27. Replies
    39
    Views
    3,214

    VS 2008 [RESOLVED] Convert

    Hi all , I've been facing an annoying issue using compression and convertion. There is my full code :



    It throw : error non base64 char.

    Tho , when I copy the final output text to a...
  28. Thread: [RESOLVED] Path

    by ibennz
    Replies
    12
    Views
    1,273

    VS 2008 Re: Path

    I wasnt sure, Still most of paths aren't working with params on compiler. Hopefully this thread will help people.
  29. Thread: [RESOLVED] Path

    by ibennz
    Replies
    12
    Views
    1,273

    VS 2008 Re: Path

    Nope , throw error about icon path is wrong or file is corrupted. For now work proprely. Just wondering what would happen if the pc name have spaces in.
  30. Thread: [RESOLVED] Path

    by ibennz
    Replies
    12
    Views
    1,273

    VS 2008 Re: Path

    Digging about these, I noticed that when you use Environment.GetEnvironmentVariable("TEMP") , it shorten documents and settings to DOCUM1~. So that removes spaces. Thanks all.
  31. Thread: [RESOLVED] Path

    by ibennz
    Replies
    12
    Views
    1,273

    VS 2008 Re: Path

    The other solution would be to use the default C drive path, But I think that would need admit rights.
  32. Thread: [RESOLVED] Path

    by ibennz
    Replies
    12
    Views
    1,273

    VS 2008 Re: Path

    Sure, its the default one in codedom :



    Extra info ;

    So yeah , as you see params are separated by spaces. Exemple I copy the ico to temp files and the user pc name have a space. I think it...
  33. Thread: [RESOLVED] Path

    by ibennz
    Replies
    12
    Views
    1,273

    VS 2008 Re: Path

    Yeah I'm actually thinking to copy it to temp file. But Like i've said , I dont know if the user can set his computer name to : This[space]Is[space]My[space]computer
    That would also corrupt it.
  34. Thread: [RESOLVED] Path

    by ibennz
    Replies
    12
    Views
    1,273

    VS 2008 Re: Path

    Not really, Since any space wouldnt work. Codedom options are separated with spaces. So Like i've said, any folder or subfolder with a space in would corrupt the path.
  35. Thread: [RESOLVED] Path

    by ibennz
    Replies
    12
    Views
    1,273

    VS 2008 [RESOLVED] Path

    Hi all , I have a little problem with paths. I want to embed an icon in native resources using codedom (I dont want to use any icon injector , their way to stick icon in native flag the app as...
  36. Replies
    2
    Views
    739

    VS 2008 Re: Native resources

    Thats basically what I do , open my string, write in the main assembly (compiler) and embed it via codedom params. That's not what I'm looking for. I was looking for native (win32) resources, not...
  37. Replies
    2
    Views
    739

    VS 2008 Native resources

    Hi all, I'd like to know how embed a native resource in my codedom compiler. I want to save a text file or a picture into win32 resources and embed it to my codedom builder. Then once its built, run...
  38. Replies
    5
    Views
    852

    VS 2008 Re: String reduce

    Thanks ! that work fine
  39. Replies
    5
    Views
    852

    VS 2008 [RESOLVED] String reduce

    Hi all ,Im trying to reduce string repetitions. Keeping same order to not alterate text. So exemple :


    aabbbbbcccaaaa

    Would be :


    a2b5c3a3
  40. Replies
    0
    Views
    1,069

    VS 2008 Adding resources dynamically (CodeDom)

    Hi all , I've been wondering how I can add custom ressources to my codedom builder. I have some data to store in but I'd like to avoid to add the default format which is : .resource

    Is there a...
Results 1 to 40 of 284
Page 1 of 8 1 2 3 4



Click Here to Expand Forum to Full Width