Page 2 of 4

Posted: Tue May 30, 2006 10:53 am
by DoubleDutch
Gurus? :lol:

I'm just an "Enthusiast" ;)

Posted: Tue May 30, 2006 1:52 pm
by ts-soft
I have added the changes from DoubleDutch to the download

In the moment, i can't implement the unicode support, it works only one of this, unicode or ascii. Don't know :oops:

Posted: Tue May 30, 2006 2:35 pm
by Dare
Hi ts-soft, sorry for the bum steer.

I'll have another look, but will only advise you (via PM) if I think I have something solid.

BTW, where did it go bad? Not finding the file? Saving rubbish? The encryption? Everywhere? :)

Posted: Tue May 30, 2006 2:43 pm
by ts-soft
Dare wrote:Hi ts-soft, sorry for the bum steer.

I'll have another look, but will only advise you (via PM) if I think I have something solid.

BTW, where did it go bad? Not finding the file? Saving rubbish? The encryption? Everywhere? :)
No finding the file, only filename, but no size and so on.

If have also tested as
procedure foo()
endprocedure

procedure foo_Unicode()
endprocedure

but nothing work correctly :o

Posted: Tue May 30, 2006 2:53 pm
by Dare
ts-soft wrote:but nothing work correctly :o
Ack. Sorry, my bad. I must have had a lucky combo.

I will have another look. If I find a way I will PM you but otherwise I won't waste your time with half-baked attempts.

Posted: Tue May 30, 2006 4:53 pm
by ts-soft
I will also look, i have more libs with problems in unicode or thread mod. It's not so easy.
But it's time to find the best solution :wink:

Posted: Tue May 30, 2006 5:07 pm
by Dare
ts-soft wrote:But it's time to find the best solution :wink:
Yes, i agree. PB4 opens lots of doors (or makes them easier to go through). But some parts are slippery little beggers!

BTW, I can't get that codesnip to not work. I think I have a mindset and I must be working to that mindset. Which is a worry. Ignorant of my ignorance. :)

Posted: Tue May 30, 2006 5:32 pm
by ts-soft
@Dare
Please, more simple english, i can't translate this :oops:

Posted: Wed May 31, 2006 2:37 am
by Dare
Sorry ts-soft!

I was agreeing that now is a good time to learn the tricks with unicode and threadsafe.

Also, I meant I can't make the unicode/ascii Dbin snippet crash, but that may be because I am thinking one way and coding and testing that way. I need to learn to think in another way.

Your English as posted here is good enough that I forget you're not an English speaker. Sorry again.

Posted: Wed May 31, 2006 4:51 pm
by ts-soft
my english is so bad, mostly i use an translator :)
but phrases, slang and so on, don't understand.

Posted: Sun Jun 11, 2006 3:12 pm
by ts-soft
DBin Packer.exe available. See here: http://www.purebasic.fr/english/viewtop ... &start=105

Posted: Sun Jun 25, 2006 9:45 pm
by Shannara
Hellos, just reporting some bugs ...

Three bugs really ...

in the manual for DBin_ command ...
#Image=0
Image=DBin_("MyBin","images\PBLogo.bmp")
If Image
CatchImage(#Image,Image)
Else
MessageRequester("Error","Image not Found in DBin")
End
EndIf
If OpenWindow(0,0,0,400,100,"DBin Test",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
If CreateGadgetList(WindowID(0))
ImageGadget(1,0,0,300,100,UseImage(#Image))
EndIf
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
The "key" param for the DBin_ command is required. Thus the example above does not work :)

Also ...

the pb compiler will provide the following error when using the command with a key param even though it doesnt have one ..
POLINK: error: Unresolved external symbol '_PB_StringBasePosition'.
POLINK: fatal error: 1 unresolved external(s).
And ...

When creating a dbin file with encryption, it does not compress. It only compresses when there is no encryption.

However, the above bugs show up in the PBOSL version of the DBin library, if thats not the newest, is there an update? Plus the PBOSL version is missing it's source so I couldnt make any comparison. Ah well. The one in this thread doesnt contain these bugs? I'll check this one out.

Hope this helps.

Posted: Sun Jun 25, 2006 10:22 pm
by ts-soft
> The "key" param for the DBin_ command is required. Thus the example above does not work
In the moment no optional parameters, sry. See here: http://www.purebasic.fr/english/viewtop ... &start=105

> When creating a dbin file with encryption, it does not compress
I will check this, thx for bug report!

Posted: Sun Jun 25, 2006 10:27 pm
by DoubleDutch
I think that a couple of these bugs will be gone as soon as a final version of Tailbite arrives.

I remember reporting the empty string 'bug' being needed to ts-soft and I think he confirmed that this was the case. So not long to wait for that one. :)

The StringBasePosition thing appears to be something to do with the threadsafe option and quite a few libraries breaking. Maybe that will sort itself out in time too??

Posted: Sun Jun 25, 2006 10:36 pm
by ts-soft
DoubleDutch wrote: The StringBasePosition thing appears to be something to do with the threadsafe option and quite a few libraries breaking. Maybe that will sort itself out in time too??
In the moment, the only way to create a tailbite lib with threadsafe option, is to create two libs, but i will wait for new release of tailbite.
When the way for optional parameters, unicode and threadsafe libs clearly is, i will rework all libs. In the moment is it useless.