Quartz.NET vs Windows Scheduled Tasks. How different are they?

With Quartz.NET I could contrast some of the earlier points: Code to write – You can express your intent in .NET language, write unit tests and debug the logic Integration with event log, you have Common.Logging that allows to write even to db.. Robust and reliable too Even richer API It’s mostly a question about … Read more

Unable to boot Windows 10 guest using VirtualBox with enabled Hyper-V and WSL2 installed [closed]

Downgrade to WSL1, if you want to save yourself from days of wasted effort. I’ve upgraded to WSL2 and tried a bit to get VirtualBox to work with it and I couldn’t find anything useful. There are few guides suggesting that turning off some features of VirtualBox will make it work, however it will make … Read more

What’s an alternative to GWL_USERDATA for storing an object pointer?

SetWindowLongPtr was created to replace SetWindowLong in these instances. It’s LONG_PTR parameter allows you to store a pointer for 32-bit or 64-bit compilations. LONG_PTR SetWindowLongPtr( HWND hWnd, int nIndex, LONG_PTR dwNewLong ); Remember that the constants have changed too, so usage now looks like: SetWindowLongPtr(hWnd, GWLP_USERDATA, this); Also don’t forget that now to retrieve the … Read more

RegSvr32 exit codes documentation?

The exit codes are not documented. The documentation is here: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/regsvr32 However, the source code for a version REGSVR32.EXE is shipped with Visual Studio 2008. This gives its version as 4.0.0, so is not the same as the one shipped with windows, which reports version 6. http://msdn.microsoft.com/en-us/library/ms177531(v=vs.90).aspx A quick look shows these: #define FAIL_ARGS 1 … Read more

How to return an error code without closing the Command Prompt window?

To get help for command prompt commands use their /? option. Exit /? shows: Quits the CMD.EXE program (command interpreter) or the current batch script. EXIT [/B] [exitCode] /B specifies to exit the current batch script instead of CMD.EXE. If executed from outside a batch script, it will quit CMD.EXE exitCode specifies a numeric number. … Read more

Do Batch files support multiline variables

Or you can create a “real” newline character. setlocal enableDelayedExpansion set NL=^ rem two empty line required echo first line !NL! second line set multi=Line1!NL!Line2 set multi=!multi!!NL!Line3 echo !Multi! With this variant the newline is a “normal” character in the string, so the variables act normally and you can assign them to another variable, this … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)