Skip to main content

cup

Hertfordshire, United Kingdom

Mainly C/C++ but I also code in C#, Java, Fortran, Ada, VB, PHP, Python, VBA, VBScript, Javascript, SQL, Linux Shell, Powershell, awk and windows batch for fun. What I consider fun is interfacing between languages or trying to implement new design fads to work in old languages. A lot of my time is spent cleaning up the mess left by the trailblazers and trying to wedge in new functionality into old code.

Jul
17
revised How do I get windows to ignore security level and connect to the internet
added 169 characters in body
Jul
12
comment How to return an address of a const struct member in compliance to MISRA from a C function?
Would void const* as the return value and GAIN_FIP16 const* work? This would mean the pointer is a const, not the value it is pointing to.
Jul
12
answered How do I do horizontal and vertical ScrollBar at the same time? In Visual Studio on MFC C++ Where is the error?
Jul
9
comment Why this tkinter GUI code behaves differently when inside a function?
Alternatively keep all the images in a global list.
Jul
7
comment how to write a split function(like in js) in C?
You could use regular expressions but they aren't part of ANSI C
Jul
4
comment Windows 11 - how to quickly start something from desktop without minimizing opened windows?
Works for me, possibly because I have switched off snapped windows and I don't have any "always on top with no minimize button" windows.
Jul
3
answered Windows 11 - how to quickly start something from desktop without minimizing opened windows?
Jul
2
comment Add a git-<subcmd> on Windows
When installing GIT, in the Adjusting your PATH environment, did you select Git from the command line and also 3rd party software. Note that the git commands will work from cmd prompt but may or may not work from powershell. Could you also post an example of what could be in myScript
Jul
1
awarded Yearling
Jul
1
awarded Yearling
Jun
29
comment Visual Studio cannot output Unicode Characters
You could use mbstowcs to convert everything into wchars first.
Jun
28
comment How to calculator modbus RTU timer period?
You can have a 3 wire connection - tx, rx and gnd. 5 wire - tx, rx, cts, rts, gnd. 7 wire tx, rx, rts, cts, dtr, dsr, gnd. If you are writing code, edit the original post. So it looks like you have a 5 wire link.
Jun
27
accepted New Windows mail client installed, old client keeps asking for password
Jun
27
accepted Outlook already running
Jun
27
answered Outlook already running
Jun
27
asked Outlook already running
Jun
27
comment How to calculator modbus RTU timer period?
Is this a 3, 5 or 7 wire connection? If it is 5 or 7, you need to take care of the DSR/DTR and RTS/CTS too. Without that, nothing will happen. With RS422/485, what connections did you have?
Jun
25
comment Visual Studio Find all references ignores var
@KyleDelaney I stand corrected.
Jun
22
comment JavaScript - number in method is showing typeof string after I have performed a mathematical operation on it
Only use toFixed when you wish to display the result.
Jun
22
answered Is there a Windows equivalent of strndup?
1 2 3 4 5