Search found 4 matches

by marksibly
Sun Jan 25, 2009 5:58 am
Forum: Coding Questions
Topic: PB string handling.
Replies: 4
Views: 892

PB string handling.

Hi,

I've got library that uses C-style 'const char *' to return strings.

Up until now, I've been using PeekS() to use such strings in PB. For example, say I've got a C function...

const char *bbDoSomething(){
return "Something";
}

...in PB I'm using...

Debug PeekS( bbDoSomething() )

But what ...
by marksibly
Wed Jan 21, 2009 11:28 pm
Forum: Coding Questions
Topic: WndProc?
Replies: 46
Views: 16429

Hi,

Yep it's me - fearlessly asking stupid questions if it'll save me a bit of time! And, the missing '()' from the function wasn't exactly *obvious* (IMHO).

Anyway, I'm just working on Blitz3DSDK's 'render direct to hwnd' code and have it going quite nicely now:


IncludeFile "../include ...
by marksibly
Wed Jan 21, 2009 10:52 pm
Forum: Coding Questions
Topic: WndProc?
Replies: 46
Views: 16429

Thanks!

(ps: this forum doesn't work too well in Chrome...)
by marksibly
Wed Jan 21, 2009 10:47 pm
Forum: Coding Questions
Topic: WndProc?
Replies: 46
Views: 16429

WndProc?

Hi,

I'm trying to create a custom Wndproc for a window - the code looks like this:


Procedure WinCallback( hwnd,msg,wp,lp )
ProcedureReturn #PB_ProcessPureBasicEvents
EndProcedure

OpenWindow( 0,32,32,640,480,"Blitz3D Window",#PB_Window_SystemMenu )

SetWindowCallback( @WinCallback,0 )

Repeat ...