|
for instance, suppose your class having 2 methods DoSomething , JustDoAnotherThing :
CmyClass & myObj = *_pcl;
myObj.DoSomething();
myObj.JustDoAnotherThing()
...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thank you very much!!!
You saved my day, I really, really hate '->'.
|
|
|
|
|
wait, friend, wait: you're going to discover some interesting issues using references.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
oh, I think I already did ...
I tried (global variables):
CakRadioBox *prb = NULL;
CakRadioBox & rb;
well ... it doesn't work, it require initialization
I changed it to:
CakRadioBox *prb = NULL;
CakRadioBox & rb = *prb;
so far so good, but when in Init() I wrire:
prb = new CakRadioBox(10, 134, 44, 24);
rb = *prb
I receive exception 
|
|
|
|
|
Hi,
I have a tree control and i want to know the index of the tree item selected.
Thanks In Advance.
Dhiraj
|
|
|
|
|
Use CTreeCtrl::GetSelectedItem() .
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I want to load a bitmap from the resource file it is like
CBitmap bitmap;
bitmap.LoadBitmap(IDB_BITMAP);
m_staticBitmap.SetBitmap(bitmap);//m_staticBitmap control variable
but this is not working, bitmap is not getting displayed.
thanks in adv
|
|
|
|
|
Have your static box the SS_BITMAP style set?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi All
How to get fixed hard drive name?There is any function for get fixed hard drive?Plz help me
|
|
|
|
|
|
Hi All,
Is it possible to automate all office applications(ms excel,ms word and power point) in single MFC project? All applications expose many sames classes like _Application. This class is available in all three.
How can I do it? Thanks.
|
|
|
|
|
Just use the no_namespace keywork in the #import "..."
Then you must refer each function with the namespace before:
#import <c:\app\office\office\excel9.olb> no_namespace
...
Excel::_ApplicationPtr excp;
...
|
|
|
|
|
Hi,
I am developing a program which is showing video from USB PC Camera.
I want to take picture while I'll press the button present on the USB PC Camera. I have tried a lot but I was unsuccessful. I have used the functions of VFW and done this application.
Any one suggest me how to take the button press event of button present on USB PC Camera????????
|
|
|
|
|
#1) Stop cross-posting.
#2) Read the guidelines[^].
#3) There's way too less information in your post for anyone to give you a helpful answer.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi,
I am raelly sorry as i cannot help but i need your help as i need a code take vedio from usb cam and make it pics.
so i would appretiate if u send my e-mail strongwave08@yahoo.com
|
|
|
|
|
hi,
how to load bitmap in picture box?
thanks in advance
|
|
|
|
|
The most popular "free" mail providers over the Internet are yahoo, hotmail, google and newly "live". But unfortunately I can't send them my email messages using smtp, because I don't know the address of their smtp servers. Can any one introduce me some of them that work with smtp clients like "telnet" or something (I mean those which don't need "webmail" pages over the Internet to send eMail to them)?
Thank you masters!
|
|
|
|
|
Have a look at Nish's article here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
I am using a CTreeCtrl control in my application.
It has a root with all other item as its child. Now what I want is that Whenver a child item is clicked its value should be printed in a edit box.
For this I am using
ON_NOTIFY(NM_CLICK, IDC_TREE_KEN_PUSH,OnSelchangedTreectrl)
event handler and the code is as follows:
void CChatDlg::OnSelchangedTreectrl(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
HTREEITEM hItem = m_ctrlKenPush.GetSelectedItem();
CString strItemText = m_ctrlKenPush.GetItemText(hItem);
if(strItemText!=_T("General"))
SetDlgItemText(IDC_EDIT,strItemText);
*pResult = 0;
}
But the problem is that when i click a child node its parent values gets printed .
Please tell whats the problem.
|
|
|
|
|
Hi All,
Is there any facility/API available on windows which will give me file copying functionality where number of copy operations involved are minimal?
Usually kernel mode APIs and DMA stuff creates few number of redudent buffer copy operations. Can we avoid it?
On unix they have such functionality
http://www.linuxjournal.com/article/6345[^]
|
|
|
|
|
|
Hi again, I remembered a way to copy files across network:
TransmitFile Function
The TransmitFile function transmits file data over a connected socket handle. This function uses the operating system's cache manager to retrieve the file data, and provides high-performance file data transfer over sockets.
Note This function is a Microsoft-specific extension to the Windows Sockets specification.
http://msdn.microsoft.com/en-us/library/ms740565(VS.85).aspx[^]
Hope this one works...
|
|
|
|
|
Hey,
That is really a good information. Thanks.
|
|
|
|
|
hi,
how to draw line and a small circle below that line on a dialog based application? i want to display 8 such lines on a dialog.
thanks in advance 
|
|
|
|
|
Handle the WM_PAINT message.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|