Search found 66 matches

by Melissa
Thu Jun 24, 2010 9:51 am
Forum: Announcement
Topic: PureBasic 4.50 is out !
Replies: 77
Views: 25985

Re: PureBasic 4.50 is out !

Code: Select all

Procedure LOGICAL(a, b)
  ProcedureReturn b
EndProcedure
Image

Code: Select all

Procedure LOGICAL(a, b)
if a = b : ProcedureReturn #True : EndIf
EndProcedure

delta = (Not LOGICAL(1, 1))

Debug delta
...Simple as that.
by Melissa
Wed Jun 23, 2010 6:54 pm
Forum: Feature Requests and Wishlists
Topic: More love 4 networking
Replies: 2
Views: 1277

Re: More love 4 networking

Can't comment on the patern$="*.*" stuff (which I think needs to be client-side) but the file size thing is already in..
May be, may be: FtpFindFirstFile _(*hConnect, lpszSearchFile.s , *lpFindFileData.LPWIN32_FIND_DATA, dwFlags, *dwContext)
Well, I don't know about other OS, but let me doubt that ...
by Melissa
Wed Jun 23, 2010 9:09 am
Forum: Feature Requests and Wishlists
Topic: More love 4 networking
Replies: 2
Views: 1277

More love 4 networking

Since I recently tried to write my own FTP back-up functionality, plenty of ideas made their way into my head. Most of ‘em was things I wanted to make with developers of FTP protocol, yet some was about improvements of corresponding library. First, and most essential:

*Handle = FtpID(#Ftp ...
by Melissa
Wed May 05, 2010 9:41 am
Forum: Game Programming
Topic: Xors3D + Pure Basic = ?
Replies: 10
Views: 4884

Re: Xors3D + Pure Basic = ?

Anybody has success with the new Xors3D wrapper?
Well, finally got enough time to test it. Excluding recent "outdatement" of few samples and overall loss of FPS everything seems to work fine enough. Still not too fresh for engine with (nearly) daily revisions, indeed, but a lot better than nothing.
by Melissa
Thu Apr 15, 2010 6:38 am
Forum: Feature Requests and Wishlists
Topic: CompilerDefine ?
Replies: 9
Views: 2180

Re: CompilerDefine ?

*sigh* Please calm down. I was talking about the style.
Ah, that (sorry)... Well, I'm already using such naming convention a lot: http://www.purebasic.fr/english/viewtopic.php?f=12&t=41767
But such methodic only good for procedure blocks, 'cause defining of macros in macro just impossible right ...
by Melissa
Wed Apr 14, 2010 2:40 pm
Forum: Feature Requests and Wishlists
Topic: CompilerDefine ?
Replies: 9
Views: 2180

Re: CompilerDefine ?

Foz, fu~... Let's just pretend that I didn't heard that statement. Please, search a bit around that forum for speed comparison between PeekX\PokeX and pointers.
by Melissa
Wed Apr 14, 2010 1:49 pm
Forum: Feature Requests and Wishlists
Topic: CompilerDefine ?
Replies: 9
Views: 2180

Re: CompilerDefine ?

Just as planned. OK, you are right too, people. Kind of:
Macro ScanBuffer(CellSize, Buffer)
CompilerSelect CellSize
CompilerCase 1 : CompilerDefine TypeName #[Byte]#, TypeLetter #[B]#
CompilerCase 2 : CompilerDefine TypeName #[Word]#, TypeLetter #[W]#
CompilerCase 4 : CompilerDefine TypeName #[Long ...
by Melissa
Wed Apr 14, 2010 10:35 am
Forum: Feature Requests and Wishlists
Topic: CompilerDefine ?
Replies: 9
Views: 2180

CompilerDefine ?

Right now PB's macro engine forcing us to writing things that way:
Macro KKND(DebugProc, SystemDrive)
DebugProc("MS Windows removal initiated...")
; ...code-code-code...
DebugProc("Work completed ^^ !")
EndMacro
; ...code-code-code...
CompilerIf #PB_Compiler_Debugger : KKND(Debug, Drive ...
by Melissa
Sat Apr 10, 2010 12:03 pm
Forum: Tricks 'n' Tips
Topic: Dynamical calling interface
Replies: 6
Views: 4064

Re: Dynamical calling interface

Updated first post to add new PassData procedure. Ability to pass any structures directly on stack for APIs like PtInRect was just one of things which I already ceased to wait from Fantaisie Software, so that could be also considered as self-help)...

i have some question, so why CallFunction of ...
by Melissa
Thu Apr 08, 2010 7:14 am
Forum: Tricks 'n' Tips
Topic: Dynamical calling interface
Replies: 6
Views: 4064

Re: Dynamical calling interface

Well, updated first post with recently added support for cdecl calls. No knowledge on 'user' side required – just automatized stack restoration. BASIC way, I guess...
by Melissa
Wed Apr 07, 2010 10:00 am
Forum: Coding Questions
Topic: Execute a function contained in a variable
Replies: 16
Views: 5402

Re: Execute a function contained in a variable

...Dear charvista, I have some new present for you: http://www.purebasic.fr/english/viewtop ... 7&p=320820
by Melissa
Wed Apr 07, 2010 9:37 am
Forum: Tricks 'n' Tips
Topic: Dynamical calling interface
Replies: 6
Views: 4064

Dynamical calling interface

Summarizing: http://www.purebasic.fr/english/viewtopic.php?f=13&t=41718
Needs to call procedure by pointer while obtaining number of required parameters on run-time ? No problemo anymore:
; */=\=/=\=/=\=/=\=/=\=/=\=/=\=/=\=/*
; Dynamical calling interface v0.14
; Developed in 2010 by Dr. Melissa ...
by Melissa
Tue Apr 06, 2010 5:04 pm
Forum: Coding Questions
Topic: Once again about multiline StringGadget...
Replies: 44
Views: 8008

Re: Once again about multiline StringGadget...

Well, well, well… finally managed to do one-lined EditorGadet through defining my custom one. No, just one more (and last) question: is there any way to disable NOHIDESEL for vanilla EG without screwing everything up to point of crashing on Win7 ? I already implemented it through custom #WM ...
by Melissa
Tue Apr 06, 2010 2:25 pm
Forum: Coding Questions
Topic: Dancing with labels...
Replies: 14
Views: 2493

Re: Dancing with labels...

No, because it's not a bug if you don't do what the manual says
So, isn't a bug when compiler doesn't do required checks for enforcing syntax rules ? I'm out of words here.
And I feel like I'm feeding the troll here.
Honestly ? Me too.
by Melissa
Tue Apr 06, 2010 2:19 pm
Forum: Coding Questions
Topic: Dancing with labels...
Replies: 14
Views: 2493

Re: Dancing with labels...

If it works, it's just a fluke.
Then, if it isn't intended behavior, thread should be moved back to "Bug Reports", right ?