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 ...
Search found 4 matches
- Sun Jan 25, 2009 5:58 am
- Forum: Coding Questions
- Topic: PB string handling.
- Replies: 4
- Views: 892
- Wed Jan 21, 2009 11:28 pm
- Forum: Coding Questions
- Topic: WndProc?
- Replies: 46
- Views: 16429
- Wed Jan 21, 2009 10:52 pm
- Forum: Coding Questions
- Topic: WndProc?
- Replies: 46
- Views: 16429
- 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 ...
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 ...