Search found 62 matches

by stephanbrunker
Jul 27, 2018 17:33
Forum: Projects
Topic: Arbitrarily Big Integer Routines
Replies: 35
Views: 7944

Re: Arbitrarily Big Integer Routines

I have created a github repository and moved the code there. Because the total of 2000 lines, i have split the code into multiple parts, depending on the tasks they do, like the constructors, conversion functions and so on. I have also created an extensive readme with all the neccessary information....
by stephanbrunker
Jul 27, 2018 8:53
Forum: Projects
Topic: Arbitrarily Big Integer Routines
Replies: 35
Views: 7944

Re: Arbitrarily Big Integer Routines

@ur_naz: Speed is something very difficult to get with FB generally. I made a few crypto implementations and they all are slower than their counterparts. And so that is not what I had in mind as I improved this datatype from terrible to acceptable. The idea was to make an easy access to big integer ...
by stephanbrunker
Jul 26, 2018 18:03
Forum: Projects
Topic: Arbitrarily Big Integer Routines
Replies: 35
Views: 7944

Re: Arbitrarily Big Integer Routines

That is very, very easy, given FB's command(): bigintcmd.exe #include "big_integer.bi" dim a as bigint = Command(1) dim b as bigint = Command(2) dim c as bigint = a * b print c end then you can call your executable: bigintcmd.exe "5555555555555555" "8888888888888888888888888...
by stephanbrunker
Jul 22, 2018 8:24
Forum: Projects
Topic: Arbitrarily Big Integer Routines
Replies: 35
Views: 7944

Re: Arbitrarily Big Integer Routines

Simply said - and its also written as comment in the code: Because these operations tend to be extensive computationally, you have the possibility to access them directly. The "private" functions are compare, square, mul2, div2, div and prune and if I understand my comments correctly, they...
by stephanbrunker
Jul 22, 2018 1:55
Forum: Projects
Topic: Arbitrarily Big Integer Routines
Replies: 35
Views: 7944

Re: Arbitrarily Big Integer Routines

@frisian: Unfortunately, I didn't got an notification four your post. In the meantime, Hartmut Ruske fixed some bugs and I am going to apply your recommendations in the next commit at http://www.freebasic-portal.de So, that library is not dead, even if it is kind of exotic … but still I think there ...
by stephanbrunker
Nov 01, 2017 22:13
Forum: Libraries
Topic: Windows header translation issue for Array values
Replies: 4
Views: 694

Re: Windows header translation issue for Array values

@MrSwiss: OK, I'll put the next one at the Windows section. @dkl: I tried different sytaxes, and the only working one was with the combined brackets, because it's in an array inside a type. I don't know if there are other objects the initalizers have to fit into, but that would be an array direct wi...
by stephanbrunker
Nov 01, 2017 16:58
Forum: Libraries
Topic: Windows header translation issue for Array values
Replies: 4
Views: 694

Windows header translation issue for Array values

I found an issue in the windows headers for types consisting an array and the pre-defined values for these types. For example (winnt.bi): type _SID_IDENTIFIER_AUTHORITY Value(0 to 5) as UBYTE end type #define SECURITY_NT_AUTHORITY (0, 0, 0, 0, 0, 5) I cannot see a way to assign the pre-defined value...
by stephanbrunker
Oct 22, 2017 17:15
Forum: Windows
Topic: SimpleVariant.bi (OleVariant-Wrapper with Dispatch-Support)
Replies: 6
Views: 1754

Re: SimpleVariant.bi (OleVariant-Wrapper with Dispatch-Support)

First, thank you for your work! I use SimpleVariant for a COM connection to hMailServer, but there I ran into an issue. For example, the Authenticate() Function returns an Object if successful, and also an Object containing 0 on failure. In other languages, you can simply query that with If returnVa...
by stephanbrunker
Oct 04, 2017 19:07
Forum: Libraries
Topic: undefined reference to `LoadIconMetric'
Replies: 16
Views: 2766

Re: undefined reference to `LoadIconMetric'

The current repository guidelines interdict adding patches for existing versions. So, i moved the patch into another location: https://github.com/stephanbrunker/fbc_105_patch I'm going to fix the lib / header issues I'm stumbling about and add them. And anyone is invited to contribute in that format...
by stephanbrunker
Sep 30, 2017 22:02
Forum: Libraries
Topic: undefined reference to `LoadIconMetric'
Replies: 16
Views: 2766

Re: undefined reference to `LoadIconMetric'

I made a pull request on github. I created a new folder "patch" in the repository and put the changed source files into that (definition files and headers). I also put there an ZIP archive with the files the users have to replace, means the header files and the compiled import libraries. T...
by stephanbrunker
Aug 27, 2017 19:16
Forum: Libraries
Topic: undefined reference to `LoadIconMetric'
Replies: 16
Views: 2766

Re: undefined reference to `LoadIconMetric'

Thank you - that is a lot of info. So, for the moment I create a patch for the changed files and then let us hope that the community can manage the maintenance without dkl. Unfortunately, that part is waaay out of my pay grade ... PS: looks like CalculatePopupWindowPosition is not declared in user32...
by stephanbrunker
Aug 26, 2017 18:50
Forum: Libraries
Topic: undefined reference to `LoadIconMetric'
Replies: 16
Views: 2766

Re: undefined reference to `LoadIconMetric'

Okay, there might be an misunderstanding. You wrote the "WinSDK import libraries" and meant the libraries in FB/lib/win32 or win64. But they are not directly taken from the MinGW distribution - i tried that first, but the MinGW .a files don't work. Same if you try to create them with the M...
by stephanbrunker
Aug 26, 2017 18:08
Forum: Documentation
Topic: Wiki signups
Replies: 47
Views: 21212

Re: Wiki signups

Username: stephanbrunker
MD5: [...]
by stephanbrunker
Aug 26, 2017 13:35
Forum: Libraries
Topic: undefined reference to `LoadIconMetric'
Replies: 16
Views: 2766

Re: undefined reference to `LoadIconMetric'

Nice ... after some digging I found the master/lib/win32/makefile which looks like the import libraries are simply copied from minGW like I assumed in my first post and it looked like the issue was fixed in March 2017 for MinGW64. So, wonderful - I commited hours simply because no one was able to gi...
by stephanbrunker
Aug 26, 2017 12:59
Forum: Libraries
Topic: undefined reference to `LoadIconMetric'
Replies: 16
Views: 2766

Re: undefined reference to `LoadIconMetric'

You don't make it easy to commit ... I have cloned the fbc repository at github and commited the changes in comctrl32.bi and shellapi.bi. And did a pull request. I still have to find out how to use Git correctly with a clone at my computer and so on, but for these little changes that was ok. I also ...

Go to advanced search