“X does not name a type” error in C++

When the compiler compiles the class User and gets to the MyMessageBox line, MyMessageBox has not yet been defined. The compiler has no idea MyMessageBox exists, so cannot understand the meaning of your class member. You need to make sure MyMessageBox is defined before you use it as a member. This is solved by reversing the definition order. However, you have a cyclic dependency: if you move MyMessageBox above User, … Read more

How can I open a cmd window in a specific location?

Try out this “PowerToy” from Microsoft: Open Command Window Here This PowerToy adds an “Open Command Window Here” context menu option on file system folders, giving you a quick way to open a command window (cmd.exe) pointing at the selected folder. EDIT : This software will not work on any version of Windows apart from Windows XP.

How can you find out which process is listening on a TCP or UDP port on Windows?

New answer, powershell TCP UDP Old answer, cmd (Add -n to stop it trying to resolve hostnames, which will make it a lot faster.) Note Dane’s recommendation for TCPView. It looks very useful! -a Displays all connections and listening ports. -b Displays the executable involved in creating each connection or listening port. In some cases well-known executables host multiple independent … Read more

undefined reference to WinMain@16 (codeblocks)

When there’s no project, Code::Blocks only compiles and links the current file. That file, from your picture, is secrypt.cpp, which does not have a main function. In order to compile and link both source files, you’ll need to do it manually or add them to the same project. Contrary to what others are saying, using a … Read more

How to go from fopen to fopen_s

fopen_s is a “secure” variant of fopen with a few extra options for the mode string and a different method for returning the stream pointer and the error code. It was invented by Microsoft and made its way into the C Standard: it is documented in annex K.3.5.2.2 of the most recent draft of the C11 Standard. Of course it … Read more

How to run a PowerShell script

Launch Windows PowerShell, and wait a moment for the PS command prompt to appear Navigate to the directory where the script livesPS> cd C:\my_path\yada_yada\ (enter) Execute the script:PS> .\run_import_script.ps1 (enter) What am I missing?? Or: you can run the PowerShell script from cmd.exe like this: according to this blog post here Or you could even run your PowerShell script from … Read more

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