Category : visual-c++

I’m creating a library for easy detecting various keyboard layout info for active thread. It detects layout lang code, display name, language name, country (localized and no) and so on with help of GetKeyboardLayout, GetKeyboardLayoutName, ResolveLocaleName, GetLocaleInfoEx . But one thing I still cannot understand is how I can get localized language code as it ..

Read more

I have one header file that my teacher requires. I am using a global variable so I can move the value from one function to another. Looking up the problem, someone recommended using a namespace. That did not work. Additionally, I added some guards like someone else recommended, but that did not help either. I ..

Read more

I can’t figure out what’s wrong with my class and why I’m receiving the error message, "expected a declaration" after my ProductDB class. Also receiving "expected an expression" after public and private. I’ve seen some errors are because of some form of class similar to class::classname(variable), but I can’t figure out where I would implement ..

Read more

I’m trying to create derived class cheque inherits the base class bank.The derived has no interest, gives you 4 free transactions per year and charges £2 for each additional transaction.This new class should have a function fees which deducts charges at the end of the accounting period and should contain overriding functions deposit and withdraw. ..

Read more