Search found 54 matches

by Techie42
Tue Nov 19, 2019 10:01 pm
Forum: Off Topic
Topic: Why do companies go for Amazon AWS / EC2?
Replies: 13
Views: 6221

Re: Why do companies go for Amazon AWS / EC2?

Hi Kukulkan,

Depending on how you configure your services (and which ones you use - there are a lot, and just as many ways to achieve the same result), you have two choices: you can remote login via command line, and / or you can use the AWS console (their website).

You can relaunch instances ...
by Techie42
Thu Jan 24, 2019 12:43 pm
Forum: Tricks 'n' Tips
Topic: WinDivert: Windows Packet Divert w/PureBasic samples.
Replies: 13
Views: 15400

Re: WinDivert: Windows Packet Divert w/PureBasic samples.

Zebuddi123 wrote:@ Techie42 https://www.dropbox.com/s/ghov81cik70y1 ... s.zip?dl=0
Zebuddi. :)
Thank you very much :D (sorry for my tardiness - better late than never :wink: )
by Techie42
Tue Jul 10, 2018 4:22 pm
Forum: Tricks 'n' Tips
Topic: WinDivert: Windows Packet Divert w/PureBasic samples.
Replies: 13
Views: 15400

Re: WinDivert: Windows Packet Divert w/PureBasic samples.

Does anyone have the original files mentioned in the top item for this post please?
by Techie42
Tue Nov 05, 2013 10:19 pm
Forum: Coding Questions
Topic: Linked list, structure and how to refer to field dynamically
Replies: 4
Views: 1626

Re: Linked list, structure and how to refer to field dynamic

Hi everyone,

Thanks for the quick responses...I try not to ask questions too often, but when I do, I know it won't take long for those far more knowledgeable than I to respond...and I believe that's one of the reasons the PB forums are so helpful, friendly and abound with good expert advice. Thank ...
by Techie42
Tue Nov 05, 2013 6:24 pm
Forum: Coding Questions
Topic: Linked list, structure and how to refer to field dynamically
Replies: 4
Views: 1626

Linked list, structure and how to refer to field dynamically

Hi,

I would like to know if there is some way to dynamically refer to structure fields in a linked list.

I'm not sure how to word this, so I'll try and explain with a bit of code.

Structure MyStructure
top.i
middle.i
bottom.i
EndStructure

Global fred.s

Global NewList myList.MyStructure ...
by Techie42
Wed Jun 12, 2013 11:26 am
Forum: Coding Questions
Topic: Win32 - mysql_stmt_bind_param example
Replies: 5
Views: 3860

Re: Win32 - mysql_stmt_bind_param example

As promised, below is the code I've been testing in isolation to understand how "mysql_stmt_bind_param" works. It is based on the code posted by infratec at http://www.purebasic.fr/english/viewtopic.php?f=13&t=52825&hilit=libmysql .

All I've really done is added some more MySQL structures, and ...
by Techie42
Wed Jun 12, 2013 9:59 am
Forum: Coding Questions
Topic: Win32 - mysql_stmt_bind_param example
Replies: 5
Views: 3860

Re: Win32 - mysql_stmt_bind_param example

I've discovered the problem...a catalogue of errors! :lol:

The statement returns a "my_bool" value which is declared as "char" in the MySQL docs.

In my source code, the statement was declared as returning a "byte" (1 byte, -128 to +127); this should be an "ascii" (1 byte, 0 to +255).
Then, I was ...
by Techie42
Wed Jun 12, 2013 9:19 am
Forum: Coding Questions
Topic: Win32 - mysql_stmt_bind_param example
Replies: 5
Views: 3860

Re: Win32 - mysql_stmt_bind_param example

Hi RichAlgeni,

Thanks for the reply; any help / suggestions are much appreciated. I'm running in a 32-bit environment; I don't have access to a 64-bit OS.

