Search found 1291 matches

by jj2007
Feb 19, 2020 14:12
Forum: Beginners
Topic: Abandoned source code compile issues.
Replies: 8
Views: 244

Re: Abandoned source code compile issues.

Yes, it's VB code. You may find help here.
by jj2007
Feb 18, 2020 9:53
Forum: Beginners
Topic: How to get the Documents folder of the current Windows user.
Replies: 9
Views: 446

Re: How to get the Documents folder of the current Windows user.

You post two lines of code. What do you expect members of this forum to do? Knowing immediately why you got an error? (won't work, almighty gurus are very rare) Guess what is wrong? Provide you with suggestions that might work? Or do you want them to test your code, and their own ideas? In that case...
by jj2007
Feb 16, 2020 15:34
Forum: Windows
Topic: Richedit control - margin with line numbers
Replies: 23
Views: 694

Re: Richedit control - margin with line numbers

Ditch Avira instead. A decent AV must have an option to mark some folders off limits.
by jj2007
Feb 15, 2020 9:04
Forum: Windows
Topic: Richedit control - margin with line numbers
Replies: 23
Views: 694

Re: Richedit control - margin with line numbers

No, that's normal, Aurel. He is a nice guy otherwise, but don't dare to bring disorder in his house ;-)
by jj2007
Feb 15, 2020 1:27
Forum: Windows
Topic: Richedit control - margin with line numbers
Replies: 23
Views: 694

Re: Richedit control - margin with line numbers

dodicat wrote:But I would like an example of fb code and rich edit and line numbers.
I suppose I could mess around myself and get there eventually, but I feel a bit lazy tonight.
Xusinboy's solution works.
by jj2007
Feb 14, 2020 22:56
Forum: Windows
Topic: Richedit control - margin with line numbers
Replies: 23
Views: 694

Re: Richedit control - margin with line numbers

I was messing about making a code editor, so line numbers are a must . See here for a better solution. I have never missed line numbers. If there is an error in my source, the editor jumps to that line, so why should I see the line number all the time to the left of my source? Of course, it should ...
by jj2007
Feb 14, 2020 20:39
Forum: Windows
Topic: Richedit control - margin with line numbers
Replies: 23
Views: 694

Re: Richedit control - margin with line numbers

It works excellent for small sources. Above 32768 lines it goes crazy.
by jj2007
Feb 14, 2020 17:38
Forum: Windows
Topic: Richedit control - margin with line numbers
Replies: 23
Views: 694

Re: Richedit control - margin with line numbers

It works only to a certain extent, Aurel, see here.
by jj2007
Feb 14, 2020 2:24
Forum: Community Discussion
Topic: substrings
Replies: 39
Views: 1644

Re: substrings

Built into the compiler, and crystal clear: print Left$("Добро пожаловать", 5); print Mid$("Добро пожаловать", 6, 7); print Right$("Добро пожаловать", 6) Output: Добро пожалоловать And really, I don't care about those who cry bitterly that the $ sign is too BASIC. I use...
by jj2007
Feb 10, 2020 16:24
Forum: Community Discussion
Topic: winfbe 2.0.3 virus?
Replies: 11
Views: 501

Re: winfbe 2.0.3 virus?

Folks, there is no virus in WinFBE, therefore there is nothing to "fix". The virus warning come from dumb heuristic scans by crappy AV software. The AV companies make a lot of money by scaring people to death. The members of this forum work hard to develop FreeBasic further, and nobody who...
by jj2007
Feb 09, 2020 23:41
Forum: Community Discussion
Topic: substrings
Replies: 39
Views: 1644

Re: substrings

Yes, there is a problem: FB doesn't pass a pointer to the string but rather a reference to a pointer. Add mov esi, [esi]
by jj2007
Feb 09, 2020 16:27
Forum: Community Discussion
Topic: substrings
Replies: 39
Views: 1644

Re: substrings

Yes, I am cheating. But what dodicat posted is not a clean "assembly" version, either, because there are several other functions involved. My function just makes a memcopy, and therefore the timing is roughly the same as for the built-in FB function.
by jj2007
Feb 09, 2020 13:52
Forum: Community Discussion
Topic: substrings
Replies: 39
Views: 1644

Re: substrings

Try this instead: Dim shared as zstring ptr retStr retStr = CAllocate(8000) ' pointer to destination Function SubStringJ naked stdcall ( s As String,StrStart As Uinteger,StrEnd As Uinteger ) As String Asm ' SubStringJ(MyStr,10,ln) push esi push edi mov esi, [esp+12] ' String add esi, [esp+16] ' StrS...
by jj2007
Feb 09, 2020 13:34
Forum: Community Discussion
Topic: substrings
Replies: 39
Views: 1644

Re: substrings

Very fast indeed, dodicat, but: push 0 ; ÚArg5 = 0 push 0 ; ³Arg4 = 0 push dword ptr [ebp-10] ; ³Arg3 => [LOCAL.4] push -1 ; ³Arg2 = -1 lea eax, [ebp-0C] ; ³ push eax ; ³Arg1 => offset LOCAL.3 call 00401C80 ; ÀTmpFb.00401C80 ... so it continues at 00401C80: sub esp, 2C ; TmpFb.00401C80(guessed Arg1,...
by jj2007
Feb 09, 2020 2:56
Forum: Community Discussion
Topic: winfbe 2.0.3 virus?
Replies: 11
Views: 501

Re: winfbe 2.0.3 virus?

False alarm, false positive. If you are curious and have an enormous amount of time to waste, plus a tendency to masochism, try the AV Software sh*t list

Go to advanced search