Need more explanation on LNK2038 mismatch dectected for '_MSC_VER'
I inherited an old program from a colleague that is no longer with the company. It's an CPLEX optimization we use. It was built in house in C++ using Visual Studio 2005 and CPLEX121. The server where...
View ArticleTab problem when coloring property page
Hi. I am trying to create a property page whose background is a certain color, including the tabs. I am using C++ with MFC in Visual Studio 2008.I came upon...
View ArticleRun-Time Check Failure #3 - The variable 'weathedata' is being used without...
I am new to C language. I was writing this program but I always keep getting a debug error saying "Run-Time Check Failure #3 - The variable 'weatherdata' is being used without being initialized”. Can...
View ArticleHow to capture one particular keystroke?
My application is an Acrobat plugin, written in C++. I am told (in the Acrobat Forum) that my code can register itself to be notified when the user presses certain character.I would like a function of...
View ArticleC++ When my code asks for my full name it only gets my first name and not last
Hello I am new to C++ and when I tried to make my code ask for my full name and then print it, it only displayed my first name. Here is an example of my code:#include <iostream> #include...
View ArticleInsert text in textBox without repeat
I'm with difficulties for insert a text in a textBox or RichtextBox without repeat. This is code used: #include <windows.h> #pragma comment(lib, "user32") void actwnd() { wchar_t...
View Article640x480 up to 7860x4320 and beyond
I still use Win32 for projects, I like fast executionI use the ancient MessageBox and I also use AfxMessageBox toothis is the way I have done it for eons, if there is need for a human, the tools can...
View ArticleVC++ error MSB6006: "CL.exe" exited with code 1
Have someone run into situation that receaved this kind error? I can't find any replays regardint this error. Full error text:C:\Program...
View Articleproblem with IWebBrowser2 -> high load
I wrote an application that contains a IWebBrowser2 element on it's window. It works pretty good, but sometimes it get's very very slow (it then takes about 15 minutes to load one website)... and...
View ArticleWorker Thread Busy Exception
Hello This is what i have to implement : "Create a library that performs a long operation. If a second request comes wait for 30 seconds (if the previous operation is still under computation) . after...
View ArticleDirect2D will not draw in Window
All, I am working with the demo from Direct2D and just simply trying to rearrange the code to allow the introduction of PeekMessage so I can draw in realtime, rather than on receiving a particular...
View ArticleHow to automate drag&drop using SendInput
I want to test a flash application running on browser. I need to drag pieces around in the application. I want to do this by simulating mouse movements using windows api. Here is my navie solution to...
View ArticleAnnoying Switch between apps red arrow
After installing Windows 8.1 Full Version, an annoying red arrow appears permanently on my monitor screen. It covers up a huge portion of the screen and is very obtrusive. You can't move it, right...
View ArticleWritting in txt file (trouble in loop While).
Hi, I'm wanting insert text in a txt file, but I'm having troubles. When I execute the program txt is created and simply his begin flood infinitely with stranges characters.Here is the code:#include...
View ArticleWhy utf-8 character does not show in cmd.exe?
I am testing c++11 string literal with tdm-gcc under windows: #include <iostream> int main(int argc, char** argv) { std::cout << u8"你确定要这么做吗" << std::endl;...
View ArticleMore on registering and requesting to be notified that one particular...
I have seen several C++ implementations of a Keyboard Hook. Some coders claim that a separate DLL is a must: SetWindowsHookEx Example Other programmers offer simpler code (without DLL) [Tutorial]...
View ArticleCreateFile() returns ERROR_TOO_MANY_SECRETS when opening for volume(\\.\C:)
Hello ,I am using CreateFile API to get handle of volume to read first sector in this way :TCHAR*pszVolume = L"\\\\.\\C:" ;hVolume = CreateFile(pszVolume , GENERIC_READ, FILE_SHARE_READ |...
View ArticleWhat is the recommended way to detect that a Control-some-key has been pressed?
Let's say that I desire to catch the Control-A combination.This is my code so far, in a Windows Hook function:KBDLLHOOKSTRUCT kbdStruct = *((KBDLLHOOKSTRUCT *)lParam); if (kbdStruct.vkCode == 0x41) {...
View ArticleProblems using WebSocketBeginClientHandshake()
To communicate using translate google Could not install the handshake with "ws ://echo.websocket.org/". My code is: HRESULT hr = S_OK; string Url02 = "ws://echo.websocket.org/";...
View ArticleTest if a file is deletable without deleting it
Is there any way to determine if a file can be deleted before trying DeleteFile on it? I just want to test if a DeleteFile will succeed without really deleting the file. What I want to do is to create...
View Article