setlocale() with LC_MESSAGES
I'm building the Windows version of a cross-platform app. It was originally written for gcc (i.e. mingw, on Windows) but in my case I'm building with MSVC. One of the source modules has this line:-...
View ArticleCode template writer
Hi guys, I'm learning C++, but I have no idea about how to write this program. "Write a program to read in a filename via stdin and write a C++ source template to it. Ensure that the generated file...
View ArticleNew to C++
Hello all, I have recently began learning C++. My programming experience is limited mainly to the old VB, VB6 and a bit of experience with VB.NET... I started programming in high school back in 1980...
View ArticleC++ Disabling printscreen key
Hi, Im new to c++ and I was wondering if someone can help me. I would like to disable the printscreen key inside a game. I run a small online game server and if a player uses printscreen key rapidly he...
View ArticleHooking COM objects using DLL injection in a Process
Hi everyone, In my research I want to hook (intercept) the method (virtual tables hook) "ExecQuery" of "IWbemServices" interface(COM objects) and I use Application Verifier (note: important only for...
View ArticleHow can I convert the strings to integers?
Hello, everybody can y'all be so kind to help me with my program? I am trying to convert strings to integers. This is my task: Open a file "numbers.txt" read integer numbers as strings from the file...
View Article[RESOLVED] Need help with piece of code
Code: #include "stdafx.h" #include <iostream> #include <string> #include <Windows.h> int main() { int mxhp, chp, emxhp, echp; int atk, def, dam; int...
View ArticleGetActiveObject() returns "Operation Unavailable" (0x800401e3) when Excel is...
In Windows 7, Im trying to control Excel 2013 with OLE Automation. It works fine if Excel hasnt already started up. Im attempting to use GetActiveObject() to tell if it has started up, but I always...
View ArticleMFC code
Hi, ALL, Does anybody have an old MFC source code? I am looking for a font property page source. I currently have MSVC 2010 Pro, but I don't see this source code unfortunately. Thank you in advance.
View ArticlePerformance issue when drawing on MFC
Hello all & Thanks for reading this, -I would have a question on you: -I have created a small application on MFC/C++ that draw different geometric shapes on screen using the mouse (like Paint)....
View ArticleCustom Save dialog
We have a commercial video editor written in MFC/C++. We want to do some custom stuff with the Save dialog that simply isn't possible with the new IFileDialog built in to Windows Vista+ and the old XP...
View Articleneed help with this code
says this when i try to run it:fatal error LNK1169: one or more multiply defined symbols found here is the code: Code: #include <iostream> using namespace std; int main() { // This...
View ArticleHow do I create a new desktop with CreateDesktop with different wallpaper?
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx How do I create a new desktop with CreateDesktop with different wallpaper? Thanks Jack
View ArticleWhy does this not work properly
I am new to c++ and im making this calculator but when i square or square root a number it still asks for another one how do i stop this from happening? Code: #include <iostream> #include...
View ArticleHow to make a window refuse/filter off some window messages?
when some messages coming to the window, I want to process some of the types, but refusing specific types I don't really want to handle. Is it possible? This is done to a compiled executable...
View ArticleWindows 10 - Size of Radio Buttons and Checkboxes
Hi We have a UI where a customer have reported problem when running on Windows 10. On W10 the radio buttons and checkboxes are bigger than "normal" (compared to when they used W7), which give the...
View ArticleIs it hard to emulate the theme service of windows 7?
Once the secondary shell is decoupled from the master one, I need to write an emulated theme service. How can I write a emulated theme service easily? What I really want to do instead is to use the...
View ArticleNothing happens when Control Panel App Run as admin after migrating to VS2015
We have one legacy Control Panel App (.cpl) that use for registry and configuration file modification. Previously it was compiled on Visual Studio 2008 and used on Server 2012 & Windows 7. We have...
View ArticleDual monitor issue
I have a Windows application in Delphi 5. I have two monitors. When my application runs, the parent is displayed on the first monitor. When I move the parent window to the second monitor and click a...
View ArticleHow to move a process from one window to another
The hidden desktop is created with HDESK hidden_desktop = CreateDesktopA(...); I want to move the current process which contains this call to CreateDesktopA into the hidden desktop, I can't find any...
View Article