Search found 13 matches

by verleihnix
Sun Aug 05, 2018 8:47 am
Forum: Coding Questions
Topic: Read from PDF
Replies: 26
Views: 17644

Re: Read from PDF

Thank you for your help, but the PDF contains customer data, I cannot Post it here. When I get another broken PDF, I will post it here for reference.

- Mike
by verleihnix
Fri Aug 03, 2018 5:09 pm
Forum: Coding Questions
Topic: Read from PDF
Replies: 26
Views: 17644

Re: Read from PDF

Hello all,

I wrote this little code snippet to load a PDF file. It reads the Title, the Author, the Creator and the Text of a PDF.
Some PDF open just fine and all the text is perfectly displayed, some documents read the Title, the Author and the Creator just fine, but the text is some soft of ...
by verleihnix
Tue Jul 10, 2018 4:25 pm
Forum: Coding Questions
Topic: Read from PDF
Replies: 26
Views: 17644

Re: Read from PDF

Dear acreis,

Thank you very much, this change did the trick. Now i can open "äpfel.pdf" without problems.

Is there something mentioned in the pdfium library, where can I learn about this syntax?

EDIT: found this https://www.purebasic.com/documentation/reference/pseudotypes.html will dig more into ...
by verleihnix
Sun Jul 08, 2018 3:47 pm
Forum: Coding Questions
Topic: Read from PDF
Replies: 26
Views: 17644

Re: Read from PDF - pdfium with german umlaute öäü

Hello there,

Thank you very much, this code works for me with one exception if the file name has some characters like the german umlaute "öäü". If I load "apfel.pdf" everything is fine. When is load "äpfel.pdf" nothing gets loaded. The documents are the same except from the file name. Does somebody ...
by verleihnix
Tue Apr 05, 2016 8:56 am
Forum: Feature Requests and Wishlists
Topic: Hash function bcrypt
Replies: 2
Views: 1845

Hash function bcrypt

Hello developers and maintainers,

it would be nice to have a Hash function to generate bcrypt hashes.

https://en.wikipedia.org/wiki/Bcrypt

Kind regards Verleihnix
by verleihnix
Fri Mar 27, 2015 5:45 pm
Forum: Tricks 'n' Tips
Topic: for the networkers: a wrapper for libssh2
Replies: 11
Views: 10351

Re: for the networkers: a wrapper for libssh2

Thank you skywalk for your fast answer!

it does not throw any error when compiling anymore.

Altho it seems to be a problem to download the libssh2.dll or the mentioned curl package anywhere. The newer version seems to be incompatible with the include. I will keep trying and post a solution if i ...
by verleihnix
Fri Mar 27, 2015 3:01 pm
Forum: Tricks 'n' Tips
Topic: for the networkers: a wrapper for libssh2
Replies: 11
Views: 10351

Re: for the networkers: a wrapper for libssh2

Hey there,

Thank you for your wrapper! I am currently worhking to get libssh2 wo work with PB, when i stumbeled upon this article in the forum. While trying to implement this on PB 5.24 LTS i get an error when compiling the sample:

"Line 366: Native types can't be used with pointers ...
by verleihnix
Fri Jul 04, 2014 10:46 pm
Forum: Mac OSX
Topic: OpenNetworkConnection() LocalPort parameter not respected
Replies: 5
Views: 3534

Re: OpenNetworkConnection() LocalPort parameter not respecte

Mistery located, but not solved yet!

I dug deeper into this issue and I found out the following:

When i run this code on a NATIVE MAC (as in the physical Macbook Pro), then everything works very well.

I was playing around with a virtual MAC running in a Oracle Virtualbox, it seems, that the ...
by verleihnix
Thu Jul 03, 2014 5:55 pm
Forum: Mac OSX
Topic: OpenNetworkConnection() LocalPort parameter not respected
Replies: 5
Views: 3534

Re: OpenNetworkConnection() LocalPort parameter not respecte

Yes, sure, i am happy to provide the code :)

=== SERVER ===

If InitNetwork() = 0
MessageRequester("Error", "Can't initialize the network !", 0)
End
EndIf

Port = 6832

If CreateNetworkServer(0, Port)
Debug "PureBasic - Server created"
Repeat
SEvent = NetworkServerEvent()
If SEvent
ClientID ...
by verleihnix
Thu Jul 03, 2014 4:05 pm
Forum: Mac OSX
Topic: OpenNetworkConnection() LocalPort parameter not respected
Replies: 5
Views: 3534

OpenNetworkConnection() LocalPort parameter not respected

Hello Community,

i came across some bug while using OpenNetworkConnection() on a MAC.

in the Documentation it states:

Connection = OpenNetworkConnection(ServerName$, Port [, Mode [, TimeOut [, LocalIP$ [, LocalPort]]]])

LocalPort (optional) The local port to bind the connection to. By default ...
by verleihnix
Wed Apr 13, 2011 10:36 am
Forum: Tricks 'n' Tips
Topic: Winamp Example
Replies: 10
Views: 10584

Re: Winamp Example

Hello all

thanks to all of you this thread can be archived for future reference!

the mistery is solved!

the following lines did the trick:

Define cds.COPYDATASTRUCT
Global filename.s = "C:\Users\Mike\Downloads\winamp\song.mp3"
cds.COPYDATASTRUCT
cds\dwData = #IPC_PLAYFILE
cds\lpData ...
by verleihnix
Fri Apr 01, 2011 9:29 am
Forum: Tricks 'n' Tips
Topic: Winamp Example
Replies: 10
Views: 10584

Re: Winamp Example

Thanks for your support!

i tried to adjust the code like so (according the information given from kenmo):

Define cds.COPYDATASTRUCT
Global filename.s = "C:\Users\Mike\Downloads\winamp\song.mp3"
cds.COPYDATASTRUCT
cds\dwData = #IPC_PLAYFILE
cds\lpData = @filename
cds\cbData = SizeOf ...
by verleihnix
Thu Mar 24, 2011 12:03 am
Forum: Tricks 'n' Tips
Topic: Winamp Example
Replies: 10
Views: 10584

Re: Winamp Example

Hello all,

i am trying to load and play a file in Winamp. according to the example its:

#IPC_PLAYFILE= 100
;
;
COPYDATASTRUCT cds;
cds.dwData = IPC_PLAYFILE;
cds.lpData = (void *) "file.mp3";
cds.cbData = strlen((char *) cds.lpData)+1; // include space for null char
SendMessage(hwnd_winamp,WM ...