Search found 118 matches

by ElementE
Fri Dec 22, 2017 11:50 am
Forum: Coding Questions
Topic: Serial Port Search
Replies: 5
Views: 3791

Re: Serial Port Search

The Windows registry contains the "device" mapping between the serial port hardware and the assigned COM port numbers.

Computer\HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM
In my case we have programmed the FTDI USB chips with a description so I can determine which piece of equipment is ...
by ElementE
Thu Nov 09, 2017 8:54 pm
Forum: General Discussion
Topic: Why I had to stop using PureBasic
Replies: 154
Views: 69325

Re: Why I had to stop using PureBasic

I just discovered this thread topic.

Earlier this year (2017) I downloaded the Purebasic installer to my work computer.
Symantec immediately tagged it as some sort of virus or malware and removed it.
Then I got an email from the IT department regarding my offense of downloading dangerous software ...
by ElementE
Thu Jan 21, 2016 4:55 am
Forum: Off Topic
Topic: Good Freeware Stuff
Replies: 669
Views: 684485

Re: Good Freeware Stuff

http://en.smath.info/img/ss_box.png
SMath Studio
Tiny, powerful, free mathematical program with WYSIWYG editor and complete units of measurements support. It provides numerous computing features and rich user interface translated into 38 different languages. Application also contains integrated ...
by ElementE
Thu Jan 21, 2016 4:50 am
Forum: Off Topic
Topic: Good Freeware Stuff
Replies: 669
Views: 684485

Re: Good Freeware Stuff

http://scidavis.sourceforge.net/images/screenshot.png
SciDAVis
SciDAVis is a free interactive application aimed at data analysis and publication-quality plotting. It combines a shallow learning curve and an intuitive, easy-to-use graphical user interface with powerful features such as ...
by ElementE
Wed Jan 06, 2016 2:11 am
Forum: Assembly and C Programming in PureBasic
Topic: PB_StringBasePosition and PB_StringBase
Replies: 1
Views: 4529

Re: PB_StringBasePosition and PB_StringBase

I am going to attempt to answer my own questions.

PB_StringBase contains an address pointing to the start (Base) of the string memory area.

PB_StringBasePosition contains an offset (Position) relative to the String Base address

To get the address of a string data item, the PB_SringBase and PB ...
by ElementE
Fri Jan 01, 2016 2:33 am
Forum: Assembly and C Programming in PureBasic
Topic: PB_StringBasePosition and PB_StringBase
Replies: 1
Views: 4529

PB_StringBasePosition and PB_StringBase

When using PureBasic's string functions the assembly source code produced by the compiler makes reference to the PB_StringBasePosition and PB_StringBase values. What are the definitions of these two items?
by ElementE
Fri Dec 25, 2015 5:52 am
Forum: Coding Questions
Topic: Last PureBasic version that supported XP?
Replies: 1
Views: 924

Last PureBasic version that supported XP?

What is the last version of PureBasic that officially supported Windows XP?
by ElementE
Fri Dec 25, 2015 3:51 am
Forum: General Discussion
Topic: Does PB do all this?
Replies: 9
Views: 4865

Re: Does PB do all this?

Hi aldewacs,
I am somewhat new at programming using PureBasic but I will try to answer a few of your questions.

• Use standard DLL's
Yes, especially if they are "C" DLLs, C++ DLLs might be more difficult to interface with.
• Build PB DLL's
Yes, see the web page
http://www.purebasic.com ...
by ElementE
Wed Dec 23, 2015 7:14 am
Forum: Tricks 'n' Tips
Topic: Multi-Line TreeGadget [Windows]
Replies: 8
Views: 4381

Re: Multi-Line TreeGadget [Windows]

Here is RASHAD's first program with comments added.
I hope some might find it useful in understanding Windows programming.
#TVM_SETITEMHEIGHT = $111B
#TVM_GETITEMHEIGHT = $111C
#TVM_SETBKCOLOR = $111D

Global hBrush,hBrush2,TVH

; The CreateSolidBrush function creates a logical brush
; that has the ...
by ElementE
Sat Dec 19, 2015 5:37 pm
Forum: Off Topic
Topic: Good Freeware Stuff
Replies: 669
Views: 684485

Re: Good Freeware Stuff

This looks like it can make professional looking plots.
http://home.gna.org/veusz/logo2.png
Veusz - A Scientific Plotting Package
http://home.gna.org/veusz/
Veusz is a GUI scientific plotting and graphing package. It is designed to produce publication-ready Postscript or PDF output. SVG, EMF and ...
by ElementE
Tue Dec 08, 2015 7:18 pm
Forum: Coding Questions
Topic: Array of UTF8 strings in a Unicode program?
Replies: 23
Views: 5764

Re: Array of UTF8 strings in a Unicode program?

Hi wilbert.
When I run your code in unicode mode, I get the following debug output:
썍沼敬r
Müller
Oringial code:
Here a utf8 conversion using prototype working in both ascii and unicode mode.
Prototype.s ProtoUTF8String(str.p-utf8)

Procedure.s UTF8String_(*str)
CompilerIf #PB_Compiler_Unicode ...
by ElementE
Tue Dec 08, 2015 3:48 am
Forum: Coding Questions
Topic: Array of UTF8 strings in a Unicode program?
Replies: 23
Views: 5764

Re: Array of UTF8 strings in a Unicode program?

Using the code kenmo posted (see below) I get the following Debug Output (PB v5.41 LTS Beta 2, Windows 64-bit):
UTF-8 string at 241330 = 000011112222333344445555666677778888
UTF-8 string at 241360 = Huber
UTF-8 string at 241380 = Meier
UTF-8 string at 2413A0 = Müller
UTF-8 string at 2413C0 ...
by ElementE
Mon Dec 07, 2015 8:01 pm
Forum: Coding Questions
Topic: Array of UTF8 strings in a Unicode program?
Replies: 23
Views: 5764

Re: Array of UTF8 strings in a Unicode program?

skywalk wrote:a$(3) = "Müller" ;<-- Corrupted if SF_Uni_UTF8() adds +2 instead of +3[/code]
UTF-8 hex encoding of ü (Unicode code point U-00FC) is $C3BC.
A check should be added to maker sure the characters in the string can be represented as one-byte ASCII characters.
by ElementE
Tue Dec 01, 2015 3:10 am
Forum: General Discussion
Topic: PB 4.30 b4 : How to create a gadgetlist for a non PB windows
Replies: 14
Views: 5970

Re: PB 4.30 b4 : How to create a gadgetlist for a non PB win

Here is Denis's code with changes made so that it will work when compiled as an Ascii or Unicode executable using either the x86 or x64 versions of the PureBasic compiler.
Tested using "PureBasic_x86_v541_beta_1" and "PureBasic_x64_v541_beta_1".
EnableExplicit

;- Declarations
Declare Free ...
by ElementE
Fri Nov 27, 2015 4:33 am
Forum: General Discussion
Topic: PB 4.30 b4 : How to create a gadgetlist for a non PB windows
Replies: 14
Views: 5970

Re: PB 4.30 b4 : How to create a gadgetlist for a non PB win

This is an old thread, but it is about something I am working on now, specifically, I want to get the Places Bar icons displayed in the "File Open" window.
The gadget shown in the first post of the thread shows what I would like to create in Windows 7 or above.
Here is the problem, the code posted ...