Search found 2111 matches

by JHPJHP
Mon Oct 21, 2013 3:58 pm
Forum: Coding Questions
Topic: How to compress with zlib
Replies: 84
Views: 28961

Re: How to compress with zlib

Ok, a whole new approach. Thunder93 or skywalk can you confirm the following with me?.. Please download my DLL version of the code (a couple posts back). Next if you don't already have it (but I bet you do) download and install GIMP: http://www.gimp.org/ . This next part you will probably need; down...
by JHPJHP
Mon Oct 21, 2013 11:05 am
Forum: Coding Questions
Topic: PLay Movie Full Screen DirectX ???
Replies: 10
Views: 3719

Re: PLay Movie Full Screen DirectX ???

Just some observations:

By only changing this part of the code - it plays:

Code: Select all

OpenScreen(500, 500, 16, "", #PB_Screen_WaitSynchronization)
Change this part as well and it plays with less distortion: :P

Code: Select all

ResizeMovie(0, 0, 0, 500, 500)
by JHPJHP
Mon Oct 21, 2013 8:21 am
Forum: Coding Questions
Topic: How to compress with zlib
Replies: 84
Views: 28961

Re: How to compress with zlib

No it's not corrupt if it's producing a file with a matching Hash; well it is to your program... I'm guessing your program requires a certain type of compression. You can try modifing the WindowBits parameter - some possibilities: *Payload = DeflatePayload(*Input, 15 | #ENABLE_GZIP) *Payload = Defla...
by JHPJHP
Mon Oct 21, 2013 7:57 am
Forum: Coding Questions
Topic: How to compress with zlib
Replies: 84
Views: 28961

Re: How to compress with zlib

Hi moob,

Can you download it again and run it in debug mode... let me know if you get a Hash MATCH?
- I included a Hash Fingerprint comparison
- run it exactly as is, using the supplied DLL
by JHPJHP
Mon Oct 21, 2013 5:07 am
Forum: Coding Questions
Topic: How to compress with zlib
Replies: 84
Views: 28961

Re: How to compress with zlib

Hi moob, Updated Code - zlib1.dll included - MD5 Fingerprint Hash comparison included - original Structure restored (I believe the DLL is 32bit only) - unzip folder -- run: test.pb (debug mode) Note: LengthToWrite = DeflateBound(@strm, LengthToRead) / 20 - this setting is for testing only, you may n...
by JHPJHP
Sun Oct 20, 2013 9:39 pm
Forum: Coding Questions
Topic: [NAILED] C# code conversion help needed
Replies: 21
Views: 6728

Re: C# code conversion help needed

Nice catch Danilo :!:... I'll have to revisit some of my older code - I'm always leaving the optional Flag out, but it makes sense to support Unicode.

Cheers!
by JHPJHP
Sun Oct 20, 2013 9:36 pm
Forum: Coding Questions
Topic: [NAILED] C# code conversion help needed
Replies: 21
Views: 6728

Re: C# code conversion help needed

I just wanted to make sure you patted yourself on the back as well. :wink:
by JHPJHP
Sun Oct 20, 2013 9:34 pm
Forum: Coding Questions
Topic: [NAILED] C# code conversion help needed
Replies: 21
Views: 6728

Re: C# code conversion help needed

Yes, look at my post - with your code... the results are identical, at least on my system. PureBasic 5.20 32Bit - Windows 7 64 bit - No Unicode.
5b55b45b2d82f0c8c60beb29b546a7d4
5b55b45b2d82f0c8c60beb29b546a7d4
by JHPJHP
Sun Oct 20, 2013 9:18 pm
Forum: Coding Questions
Topic: [NAILED] C# code conversion help needed
Replies: 21
Views: 6728

Re: C# code conversion help needed

Glad it all worked out... Not diminishing Danilo's great bit of code conversion, but you did notice that your previous solution / post worked - right?
by JHPJHP
Sun Oct 20, 2013 9:09 pm
Forum: Coding Questions
Topic: How to compress with zlib
Replies: 84
Views: 28961

Re: How to compress with zlib

Thunder93 your Structure works great, but so did all the others... moob is using PureBasic 32bit; we also had partial success when he compressed a text file - so the problems now are just confusing?

Did you test the file he posted... what were your results?
by JHPJHP
Sun Oct 20, 2013 7:54 pm
Forum: Coding Questions
Topic: [NAILED] C# code conversion help needed
Replies: 21
Views: 6728

Re: C# code conversion help needed

Retest your last post... JOY!?! Procedure MD5FingerprintBin(Hex.s, *MD5Bin) For x = 0 To 31 Step 2 PokeB(*MD5Bin + x / 2, Val("$" + Mid(Hex, x + 1, 2))) Next EndProcedure *MD5Bin=AllocateMemory(16) MD5FingerprintBin("b0f772d55207e70c34cf3ea63d7dc0dd", *MD5Bin) bString.s = "p...
by JHPJHP
Sun Oct 20, 2013 7:40 pm
Forum: Coding Questions
Topic: How to compress with zlib
Replies: 84
Views: 28961

Re: How to compress with zlib

One more thing to try: Change your code to the following: *Payload = DeflatePayload(*Input, -15) *Output = InflatePayload(*Payload, -15) Don't worry that the compressed .dds file cannot be opened like a .gz file... this is raw deflate. - the inflated file should be identical to the original - refer ...
by JHPJHP
Sun Oct 20, 2013 7:01 pm
Forum: Coding Questions
Topic: [NAILED] C# code conversion help needed
Replies: 21
Views: 6728

Re: C# code conversion help needed

Yes your correct about the Null character, but it didn't make a difference... But reading the documentation, and keep in mind that I might be misinterpreting it, the password is not being converted to binary? // extract md5 string from the challenge sentence // convert szMD5Challenge to binary // ge...
by JHPJHP
Sun Oct 20, 2013 5:56 pm
Forum: Coding Questions
Topic: [NAILED] C# code conversion help needed
Replies: 21
Views: 6728

Re: C# code conversion help needed

Hi AndyMK, According to the documentation you provided - it's password + challenge... your post indicated the opposite. // get md5 of the password + challenge concatenation Updated my previous post, but still not working... Would you have the hash or binary conversion for "password" or the...
by JHPJHP
Sun Oct 20, 2013 2:59 pm
Forum: Coding Questions
Topic: [NAILED] C# code conversion help needed
Replies: 21
Views: 6728

Re: C# code conversion help needed

Try the following - inspired from: http://forums.purebasic.com/english/viewtopic.php?p=98724 - not sure if I have all the correct parts moving in the right direction, but it should be a start Procedure MD5FingerprintBin(*Buffer, bLength.i, *MD5Bin) Hex.s = MD5Fingerprint(*Buffer, bLength) For x = 0 ...