[C++] - can i connect the class with events?
i'm learning class's. i understand that a class it's a like a variable type and can have atribuits\properties and methods(with or not with parameters). and i understand that a controls(window, button,...
View ArticleGet the data from edit box to associated member variable
Hi all,I am just trying a simple program that need to get some data from edit box.I created a MFC edit box using the wizard as a value of type integer.int m_AllocCount; // this is member variable...
View ArticleDestroyWindow behavior
Hi,I am getting strange result while executing below code.LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam){ int wmId, wmEvent; PAINTSTRUCT ps; HDC hdc; TCHAR...
View ArticleGet screen coordinates of window under the mouse cursor
I want to get the screen coordinates of the window that is under the current mouse cursor position. I may want get both the whole window coordinates and the screen coordinates of the client area of...
View ArticleGetTempFileName unexpected behavior
I have two tabs in the same IE process accessing a global file cache that uses the temp directory to store files. The file names are generated using GetTempFileName.Below is the code...
View ArticleCOM Interface - Sending events to connected clients
Hi!I'm currently working on implementing events to an existing COM interface. The interface use connection points to send the events and it's all generated using the built in generators of Visual...
View ArticleControlling NUM LOCK lamp on multiple keyboards.
I have a requirement to control, individually, the state of the NUM LOCK lamp on each of several USB keyboards connected to one PC (please don't ask why on earth I'd want to do such an odd thing - but...
View ArticleHow to send and receive data from usb port using VC++?
How to send and receive data from usb port using VC++?
View ArticleCRRedist and Vcredist installation in different drive
Hi. I'm just new to forums so please bear with me.My company develops a software which we offer to spas to help run their business. We install these CRRedist and Vcredist as pre-requisites so they can...
View ArticleBuilds are failing: cl.exe returns -1073741805
Hello!All of a sudden all my Visual C++ 2008 projects fail to build. The error message is Project : error PRJ0002: Error result -1073741805 returned from 'd:\Program Files (x86)\Microsoft Visual Studio...
View ArticleWinHTTPSetOption and "remove" option issue?
Hi,i need some help with WinHTTPSetOption and "remove" option what is set by WinHTTPSetOption.I need to "unset" this options:first if i receive an error WINHTTP_CALLBACK_STATUS_SECURE_FAILURE i set...
View ArticleC++ ile Resim encode ve decode yardim.
mrb arkladaşlar. Benim yapmak istediğim şey. 1- bilgisyardan bir image dosyasını alıp onu base64 olarak encode etmek ve tekrar bilgisyara kaydetmek.2- sonra bu encode dosyasını alıp decode ederek char...
View ArticleWhy doesn't the VS2005 debugger show the actual 'this' address?
I'm using VS2005 debugger and noticed something I wasn't expecting and was hoping there was a simple answer: (I know: upgrade ... unfortunately stuck with it and can't...)I have a function where I'm...
View Articleshared_ptr
class myClass{ public: myClass(); ~myClass(){} private: std::shared_ptr<someClass> scObj; }; myClass::myClass() : scObj(new someClass) //works{ scObj = new someClass; //<< error...
View ArticleDrawing is erased when mouse over a layered ToolTip window.
I have created a custom tooltip derived from CTooltipCtrl. It uses layered window and using UpdateLayeredWindow() for drawing. I have faced some issues because CTooltip internally calls...
View ArticleNeed help passing strings
Hello all,I am new to C++ and I am having issues passing string from 2 functions in my code.When I compile my code, i get the following errors: Error7error C2065: 'r' : undeclared identifier...
View Articlereading a text file that has rows and columns and populate an array
Hi i would like to fill 3 arrays from a text file which look like this. Header1 header2 header31 1 12 2 23 3...
View ArticleWhy fprintf or fflush not throw a error when UNC is inactive
i guys,I'm seeing that fprintf or fflush not throw a error when a UNC path( \\computer-name\shared\logs\seq.txt ) is inactive. I started my app and i'm unplugging network cable.fprintf or fflush not...
View ArticleModless Dialog is hiding behind Parent Window.
Hi, I have built the application in MFC. In this application, I have a Modeless Dialog. I have inherited it from CXTPPropertySheet class as I need a Wizard like Dialog with PropertyPages on the Dialog....
View ArticleCreate a System Tray Application using C/C++ which works with multiple...
Hi Community!!I want to create a system tray application having some options using which I can set some parameters.For example Skype system tray supports : 1> Change Online Status 2> Open Skype...
View Article