Search found 7 matches

by KingNips
Fri Oct 19, 2007 4:31 pm
Forum: Coding Questions
Topic: chr() and unicode
Replies: 54
Views: 20670

pdwyer wrote: Perhaps you spent too long with Pick basic.
ooooo yeah. <shudder>
by KingNips
Fri Oct 19, 2007 4:28 pm
Forum: Coding Questions
Topic: chr() and unicode
Replies: 54
Views: 20670

I'm writing my own AAC codec for WMP.

My head just exploded...
by KingNips
Fri Oct 19, 2007 4:14 pm
Forum: Coding Questions
Topic: chr() and unicode
Replies: 54
Views: 20670

"Magic!"

What's with this then?



MessageRequester("", Chr($6F22)) ;No Good
MessageRequester("", Chr(28450)) ;No Good
MessageRequester("", Chr(Int(28450))) ;OK

;all same in debugger
Debug 28450
Debug $6F22
Debug Int(28450)



Does chr() have some type limitations for the int?

Looks like ...
by KingNips
Fri Oct 19, 2007 3:53 pm
Forum: Coding Questions
Topic: chr() and unicode
Replies: 54
Views: 20670

pdwyer wrote:ARRRRHHH

Its that damn byte order mark!

Forgot about that grrrrr
Textbook.
by KingNips
Fri Oct 19, 2007 3:49 pm
Forum: Coding Questions
Topic: chr() and unicode
Replies: 54
Views: 20670

Revisiting this, it looks like a bug!

This is not consistant



OpenFile(0,"F:\Programming\PureBasicCode\SQLite\uni kanji.txt") ; contains the unicode of "漢字" ("Kanji")
Text.s = ReadString(0,#PB_Unicode)

Char1 = Asc(Mid(text,1,1))
Char2 = Asc(Mid(text,2,1))

MessageRequester("", text) ; Displays ...
by KingNips
Thu Oct 11, 2007 2:04 pm
Forum: Off Topic
Topic: Aperture
Replies: 59
Views: 10595

It might have been but now with vista I'm not so sure. Mac users say mac is getting better, windows users don't say that anymore and rightfully so. :cry:

Windows 2003 is good. I haven't tried the windows server 2008 RC yet, I'm a little scared it's all gone in the wrong direction too though ...
by KingNips
Thu Oct 11, 2007 1:21 pm
Forum: General Discussion
Topic: Encrypting and decrypting files from internet
Replies: 12
Views: 4717

Use AES. It's not that hard to roll your own AES algorithm.

I've got some source code around here somewhere... (in C# tho)...

AES is fast because it is a symmetric block cipher. You can use a asymmetric algorithm to encipher the symmetric key to set up a session... something like RSA or some other ...