Search found 41 matches

by Hysteria
Fri Nov 20, 2015 1:40 pm
Forum: Off Topic
Topic: WinAPI, MASM and Visual Studio
Replies: 2
Views: 1870

Re: WinAPI, MASM and Visual Studio

normeus wrote:Steve Gibson from GRC and the famous Spinrite has a tutorial or two using MASM on this page

https://www.grc.com/smgassembly.htm
Thanks Normeus, I'll check that out.
by Hysteria
Wed Nov 18, 2015 10:59 pm
Forum: Off Topic
Topic: WinAPI, MASM and Visual Studio
Replies: 2
Views: 1870

WinAPI, MASM and Visual Studio

Hi Guys

While our fantastic PB supports inline assembly and easy WinAPI support, I've been wanting to play around with MASM (or ML) using VS2015 just for fun. Like many of you I enjoyed many hours of 8 and 16bit assembly coding back in the day (tempted to say 'good old days' :) )

Anyway, while the ...
by Hysteria
Wed Jun 26, 2013 12:49 pm
Forum: Off Topic
Topic: Forthcoming film about the start of the UK gaming industry
Replies: 0
Views: 705

Forthcoming film about the start of the UK gaming industry

Hey guys

I stumbled upon this quite by accident and now can't wait to get my hands on a copy

http://www.frombedroomstobillions.com/

I appreciate it might be of more interest to those from the UK but anyone who started out programming on the C64, Spectrum, BBC, etc. may want to check it out ...
by Hysteria
Tue Jan 17, 2012 4:20 pm
Forum: Feature Requests and Wishlists
Topic: Support for 64-bit Date()
Replies: 8
Views: 4033

Re: Support for 64-bit Date()

I'd really like to see this too. I've been writing a little app that needs to go much further back than 1970 and far prefer native solutions to workarounds.

While on the subject, it would be great to be able to use 'setgadgettext' with a date gadget given that 'getgadgettext' is capable of reading ...
by Hysteria
Tue Dec 06, 2011 12:34 pm
Forum: Coding Questions
Topic: Detect Change on Date and Option Gadgets
Replies: 9
Views: 2742

Re: Detect Change on Date and Option Gadgets

Thanks guys.

Yes, I know there is no Change event documented. There isn't one documented for the Editor gadget either but it can be enabled via the WinApi, hence my assumption that something similar might be possible here.

But the lonely left click event will do nicely :D

Cheers.
by Hysteria
Mon Dec 05, 2011 11:15 pm
Forum: Coding Questions
Topic: Detect Change on Date and Option Gadgets
Replies: 9
Views: 2742

Re: Detect Change on Date and Option Gadgets

Ahhhh, I see what's going on. Your examples aren't qualifying the EventType as changed...

You are getting any event related to that gadget.

Which seems to work! I wonder if it will backfire on me later :mrgreen:
by Hysteria
Mon Dec 05, 2011 11:11 pm
Forum: Coding Questions
Topic: Detect Change on Date and Option Gadgets
Replies: 9
Views: 2742

Re: Detect Change on Date and Option Gadgets

:oops:

Well, I only hope that you didn't find it in the English-speaking forum or I can't work the search as well as standard PB event handling :D

Thank you so much Bernd.

What's strange is that I thought my original code did just that! When it didn't work for Editor, date and option gadgets, I ...
by Hysteria
Mon Dec 05, 2011 9:54 pm
Forum: Coding Questions
Topic: Detect Change on Date and Option Gadgets
Replies: 9
Views: 2742

Detect Change on Date and Option Gadgets

Firstly, apologies if this has already been answered, I did do a search.

I'm trying to get the date and option gadgets to generate a #PB_EventType_Change message.

I've tried the trick (API call) that enables changes for the Editor gadget but it doesn't work for these.

Would be grateful for a hint ...
by Hysteria
Sun Sep 18, 2011 9:51 am
Forum: General Discussion
Topic: The PureBasic Doomsday Quotes
Replies: 76
Views: 43229

Re: The PureBasic Doomsday Quotes

As a relative newbie to PB (found it about a year or so ago) I looked at many, many languages with which I might restart my programming interest (which started what seems like many years ago with 8bit Basics and various assembly languages).

Funnily enough I looked at D :D

In the end I decided ...
by Hysteria
Wed May 11, 2011 1:15 pm
Forum: Coding Questions
Topic: Structure Help Please
Replies: 4
Views: 1138

Re: Structure Help Please

Many thanks guys, much appreciated. :D

Comtois - that was exactly what I needed, thanks! If only the original example had that.

Idle - thanks a lot for taking the time, that explanation was very helpful.

Netmaestro - I'm sure you're right in many cases, however, I'm not convinced that using a ...
by Hysteria
Tue May 10, 2011 9:53 pm
Forum: Coding Questions
Topic: Structure Help Please
Replies: 4
Views: 1138

Structure Help Please

Being a 'structure novice' when I look at the PB example below, it looks like the author is doing something 'clever' with the structure facility which I can't quite fathom. My non-oop brain fails to get the benefit of things like structures (it thinks, perhaps wrongly, they are doing things the long ...
by Hysteria
Fri Apr 22, 2011 4:33 pm
Forum: Coding Questions
Topic: Allocated memory seems to change its values???
Replies: 10
Views: 1923

Re: Allocated memory seems to change its values???

Yes I'm familiar with that table Djes (but thanks).

I now realise where I was going wrong. The last time I used Peek and Poke it was years ago and all you had were bytes so I was used to treating everything as a byte and combining them to form words myself, etc.

For some reason, with all of the ...
by Hysteria
Fri Apr 22, 2011 4:19 pm
Forum: Coding Questions
Topic: Allocated memory seems to change its values???
Replies: 10
Views: 1923

Re: Allocated memory seems to change its values???


; PokeU() writes an unicode character (2 bytes)


*memoryid=AllocateMemory(20)
If Not *memoryid:Debug "Could not allocate memory":End: EndIf

For a=0 To 20 Step 2
PokeU(*memoryid+a,a/2)
Debug PeekU(*memoryid+a)
Next

Debug "--------"
Debug "--------"


For c=0 To 20 Step 2
Debug PeekU(*memoryid+c ...
by Hysteria
Fri Apr 22, 2011 4:16 pm
Forum: Coding Questions
Topic: Allocated memory seems to change its values???
Replies: 10
Views: 1923

Re: Allocated memory seems to change its values???

Hi Netmaestro

Well there's no doubting that works so many thanks!

However, I am surprised one has to go to those lengths given the many variants of Peek and Poke. I thought that was what they were for. And there's nothing in the help that suggests that this approach is necessary for standard ...
by Hysteria
Fri Apr 22, 2011 3:36 pm
Forum: Coding Questions
Topic: Allocated memory seems to change its values???
Replies: 10
Views: 1923

Re: Allocated memory seems to change its values???

Hi Netmaestro

Sorry, I forgot to say that this little bit of code is drawn from something larger where I'm dealing with values of between 0 and 1.5bn so given that I need a 32bit word. In fact I am actually using PokeL/PeekL in my other code (same result).

So while your change based on the Ascii ...