|
Good morning
how can I add a bitmap into a button
|
|
|
|
|
Hi,
Hope this might help.
<a href="http://www.flounder.com/bitmapbutton.htm">http:
<a href="http://www.codeguru.com/cpp/controls/buttonctrl/bitmapbuttons/article.php/c5163/">http:
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
first go to button properties and change the properties at the styles tab to
icon.
Then create a CButton variable for the IDC_BUTTON name
and then just use seticon()
|
|
|
|
|
See CButton::SetBitmap on MSDN it has an example.
|
|
|
|
|
How to send Trace message to file instead of debugger in Visual Studio 6.00?
ccp
|
|
|
|
|
Hi,
Hope this might help.
<a href="http://www.codeproject.com/debug/xytrace.asp?print=true">http:
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
|
Did you search on the internet for this error but see here[^]
|
|
|
|
|
I am trying to recover my permanently deleted outlook mails through coding
I know that there are many software available in the market that can do so
But i want to do it through coding
I am able to import messages when they are present in inbox through code
but facing difficuly in recovering deleted messages
can anybody just help me in this
|
|
|
|
|
I dont think what you are looking for is going to be available in a ready algorithm . I think it involves specifics such as reading the disk and ascertaining that its a valid file .
I think you will need to analyze the structure of the file and then what is updated in the filesystem so that the file isnt visible and again restore it .
Try looking at some tools at sysinternals . You might find some tool that helps analyze this scenario .
Engineering is the effort !
|
|
|
|
|
Hi,
Please suggest a method to keep an array of smart pointers(IXMLDOMElementPtr) in an dynamic array.
Can we use any built-in collection classes for this purpose?
Please help by giving the best method.
Thanx in advance
|
|
|
|
|
STL vector
Engineering is the effort !
|
|
|
|
|
Actually, in general COM smart pointers can't be used in STL collections without adaption as they overide operator & .
Steve
|
|
|
|
|
So, any other solution?
How to adapt STL collections for keeping smart pointers.
|
|
|
|
|
In ATL you use the CAdapt class. Or you can use smart pointers that don't overload operator & . Another alternative would be to create or use collections that use similar techniques to Boost's addressof[^] template (or use it).
Steve
|
|
|
|
|
Hi guys,
I am developing a dialog based application and CListCtrl is one of its controls. I have selected the check box style for clistctrl. What i want is when user clicks a check box in ListCtrl, that row should be selected. When user selects another check box, selection should be on that row.
Please help me by giving some source code.
Thanks in Advance
Velayudhan
|
|
|
|
|
Use "SetSelectionMark" member function of CListCtrl class
|
|
|
|
|
thanks,
but my question, how do i know currently which check box has been clicked ?
|
|
|
|
|
Use "GetHotItem( )" function of CListCtrl class.
|
|
|
|
|
Hello,
here is something what can be helpful?
First you have to catch the OnClick() Event, and save the previous and current selection!
This is what works:
CMyDialog::OnClickList(NMHDR* pNMHDR, LRESULT* pResult)
{
iSelectionCurrent = m_cListResults.GetSelectionMark();
if(iSelectionOld == -1)
{
iSelectionOld = iSelectionCurrent;
}
else
{
m_cListResults.SetCheck(iSelectionOld, FALSE);
iSelectionOld = iSelectionCurrent;
}
m_cListResults.SetCheck(m_cListResults.GetSelectionMark(), TRUE);
*pResult = 0;
}
regards
break;
-- modified at 4:54 Thursday 12th October, 2006
|
|
|
|
|
Hi,
I am using WMI in my application. I need to know how can I enumerate the list of WMI classes registered on my system.
Thanks in advance.
Sachin
|
|
|
|
|
Somebody please tell me how to implement SLIP? I have no much idea about it. I dont know how i must start with it. It would be of great help if someone can help me as to how to start..
|
|
|
|
|
Take a look at the RFC (http://www.cse.ohio-state.edu/cgi-bin/rfc/rfc1055.html)
PROTOCOL
The SLIP protocol defines two special characters: END and ESC. END is
octal 300 (decimal 192) and ESC is octal 333 (decimal 219) not to be
confused with the ASCII ESCape character; for the purposes of this
discussion, ESC will indicate the SLIP ESC character. To send a
packet, a SLIP host simply starts sending the data in the packet. If
a data byte is the same code as END character, a two byte sequence of
ESC and octal 334 (decimal 220) is sent instead. If it the same as
an ESC character, an two byte sequence of ESC and octal 335 (decimal
221) is sent instead. When the last byte in the packet has been
sent, an END character is then transmitted.
Are you implementing this on Windows ?
I would recommend creating layers ( translated as C++ Classes )
Transport Layer
Slip Layer
You will have to have two threads that do the job of sending and receiving data . In other words the job of the SLIP layer is to send packets by adding SLIP characters and the reverse ( receive packets and then sense the SLIP characters , then strip out these characters and notify the top layer that data has come )
I would suggest implementing callbacks so that the layers above can be notified upon data reception / successful sending of data / error conditions
Additionally you can add CRC checking in the transport layer
The transport layer can contain additionals such as retries , retry counts etc
As for the low level IO , use the standard serial port API's such as PurgeCOmm and readfile and writefile
Engineering is the effort !
|
|
|
|
|
Hello all
I am using SQL server 2000
and in the MFC program I am using CDatabase to do the database operation. Due to multithread environment some times the application give some Transaction Deadlock messages.
I am not able to get much information which transaction occur the deadlock. CDBException is also of not much use.
Is there any API or method that can give me more useful message regaridn the dedalock orrurance and the which transaction occurs the dead lock.
Regards
Anil
|
|
|
|
|
Heya,
I'm trying to find some source code online to address the above mentioned. Can't seem to find anything, however. I am actually developing this program in my spare time and would like some reference code. The program is supposed to be able to execute in the fashion "At +00:00:00 ls -l" for example, or "At @00:00:00 ls -l" and check that the time / commands given are valid, etc. If anyone knows of anything, please let me know.
Thanks always,
TM
T.M.
|
|
|
|