Search found 11 matches

by twobits
Mon Oct 06, 2003 7:18 pm
Forum: Coding Questions
Topic: Returning strings to VB from a DLL
Replies: 2
Views: 1279

OK, thank you very much :)
by twobits
Mon Oct 06, 2003 6:58 pm
Forum: Coding Questions
Topic: Returning strings to VB from a DLL
Replies: 2
Views: 1279

Returning strings to VB from a DLL

Hi im trying to return s string from PB to VB without success, here is my code:

PB code:

ProcedureDLL.s GetName()

ProcedureReturn "Test"
EndProcedure


VB decleration:

Public Declare Function GetString Lib "purebasic.dll" () As String


VB use:

Private Sub Command1_Click()

Command1 ...
by twobits
Sun Oct 05, 2003 10:26 pm
Forum: Coding Questions
Topic: Adding gadgets to other windows
Replies: 5
Views: 2097

So is it possible to create a panel gadget and get the window handle of the panel gadget, then set that as the current window and set up a call back function associated with the panel?
by twobits
Sat Oct 04, 2003 10:19 pm
Forum: Coding Questions
Topic: Adding gadgets to other windows
Replies: 5
Views: 2097

Ok - ive managed to draw controls on a panel control running in a vb app - but is it possible to recieve any events from these controls? or do the events get sent to the vb app instead?
by twobits
Sat Oct 04, 2003 7:18 pm
Forum: Coding Questions
Topic: Adding gadgets to other windows
Replies: 5
Views: 2097

What do you mean by a window not created in pb? isnt that another apps window?
Could i create a panel control in vb, and then draw a control on it from PB by getting the hWnd?

I know something like that is possible - as the little monitor in screen saver settings works something like it.
by twobits
Sat Oct 04, 2003 6:56 pm
Forum: Coding Questions
Topic: Adding gadgets to other windows
Replies: 5
Views: 2097

Adding gadgets to other windows

Hi everyone,
Is it possible to add a gadget to another window? i.e i get window handle of another window using findwindow, is it now possible for me to add controls to that window which can be controlled from within my pb program?
Thanx
by twobits
Sun May 25, 2003 9:40 pm
Forum: Coding Questions
Topic: Paasing a structure to a function
Replies: 3
Views: 1433

Paasing a structure to a function

Hi everyone - I have this following piece of code


Structure mystruct
anitem.l
endstructure

procedure dosomething1 ( temp.mystruct )
endprocedure

procedure dosomething2 ( *temp.mustruct )
temp\anitem = temp\anitem + 1
endprocedure


Both of the procedures wont work, the first give me the ...
by twobits
Fri May 23, 2003 4:22 pm
Forum: Coding Questions
Topic: Structures
Replies: 4
Views: 1666

Thanks a lot mate :)
That c;ears up quite a lot of confusion I had :)
by twobits
Fri May 23, 2003 3:32 pm
Forum: Coding Questions
Topic: Structures
Replies: 4
Views: 1666

Structures

Hi,
Is it possible to declare a string within a structure to be a certain number of bytes long?
by twobits
Thu May 22, 2003 9:40 pm
Forum: Coding Questions
Topic: Hi everybody
Replies: 6
Views: 2168

Is there any IRC channel for purebasic?
by twobits
Thu May 22, 2003 6:58 pm
Forum: Coding Questions
Topic: Hi everybody
Replies: 6
Views: 2168

Hi everybody

I would jus like to say hello to everyone :)
Ive been programming for a number of years now, mostly in Blitz Basic and C++ - when I had a go with pure basic and saw how great it was I bought it and now Im jus gettin myself used to it :)
It seems a very easy language but it creates executables with ...