What does “Size in TCHARs” means?

So we all know that char is 8-bit, and wchar_t is 16-bit. (This isn’t always true, but it is on Windows with Microsoft compilers.) Many (nearly all) of the Windows APIs are implemented under the hood in two versions: one supports Unicode (multi-byte characters) and the other supports 8-bit national character sets. These two functions actually have slightly different … Read more

What is a Windows Kernel Driver?

Kernel drivers are programs written against Windows NT’s native API (rather than the Win32 Subsystem’s API) and which execute in kernel mode on the underlying hardware. This means that a driver needs to be able to deal with switching virtual memory contexts between processes, and needs to be written to be incredibly stable — because … Read more

What exactly are DLL files, and how do they work?

What is a DLL? Dynamic Link Libraries (DLL)s are like EXEs but they are not directly executable. They are similar to .so files in Linux/Unix. That is to say, DLLs are MS’s implementation of shared libraries. DLLs are so much like an EXE that the file format itself is the same. Both EXE and DLLs … Read more

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