The statement "mysql_stmt_bind_param" is supposed to return zero for success, otherwise failure is indicated by a non-zero return code. The ...
by Techie42
Mon Jun 10, 2013 4:50 pm
Forum: Coding Questions
Topic: Win32 - mysql_stmt_bind_param example
Replies: 5
Views: 3860

Win32 - mysql_stmt_bind_param example

Hi,

Does anyone have a code-example using "mysql_stmt_bind_param" that they wouldn't mind sharing, please?

I'm trying to use this statement on Windows XP 32-bit, using PB 5.11 and libmysql 6.1.0 (mysql c connector), both with and without Unicode enabled on the PB compiler.

The reason I'm asking ...
by Techie42
Wed May 29, 2013 12:34 pm
Forum: Windows
Topic: OpenLibrary, CloseLibrary and Rich Edit Control IMA
Replies: 5
Views: 2944

Re: OpenLibrary, CloseLibrary and Rich Edit Control IMA

I agree. The number of benefits and improvements that appear to have been made between the two versions of the rich edit control are too large to be ignored. I don't know how much of a priority this would be for the development team, nor how much of a headache.

I only develop for Windows, so I don ...
by Techie42
Wed May 29, 2013 9:20 am
Forum: Windows
Topic: OpenLibrary, CloseLibrary and Rich Edit Control IMA
Replies: 5
Views: 2944

Re: OpenLibrary, CloseLibrary and Rich Edit Control IMA

Hi IdeasVacuum,

Thanks for replying. One of the most impressive strengths of the Purebasic community and these forums is the enthusiasm and depth of knowledge of the members. I only wish I could give back more than I ask; all I can do is post anything and everything I can find related to my query ...
by Techie42
Tue May 28, 2013 11:33 am
Forum: Windows
Topic: OpenLibrary, CloseLibrary and Rich Edit Control IMA
Replies: 5
Views: 2944

Re: OpenLibrary, CloseLibrary and Rich Edit Control IMA

Just a quick update...

If I replace the statement

Code: Select all

			SendMessage_( mainEditor, #WM_DESTROY, 0, 0 )
with the following statement,

Code: Select all

			DestroyWindow_( mainEditor )
then the IMA disappears.

I'd still like to know if this is the correct approach, or if there is some sort of clash. Thanks.
by Techie42
Tue May 28, 2013 11:08 am
Forum: Windows
Topic: OpenLibrary, CloseLibrary and Rich Edit Control IMA
Replies: 5
Views: 2944

OpenLibrary, CloseLibrary and Rich Edit Control IMA

Hi all,

The following code generates an "Invalid Memory Access" error on the "End" statement. However, if I comment-out the "CloseLibrary( lib )" statement, then the error does not occur. Strangely, if I leave the "CloseLibrary( lib )" statement uncommented, but comment-out the "mainEditor ...
by Techie42
Wed Feb 27, 2013 10:54 pm
Forum: Feature Requests and Wishlists
Topic: Extra constants for AddKeyboardShortcut
Replies: 3
Views: 1193

Re: Extra constants for AddKeyboardShortcut

I've discovered something!

If I use #VK_OEM_PLUS and #VK_OEM_MINUS, then I can get AddKeyboardShortcut to work, sort of as I wish.

The minus key (-) satisfies #VK_OEM_MINUS, and the equals key (=) satisfies #VK_OEM_PLUS. My UK keyboard has a minus key and underscore key (SHIFT + -), and an equals ...
by Techie42
Wed Feb 27, 2013 12:10 am
Forum: Feature Requests and Wishlists
Topic: Extra constants for AddKeyboardShortcut
Replies: 3
Views: 1193

Re: Extra constants for AddKeyboardShortcut

Hi davido,

Thanks for the quick reply :D

I believe if I use the ShortcutGadget, then I will need to get the end-user to configure the shortcuts themselves whenever they install my software, as it looks like I would need to use this to capture whatever the relevant shortcut is on their computer ...