Search found 62 matches

by stephanbrunker
Mar 02, 2014 15:21
Forum: General
Topic: Windows header files
Replies: 6
Views: 1462

Re: Windows header files

The question is: where are the now existing header files from? As far as I can see, the files are pre-Windows XP, so every function added in later versions of windows is missing (Common Controls 6.0 for example). At the top of every file is the following: "header translated with help of SWIG FB...
by stephanbrunker
Mar 01, 2014 12:12
Forum: General
Topic: Windows header files
Replies: 6
Views: 1462

Windows header files

Hello, as far as i found out, the *.bi Header files for freebasic are quite incomplete. I needed only a fraction of the missing ones, but here they are: 'ListView Constants #Define LVM_SETVIEW (&h1000 + 142) #Define LVM_SORTITEMSEX (&h1000 + 81) #Define LV_VIEW_ICON 0 #Define LV_VIEW_DETAILS...
by stephanbrunker
Jan 25, 2014 23:04
Forum: Windows
Topic: SHCreateStdEnumFmtEtc ?
Replies: 1
Views: 977

SHCreateStdEnumFmtEtc ?

Hello, realizing a drag & drop Operation is somewhat tricky. For DropTarget, there is an example in the "examples" Folder of FreeBasic. But for the IDropSource, you Need also an IDataObject Interface, which contains the EnumFormatEtc method. And for this, there is a function in the API...
by stephanbrunker
Jan 20, 2014 11:21
Forum: General
Topic: Overloading bit & Val
Replies: 0
Views: 661

Overloading bit & Val

Hello, so far, I succeeded in refining and further developing Richard's Bigint solution. New the TYPE bigint is nearly fully integrated: The Header: Type Bigint ' a little endian, two's complement binary number s As String ' packed into a string, in blocks four bytes long ' Constructors '-----------...
by stephanbrunker
Jan 01, 2014 20:38
Forum: Windows
Topic: Subclassing a Editbox
Replies: 6
Views: 2479

Re: Subclassing a Editbox

I tried several combinations, and as far I can say, createdialogparam and setwindowsubclass or setwindowlongptr simply wouldn't work together. But if there's no disadvantage, it works fine if you simply check the messages in the message loop and redirect them - and if you have multiple editboxes, in...
by stephanbrunker
Dec 30, 2013 23:51
Forum: Windows
Topic: Subclassing a Editbox
Replies: 6
Views: 2479

Re: Subclassing a Editbox

Okay, I found the error. Every time when I use something "out of the box", it doesn't work until I've completely understood it myself (and then I doesn't need a "out of the box" solution ...). In this case, the templates of FBEdit caused the problem. The Template "DialogApp&...
by stephanbrunker
Dec 30, 2013 19:16
Forum: Windows
Topic: Subclassing a Editbox
Replies: 6
Views: 2479

Re: Subclassing a Editbox

Thanks Michael for helping ... but it doesn't work out. I generated a new project in FBEdit, and if I integrate your code in the standard template it looks like: dropfiles.bi: #Define IDD_DIALOG 1000 #Define IDC_EDT1 1001 #Define IDC_BTN1 1002 #Define IDC_EDT2 1003 Dim Shared hInstance As HMODULE Di...
by stephanbrunker
Dec 28, 2013 13:40
Forum: Windows
Topic: Subclassing a Editbox
Replies: 6
Views: 2479

Subclassing a Editbox

Hello, in my Windows GUI program I want to include a file drag-and-drop functionality. I have solved the problem for the moment with DragAcceptFiles for the Editbox and a redirection for the WM_DROPFILES message. The msg.hwnd is the handle of the editbox, and i change this in the message loop to the...
by stephanbrunker
Dec 20, 2013 21:10
Forum: Community Discussion
Topic: Miscalleneous bugs in the 32bit compiler
Replies: 27
Views: 3732

Re: Miscalleneous bugs in the 32bit compiler

Thank you folks!

I tested three versions:

my variant with no compiler options needed 11,4 seconds for 1 million blocks of salsa20 in my implementation.

asm with -gen gas needed 6,3 seconds

and #define with -gen gcc 6,2 seconds.
by stephanbrunker
Dec 20, 2013 11:58
Forum: Community Discussion
Topic: Miscalleneous bugs in the 32bit compiler
Replies: 27
Views: 3732

Re: Miscalleneous bugs in the 32bit compiler

@fxm: I'm from Germany, and in the german Version of the documentation SHARED the part regarding the strings is missing ... @MichaelW and dodicat: That's why I'd prefer rol and ror included in Freebasic. My ASM was likely the only one I could find with google at all. So, should I compile with -gas a...
by stephanbrunker
Dec 19, 2013 22:46
Forum: Community Discussion
Topic: Miscalleneous bugs in the 32bit compiler
Replies: 27
Views: 3732

Re: Miscalleneous bugs in the 32bit compiler

I have to admit that my intepretation of the definition of "bug" was probably not the right one. But for me, the behaviour was not like I expected. Sometimes, the result for not is expanded to the bitlength of the result, and sometimes not. My current project is a just-for-fun implementati...
by stephanbrunker
Dec 18, 2013 16:27
Forum: Community Discussion
Topic: Miscalleneous bugs in the 32bit compiler
Replies: 27
Views: 3732

Miscalleneous bugs in the 32bit compiler

Hello, I hope this is the right place for reporting the bugs I've found in the 32-bit Version of the Compiler. 1. not() does'nt work properly if used in some conditions, try this: dim as ulongint a, nota dim as ulong b, notb dim as ushort c, notc a=1 nota=not(a) print hex(a), hex(nota) b=1 notb=not(...
by stephanbrunker
Dec 18, 2013 15:53
Forum: Projects
Topic: Arbitrarily Big Integer Routines
Replies: 35
Views: 14360

Re: Arbitrarily Big Integer Routines

For better Integration, I renamed all the functions, fixed the bug in the constructors and so on. The new Version is displayed here: http://www.freebasic-portal.de/code-bei ... g-284.html
by stephanbrunker
Nov 26, 2013 11:28
Forum: Projects
Topic: Arbitrarily Big Integer Routines
Replies: 35
Views: 14360

Re: Arbitrarily Big Integer Routines

Wow, it's too big now ... so here the last part: '================================================================ ' CONVERSION FUNCTIONS '================================================================ ' pack ascii numeric string to a straight binary number in a bigint ' the output bigint will hav...
by stephanbrunker
Nov 26, 2013 11:27
Forum: Projects
Topic: Arbitrarily Big Integer Routines
Replies: 35
Views: 14360

Re: Arbitrarily Big Integer Routines

I liked the code because it's usage is very easy. Unfortunately, it was much, much slower than other bigint implementations. So I've rewritten the division and comparation, optimized some other functions, and the speed is the same now than for example the largeint.bas. I couldn't fix the constructor...