Recent Posts

Pages: [1] 2 3 ... 10
No difference with this code:
Code: [Select]
#include <windows.h>
#include <stdio.h>
#include <stddef.h>
#pragma comment(lib, "msvcrt.lib")

int main(int argc, char *argv[])
DCB dcb = { sizeof(DCB) };
printf("sizeof(DCB) %d 28\n", sizeof(DCB));
printf("DCBlength: %d 0\n", offsetof(DCB,DCBlength));
printf("BaudRate:  %d 4\n", offsetof(DCB,BaudRate));
printf("wReserved: %d 12\n", offsetof(DCB,wReserved));
printf("Parity:    %d 19\n", offsetof(DCB,Parity));
printf("wReserved1:%d 26\n", offsetof(DCB,wReserved1));
return 0;
I have an old windows console app that is a small terminal program. I can use it in a console app like a bootloader to talk to my microcontrollers. The micro talks to teraterm just fine at 115200. The vs2017 compile of the term program also shows the menus from the micro at 115200. The same 13k c file compiled with pellesc8 spits out binary, like the stopbits or baudrate is bonkers. There is a bug report that the comport dcb struct might not be padded right or something. The com port stuff is in winbase.h. When I include windows.h in the pelles compile, it gets included from the pelles includes right? I have win10-64 on my machine. At work I'm running win7-32 and probably an older version of pelles, and everything was working. So, there's something about the serial port stuff that isn't working. Maybe someone can write a c console app that sends 'the quick brown fox' out a serial port at 115200 and compile it in vs and pelles, see if it works, report your os ver and 32/64. Thanks folks.
Announcements / German translation updated for version 9.00
« Last post by Pelle on Yesterday at 01:14:39 pm »
The German translation is now updated for version 9.00, thanks to Christian.

It will be included in the Setup at the next upload (final or Release Candidate #3, depending on what happens in the near future with bugs), but can be separately download here for now:

(I also fixed some translation links on the download page that wrongly referred to version 8, sorry about that)
Tips & tricks / PellesC 9 dbg
« Last post by TimoVJL on Yesterday at 12:51:28 pm »
This small test project use mspdbcore.dll (v12->) to write pdb.
It reads test2.dbg in test.
Use temporary files in tests.

Code: [Select]
SYMSRV:  C:\code\x64dbg\x64\symbols\hello-msvcrt64.pdb\5BEB47315BE54758B90D5ED6BBE9CD131\hello-msvcrt64.pdb not found
DBGHELP: hello-msvcrt64 - public symbols 
General discussions / Re: SQLite
« Last post by TimoVJL on June 20, 2018, 11:38:40 pm »
VACUUM just remove unused pages ?
General discussions / SQLite
« Last post by Jokaste on June 20, 2018, 11:08:03 pm »
What is the difference between VACUUM and the pragma OPTIMIZE?

Announcements / Re: Version 9.00 (RC2) is now available
« Last post by Pelle on June 20, 2018, 06:33:36 pm »
Announcements / Re: Version 9.00 (RC2) is now available
« Last post by akee on June 20, 2018, 06:16:25 pm »
Thanks Pelle.
Announcements / Re: Version 9.00 (RC2) is now available
« Last post by Christian on June 20, 2018, 04:57:05 pm »
Great to have a new version coming up :-)
Announcements / Version 9.00 (RC2) is now available
« Last post by Pelle on June 19, 2018, 06:31:28 pm »
Pelles C version 9.00 (RC2) is now available for download:

Major changes:

Changes for RC2:
  • Added definitions of far, near, pascal, FAR, NEAR to Windows includes (Go Win16, or whatever ;)).
  • Added reposition of mode ComboBox also for some Add-In messages sent to main window (AIM_ADD_COMMAND_W, AIM_REMOVE_COMMAND).
  • Added resource compiler protection to most C runtime includes (added #ifndef RC_INVOKED .. #endif). For projects using the same master include file for both C and RC files.
  • Dropped handling of conflicting typedef names in the debugger, never display as "type1/type2/..." (just too confusing).
  • Enhanced precision for last digit when converting from string to floating-point. This affects at least strtof(), strtod(), strtold(), atof(), wcstof(), wcstod(), wcstold(), and %e, %g, %f, %a conversion specifiers for scanf family of functions.
  • Fixed painting problem when starting the IDE with an empty workspace on a non-maximized main window.
  • Fixed one problem in the compilers register allocator.
  • Added attempt at a more sequential layout of machine code when full debug info is requested from the compiler (hopefully helping the debugger associate source code with machine code, and accepting more breakpoints).
  • Added new linker behavior: adjust default operating-system version down to any specified subsystem version.
  • Fixed problem with missing callback annotation (calling convention) in Windows aclapi.h.
  • Fixed problem with internal debugger exception during loading of X64 exception info (room for irony here :)). Only happended for some projects, and only when assembly files were part of the project; "interesting problem".
  • Fixed problem in compiler optimizer with weirdly written "C" code.

Pages: [1] 2 3 ... 10