Search found 12 matches
- Thu May 06, 2010 4:03 pm
- Forum: Feature Requests and Wishlists
- Topic: Pointer/Structur Casting
- Replies: 3
- Views: 1044
Re: Pointer/Structur Casting
yeah, something like this, but couldn't such a temorary cast like '*var.Integer : *var.Byte\b' be native?
- Thu May 06, 2010 3:03 pm
- Forum: Feature Requests and Wishlists
- Topic: Pointer/Structur Casting
- Replies: 3
- Views: 1044
Pointer/Structur Casting
Hi, would it be possible to easily implement the following?:
var.l = $5566
*heh.Long = @var
Structure struc1
var1.l
EndStructure
Structure struc2
var2.b
EndStructure
varstruct.struc1\var1 = $6655
;for more comfort when messing with bytes
;Debug *heh.Byte\b ;shows $55
;Debug varstruct.struc2 ...
var.l = $5566
*heh.Long = @var
Structure struc1
var1.l
EndStructure
Structure struc2
var2.b
EndStructure
varstruct.struc1\var1 = $6655
;for more comfort when messing with bytes
;Debug *heh.Byte\b ;shows $55
;Debug varstruct.struc2 ...
- Sun May 02, 2010 10:30 pm
- Forum: Coding Questions
- Topic: How to gracefully kill a thread?
- Replies: 16
- Views: 3326
Re: How to gracefully kill a thread?
Don't know.
I guess, there are better ways..
At first I thought about CreateMutex_
I guess, there are better ways..
At first I thought about CreateMutex_
- Sun May 02, 2010 10:25 pm
- Forum: Coding Questions
- Topic: How to gracefully kill a thread?
- Replies: 16
- Views: 3326
How to gracefully kill a thread?
Hi,
I need to kill a thread and I guess KillThread wouldn't be a nice way.
So, how shall I do it?
I could set a global variable and check inside of the thread if it is set to exit, but this also wouldn't be such a nice way
Thanks.
I need to kill a thread and I guess KillThread wouldn't be a nice way.
So, how shall I do it?
I could set a global variable and check inside of the thread if it is set to exit, but this also wouldn't be such a nice way
Thanks.
- Fri Apr 30, 2010 6:27 pm
- Forum: Coding Questions
- Topic: ComboBoxEx - Icons have a black background
- Replies: 3
- Views: 989
Re: ComboBoxEx - Icons have a black background
You don't need to create your own imagelist with the new combobox gadget but only the newest beta supports ComboBoxEx, not?
As for your problem, try : #ILC_COLOR32|#ILC_MASK hehe, thanks, it's working
may I ask a second short question?
I didn't want to open a new thread, also I couldn't find a ...
As for your problem, try : #ILC_COLOR32|#ILC_MASK hehe, thanks, it's working
may I ask a second short question?
I didn't want to open a new thread, also I couldn't find a ...
- Fri Apr 30, 2010 5:58 pm
- Forum: Coding Questions
- Topic: ComboBoxEx - Icons have a black background
- Replies: 3
- Views: 989
ComboBoxEx - Icons have a black background
Hi,
I create the imagelist like this:
images = ImageList_Create_(16, 16, #ILC_COLOR16, 0, 0)
SendMessage_(ComboBox, #CBEM_SETIMAGELIST, 0, images)
The icons I display are those of some executables like PureBasic.exe or EXPLORER.exe
and somehow the pixels which should be transparent are black
As ...
I create the imagelist like this:
images = ImageList_Create_(16, 16, #ILC_COLOR16, 0, 0)
SendMessage_(ComboBox, #CBEM_SETIMAGELIST, 0, images)
The icons I display are those of some executables like PureBasic.exe or EXPLORER.exe
and somehow the pixels which should be transparent are black
As ...
- Wed Apr 14, 2010 3:19 pm
- Forum: Coding Questions
- Topic: ReceiveNetworkData: Result < BufferLength
- Replies: 4
- Views: 1425
Re: ReceiveNetworkData: Result < BufferLength
Aye, sorry, was tired yesterday.
The docu says, there is more to read, when result is equal to buffersize.
As the results say, it's directly unequal, but there is still more to read.
Sorry, I'm a noob in aspects of networks..
Also, the code should just represent a little snippet
The docu says, there is more to read, when result is equal to buffersize.
As the results say, it's directly unequal, but there is still more to read.
Sorry, I'm a noob in aspects of networks..
Also, the code should just represent a little snippet
- Wed Apr 14, 2010 3:16 pm
- Forum: Feature Requests and Wishlists
- Topic: Syntax Enhancements: If on-the-fly & expression w/ var asgn.
- Replies: 7
- Views: 1600
Re: Syntax Enhancements: If on-the-fly & expression w/ var a
I guess there's a difference between syntactical approaches and a whole different language + compiler.
1)
"for the cost of readability"
you can't simply generalize it, also it wouldn't mean one would have to use it.
2)
Ah, right, I didn't think of the possible need of a different operator
3)
yeah ...
1)
"for the cost of readability"
you can't simply generalize it, also it wouldn't mean one would have to use it.
2)
Ah, right, I didn't think of the possible need of a different operator
3)
yeah ...
- Wed Apr 14, 2010 12:05 am
- Forum: Coding Questions
- Topic: ReceiveNetworkData: Result < BufferLength
- Replies: 4
- Views: 1425
ReceiveNetworkData: Result < BufferLength
Hi,
the docu says there is more to read, when the above expression is false.
*Buffer = AllocateMemory(20000)
SendNetworkString(Socket, Header)
While Not NetworkClientEvent(Socket)
Delay(10)
Wend
BufferSize.l = MemorySize(*Buffer)
Repeat
Size.l = ReceiveNetworkData(Socket, *Buffer, BufferSize ...
the docu says there is more to read, when the above expression is false.
*Buffer = AllocateMemory(20000)
SendNetworkString(Socket, Header)
While Not NetworkClientEvent(Socket)
Delay(10)
Wend
BufferSize.l = MemorySize(*Buffer)
Repeat
Size.l = ReceiveNetworkData(Socket, *Buffer, BufferSize ...
- Tue Apr 13, 2010 9:56 pm
- Forum: Feature Requests and Wishlists
- Topic: Syntax Enhancements: If on-the-fly & expression w/ var asgn.
- Replies: 7
- Views: 1600
Syntax Enhancements: If on-the-fly & expression w/ var asgn.
Hi,
I don't know, if this is already requested, implemented, not implementable due to other syntactical constructs or that ugly and unuseful, that it'll never be wanted
Sorry, I'm new..
1. If "on-the-fly":
something like
SetGadgetText(#MyButton, (MyVar > 0) ? "MyVar > 0" : "MyVar <= 0") like in ...
I don't know, if this is already requested, implemented, not implementable due to other syntactical constructs or that ugly and unuseful, that it'll never be wanted
Sorry, I'm new..
1. If "on-the-fly":
something like
SetGadgetText(#MyButton, (MyVar > 0) ? "MyVar > 0" : "MyVar <= 0") like in ...
- Mon Apr 12, 2010 3:26 pm
- Forum: Coding Questions
- Topic: ImageGadget & Mouse Events
- Replies: 2
- Views: 625
Re: ImageGadget & Mouse Events
Documentation only mentions these constants in the context of EventType():
#PB_EventType_LeftClick
#PB_EventType_RightClick
#PB_EventType_LeftDoubleClick
#PB_EventType_RightDoubleClick
#PB_EventType_Focus
#PB_EventType_LostFocus
#PB_EventType_Change
#PB_EventType_DragStart
and only these ...
#PB_EventType_LeftClick
#PB_EventType_RightClick
#PB_EventType_LeftDoubleClick
#PB_EventType_RightDoubleClick
#PB_EventType_Focus
#PB_EventType_LostFocus
#PB_EventType_Change
#PB_EventType_DragStart
and only these ...
- Mon Apr 12, 2010 2:15 pm
- Forum: Coding Questions
- Topic: How to code a downloader with multiple threads?
- Replies: 1
- Views: 583