Search:
Type: Posts; User: ibennz
Search:
Search took 0.04 seconds.
-
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.
-
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...
-
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.
-
Also tried with a simple vbs ;
No error, but nothing added on startup.
-
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...
-
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...
-
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...
-
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.
...
-
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.
-
String builder prob. That would be the best choice.
-
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.
-
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...
-
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...
-
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...
-
Because I do not want to stick in bytes. I want to return it as string. Is it a bad thing tho ?
-
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...
-
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...
-
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.
-
"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...
-
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...
-
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.
-
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...
-
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.
-
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.
-
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...
-
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.
-
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...
-
I wasnt sure, Still most of paths aren't working with params on compiler. Hopefully this thread will help people.
-
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.
-
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.
-
The other solution would be to use the default C drive path, But I think that would need admit rights.
-
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...
-
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.
-
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.
-
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...
-
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...
-
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...
-
-
Hi all ,Im trying to reduce string repetitions. Keeping same order to not alterate text. So exemple :
aabbbbbcccaaaa
Would be :
a2b5c3a3
-
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...
|
Click Here to Expand Forum to Full Width
|