Search found 1066 matches

by jj2007
Mar 24, 2019 13:22
Forum: General
Topic: Squares
Replies: 6321
Views: 358279

Re: Squares

dodicat wrote:for the less well heeled, about 80000 dollars a head (literally).
They will probably end up less well healed.
by jj2007
Mar 16, 2019 14:27
Forum: Libraries
Topic: Win10 :Print_to_pdf in batch mode, without prompt for file name
Replies: 7
Views: 270

Re: Win10 :Print_to_pdf in batch mode, without pronpt for file name

Works fine, compliments! What I find slightly odd is that Acrobat reader asks me, when closing the doc, whether I want to save changes.
by jj2007
Mar 16, 2019 9:41
Forum: General
Topic: [Solved]Why wstring data is different from its raw data
Replies: 3
Views: 127

Re: [Solved]Why wstring data is different from its raw data

Glad I could help, and welcome to the forum!
by jj2007
Mar 16, 2019 7:22
Forum: General
Topic: [Solved]Why wstring data is different from its raw data
Replies: 3
Views: 127

Re: Why wstring data is different from its raw data

It depends on what is "right" for you. Under the hood, memory is 60 4F 7D 59 你好 You are under Windows or Linux? The issue here is endianness: printf("0: %x \n", ws[0]) ' print 4f60 this is a WORD printf("%x ", (*zsp)[i]) ' this prints BYTEs
by jj2007
Mar 15, 2019 14:45
Forum: General
Topic: Self-referential initialisation by Dim.
Replies: 7
Views: 218

Re: Self-referential initialisation by Dim.

For the most curious case, it seems that "dim as integer x = x" means "dim as integer x = any" , yes? dim as integer a=a print "a=";a Gas says a= 4218880, which happens to be the entry point. Gcc loads [ebp-40], which may be 0 or -1. Not everything that looks like code...
by jj2007
Mar 14, 2019 20:11
Forum: Tips and Tricks
Topic: Layered Parallax Effect v0.70
Replies: 14
Views: 481

Re: Layered Parallax Effect

Very cute!
by jj2007
Mar 11, 2019 9:04
Forum: General
Topic: Squares
Replies: 6321
Views: 358279

Re: Squares

If instr() takes several minutes, then you have a serious design problem. Can you post your code?

Code: Select all

93 ms for finding 195400 occurrences of 'Jesus' in a 777 MB file composed of 200x 'bible.txt'
by jj2007
Mar 10, 2019 19:48
Forum: General
Topic: Squares
Replies: 6321
Views: 358279

Re: Squares

You forgot the Dodicat and Google cheatam's algorithm, now known as DaG-ca beta (an idea from badidea) Excellent! 0.106 seconds 50599 DaG-ca beta 0.096 seconds 50599 PopCount asm 0.142 seconds 50599 PopCount FB 0.097 seconds 50599 DaG-ca beta 0.093 seconds 50599 PopCount asm 0.141 seconds 50599 Pop...
by jj2007
Mar 10, 2019 15:03
Forum: General
Topic: Squares
Replies: 6321
Views: 358279

Re: Squares

A table-based solution is fastest: 31 ms for popcounting a total of 159997056 bits 31 ms for popcounting a total of 159982282 bits 31 ms for popcounting a total of 160004121 bits 30 ms for popcounting a total of 159992999 bits 31 ms for popcounting a total of 160005776 bits 31 ms for popcounting a t...
by jj2007
Mar 10, 2019 0:16
Forum: Libraries
Topic: Win10 :Print_to_pdf in batch mode, without prompt for file name
Replies: 7
Views: 270

Re: Win10 :Print_to_pdf in batch mode, without pronpt for file name

Great stuff, marpon! Here is a condensed test file using #define path and #define win10: #define PdfPath "C:\FreeBasic\Print_to_Pdf-master" #define Win10 1 ' put 0 if you run it on older Windows versions /' test example to use libPrint2Pdf32.a or libPrint2Pdf64.a version 1.0 by marpon 08 M...
by jj2007
Mar 09, 2019 11:35
Forum: General
Topic: (SOLVED) macro _WIN32_WINNT return wrong
Replies: 11
Views: 325

Re: (SOLVED) macro _WIN32_WINNT return wrong

To clarify one more bit: It's a constant because YOU instruct the compiler which is your target platform. So, if you are working on an application that is supposed to run on a thousand very, very old Windows XP machines, then you tell the compiler "hey, this is old stuff, please do not use func...
by jj2007
Mar 09, 2019 11:23
Forum: Tips and Tricks
Topic: Code size
Replies: 5
Views: 273

Re: Code size

your code has little, if any use, in practice. I was curious if there was any difference between these two ways to open a file and get a pointer to its content: Dim as long flen=Lof(f) #define version 0 #if version Dim as ubyte ptr pContent = Allocate(Lof(f)), CurPos=pContent, CrPos Get #f, 1, *pCo...
by jj2007
Mar 08, 2019 23:32
Forum: General
Topic: (SOLVED) macro _WIN32_WINNT return wrong
Replies: 11
Views: 325

Re: macro _WIN32_WINNT return wrong

Win7-64 should be version 6.1, build 7601 but the macro returns 1282.
by jj2007
Mar 08, 2019 19:39
Forum: Libraries
Topic: Win10 :Print_to_pdf in batch mode, without prompt for file name
Replies: 7
Views: 270

Re: Win10 :Print_to_pdf in batch mode, without pronpt for file name

Does it miss a file?

Code: Select all

ld.exe: cannot find -lpdfgen32

Go to advanced search