NO

Recent Posts

Pages: 1 ... 8 9 [10]
91
Windows questions / How to use unicode strings in edit dialog?
« Last post by bitcoin on November 27, 2021, 01:51:36 pm »
Hello,
I have some dialog with edit control, but I can't copy-paste symbols like ☣ - it transforms to ?

Project-properties-encoding == utf-16 . What can I do?

92
Bug reports / Re: IDE crash on autocomplete when casting a pointer
« Last post by Pelle on November 22, 2021, 07:25:52 pm »
I made an error reporting the snippet, now I have fixed it (was missing the 'lParam' in 'MoveWindow(hwnd, (POINT *)lParam-').
I can confirm that it happen almost always when a cast to a pointer is applied.
OK, thanks, now I can reproduce...

(...even the Visual Studio JIT-debugger catches on, eventually, after a minute or so... not terribly impressive...)
93
Bug reports / Re: IDE crash on autocomplete when casting a pointer
« Last post by John Z on November 21, 2021, 10:50:33 pm »
It crashes version 10 as well.
to reproduce first paste in the line below

MoveWindow(hwnd, ((POINT *)lParam)->x, ((POINT *)lParam)->y, width, height, TRUE);


1) remove second ) shown in red
2) remove first > shown in red
3) now put first > back and then click in the iDE somewhere else.

IDE will go busy then 'not responding' then total crash a few moments later.
Restart IDE and it will ask if you want to restore the open file from a backup.

John Z
94
Bug reports / Re: IDE crash on autocomplete when casting a pointer
« Last post by frankie on November 21, 2021, 10:14:57 pm »
Thanks Pelle.
I made an error reporting the snippet, now I have fixed it (was missing the 'lParam' in 'MoveWindow(hwnd, (POINT *)lParam-').
I can confirm that it happen almost always when a cast to a pointer is applied.
95
Bug reports / Re: IDE crash on autocomplete when casting a pointer
« Last post by Pelle on November 21, 2021, 06:53:11 pm »
I will see if I can reproduce this. Right now I can't...
96
Bug reports / IDE crash on autocomplete when casting a pointer
« Last post by frankie on November 21, 2021, 12:07:31 pm »
In the following snippet :
Code: [Select]
BOOL CALLBACK IoEditProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    switch (msg)
    {
        case WM_INITDIALOG:
             MoveWindow(hwnd, (POINT *)lParam-            //As you press '>' to complete pointer symbol autocomplete crashes the IDE
The statement should have been:
Code: [Select]
             MoveWindow(hwnd, ((POINT *)lParam)->x, ((POINT *)lParam)->y, width, height, TRUE);
97
General discussions / Re: __POCC__OLDNAMES
« Last post by frankie on November 17, 2021, 06:15:49 pm »
As general rule of thumbs you should never set compiler internal symbols (those prepended by one or more underscores), because they are automatically set by the compiler when appropriate configuration is selected using compiler switches.
This because the symbols definition could be only a part of internal compiler configuration.
98
General discussions / Re: __POCC__OLDNAMES
« Last post by Akko on November 17, 2021, 06:13:37 pm »
Thanks a lot, that did it!

Accidently I looked up CC options, but not POCC options which are many more, and not all are accessible by the IDE project options dialog box.
99
General discussions / Re: __POCC__OLDNAMES
« Last post by TimoVJL on November 17, 2021, 05:41:01 pm »
Use pocc -Go
Quote
Description:
The /Go option makes the compiler accept alternate names for some C runtime functions. It will also define the symbol __POCC__OLDNAMES in the compiler.

100
General discussions / __POCC__OLDNAMES
« Last post by Akko on November 17, 2021, 04:44:27 pm »
I am using latest version 11.00.2. My program does not compile with POCC although it does compile with gcc, vcc, clang, tcc.
Reason: the program section for file I/O uses Posix functions like open, read, close.
However POCC prepends them with an _underscore like _open, _read, _close (declared in <io.h>)
IIUC when the preprocessor symbol __POCC__OLDNAMES is defined, they are recognized in Posix syntax as well.
But I just can't get it to work.

CC-flags: -Tx64-coff -std:C99 -Ob1 -fp:precise -W1 -Gd -Ze -Zx -J
LINK-flags: -machine:x64 -subsystem:console kernel32.lib advapi32.lib delayimp64.lib

If this is no bug but just my incompetence, please feel free to move my posting to where it belongs
Pages: 1 ... 8 9 [10]