So see,a image in 800x600 and a square on thr image
CImage m_Image;<br />
FillRect(GetDC()->m_hDC,CRect(0,0,100,100), (HBRUSH)GetStockObject(BLACK_BRUSH) );//you can use also from a brush handle <br />
I am using CxImageLib. I have included all the include file in the directiory tab and copied all the dlls and lib file of that project in to my project. But when i copile and build my project in shows an error...
fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory
where the #include <stdbool.h> statement is in some library header file.
Drawing with an XOR operation is the usual way of restoring the original bitmap - just do the same XOR draw again. Otherwise, the original draw overwrites the bits where the ellipse goes, and you have to redraw the window to remove the ellipse.
I m using RFX_Text function to retrieve the resultset from the query sp_who (back end is SQL Server 2000). But 3 columns of sp_who returns me nchar data due to which I m getting "Unicode conversion failed" error.
Please suggest me a way to deal with unicode characters.
The member variables m_strLoginame, m_strHostname and m_strDbname are declared as CString.
GetParent() allows you to retrieve a handle to the specified window's parent or owner.So with this pointer that you create ,you will be able to access the data(of the public section)and the member functions of the class that are in the public section of the owner.
Suppose class A is your class from where you are calling another dialog.Then the header file for your called class should be included in A.h(Believing that this is the default header file for class A that you create.)
Somethings seem HARD to do, until we know how to do them. _AnShUmAn_
Now i want when i click these function button other window or .txt will open
and from there i will call other finction to display data .
But as i am new to vc++ I dont know hopw to achive these.
These is second function
// TODO: Add your command handler code here
Do you want to open an external application eg Notepad to display the text file(Use ShellExecute in this case)
If you want to show the text somewhere else you need to pass a pointer to another class from where you want to access the functions.
in wartzDlg.h include MyNewDlg.h(Supposing you name your class this way)
in MyNewDlg.h include wartzDlg.h . Create a pointer for wartzDlg in the header file MyNewDlg.h like CwartzDlg *myDlg;
Now when you call this new dialog from wartzDlg