I have a hierarchy of classes processing serial (COM port) data.
The UI is CpropertyPage ( in main thread) and the port data is retrieved by a COM port thread.
It all works, sort of.
Two...
نوع: مشاركات; عضو: C++ Programming
I have a hierarchy of classes processing serial (COM port) data.
The UI is CpropertyPage ( in main thread) and the port data is retrieved by a COM port thread.
It all works, sort of.
Two...
Given a month and year, I want to write C++ code to determine what day of the week the month starts at. For example, for 2/2013, I want the code to return Friday (or an integer representing Friday)...
How can I get address of current page in Firefox?
Hi all. Suppose a BaseClass has two childs. Now when the childrens' constructors are called, the base class' constructor is also called. Here is the scenario, in code.
class BaseClass{}; class...
Hi,
I am using CreateDIBSection() function frequently in my code but sometimes it is failing.
The value of biWidth is around 6000, biHeight is 4000 and biBitCount is 24 in BITMAPINFOHEADER.
My...
One more strange behavior of stuff in CPropertyPage ( see CListCtrl selecting item inconsistent bellow) .
I cannot select the CEdit control using mouse ( to enter text) , but it works using tab...
Extend your legal chess move identification program as follows:
• Allow the user to add an arbitrary number of pieces to the board (either red/black or
white)
• Allow the user to select a given...
I have a CListCtrl control with single column (item only , no subitems yet) containing text “COMX” - list of all COM ports in the system.
I can select the first and last COM port with mouse...
I am having a problem grasping the constructor initialization in MFC property sheet.
Original page definition with initialization
CMyPropertyPage11::CMyPropertyPage11() :...
I'm updating an existing MFC project from VC6 into VC2010, and adding dockable window functionality. In doing so, I've recreated some CDialog-based windows as CPaneDialogs. In general, this works...
I created at run time window using below styles and left =0
WS_CHILD|WS_VISIBLE|WS_BORDER|WS_THICKFRAME
when I am trying to get windows position ...
Hi,
I am getting an exception on a WaitForSingleObject
Below is the code the Security events parameter of the CreateEvent is NULL I am Wondering if that might be the issue
Event_Handle...
Using an ImageList to load 16 x 16 bitmaps into a toolbar I've been trying to use the bitmaps from that same ImageList for corresponding menu items but I can't get rid of a whiteness around the...
hello;
I tried to write a function that calculates the harmonic average as follows:
long double Harmonique(long double *t,int l) { long double s=0.0; for(int i=0;i
Hi ,all,
When I open a .txt file .I think Notepad will call NtReadFile function .
If I modify content .txt file and then I save txt file . I think
Notepad will call Notepad will call...
I am practicing c++ template programming and got a very confusing question. My purpose is to write a program to output the data of classes. If the the class is an POD (plain old data), use a global...
Hello. I'm trying to open exe file , but there is a problem like this:
but I can compile without debuging or I can debug it, and there is no problem; it works correctly:
what is it a...
#include
#include
#include
using namespace std;
/* here array board[][] is declared to be a global variable*/
int board[9][9];
/* this function returns a...
I'm using opensource library (exprtk http://partow.net/programming/exprtk/[^]) on qt 5.1.0 64 bit with visual studio 2012. But I'm taking c1128 error. Full output of error: C1128: number of sections...
how to get DeviceInstanceId using Scard*API?
Hi,
I want to use event object for synchronization between dialogs.
I am performing an operation to run a command from the command line. Now while the command is running I am displaying a dialog...
Hi,
I am trying to change the tree view control's appearance using vc++. Initially it has + and - minus symbol when expanding and vice verse. Now i want to change the + and - symbol to arrow...
hi
I want to the file name I write in edit box is valid or not.
I check these characters \/:*?\"|
but there is some other chars like Unicode,\t prn,com1,com2 etc
is there any api to...
well I want to make career in programing and i am very good in c programming which i learn ownself, now i would learn next which programming language which have better career scope ! is it good to...