|
may be missed out during caopying the code.It is proper on my machine.But that is not the reason.It is compiling with no error.
|
|
|
|
|
I have a MFC application in which I need to create a temporary editbox on the view. But that editbox does not accept ctrl+C & ctrl+V commands from keyboard. It should support copy & paste by default. I create it with WS_CHILD | WS_VISIBLE styles.
I have entered the Copy paste shortcuts into accelerator table for use in the view.
Does anyone know the reason why it does not paste in editbox? Instead it pastes in the view.
How to correct it?
TIA.
|
|
|
|
|
This is an excellent article explaining all the nuts and bolts of MFC's command routing.
http://www.microsoft.com/msj/0795/dilascia/dilascia.aspx[^]
There will be an exam to make sure you've read it before you're allowed to have any more biscuits. Ever.
Once you've read it, the following will make sense:
I think you need to add an OnCmdMsg handler to your View class, to give the temporary edit box a quick bite at the cherry. Alternatively, use the CMyView::OnEditCopy handler to send a WM_COPY message to your edit box, if it exists. (and same for paste, cut...)
Good luck,
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Hi All,
Can anybody help me to get External USB Hard Disk Drive Temperature.
Thank You
|
|
|
|
|
Do you have a temperature probe?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
As far as I know you can only get the drive temperature via SMART and this won't work over the USB interface.
|
|
|
|
|
Dear Maichael,
Thanks for your reply.Its possible because it is implemented in hdsentinel software.You can find it in www.hdsentinel.com .
Thank you
|
|
|
|
|
Hi all,
Is it just me or the "Add member variable wizard" takes FOREVER to add a control variable (something like 5 to 8 seconds to add one variable)? I wonder what is the 'magic' that it is doing while freezing the entire VS IDE for so long. If I add this same control variable by typing with my hands, I'll probably take the same time (or less may be). I'm really pissed with this "wizard" and would like to know if at all there's a solution to it.
When I go about Googling, I realize that this issue exists for quite sometime (since VS 2002 .NET days ) and a hotfix is available for VS 2002. But I'm using VS 2008 with MFC.
Thanks for any help!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Please repost your query to Visual Studio Forum[^]. It is more likely to get an answer over there.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
As a matter of fact, I'm talking about something that occurs only while using MFC, and I'm sure the regulars here should have faced the problem too. Therefore, my post.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: As a matter of fact, I'm talking about something that occurs only while using MFC...
But it has nothing to do with coding.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I agree, but last time (a year ago?) I posted something on the VS forum, there were absolutely no replies. I was hoping that here, in the C++ forum, the regulars will have a solution for me or at least they would share their experience with me.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I may be a control freak, but I can't remember the last time I used class wizard. Once I realised it was rubbish at anything non trivial, I stoppused using it even for trivial members.
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Given what the wizard is expected to do, it must do it in no time. I wonder what the hell does it do taking so long. Perhaps I must stop using it as well.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
The wizard is slowing thinking what is the best way for polluting your neat code, like, for instance writing for each and every function added a crappy-C# -style access specifier.
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]
|
|
|
|
|
I think you don't feed your IDE properly. Do feed it with regular bugs. It'll become healthy and do things faster.
Hope this helps.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Hi,
I am using the following code
BROWSEINFO bi = { 0 };
TCHAR path[MAX_PATH];
strcpy(path, "");
bi.hwndOwner = this->m_hWnd;
bi.lpszTitle = (csTitle);
bi.pszDisplayName = path;
bi.ulFlags = BIF_NEWDIALOGSTYLE|BIF_RETURNONLYFSDIRS;
CoInitialize(NULL);
LPITEMIDLIST pidl = SHBrowseForFolder ( &bi );
if ( pidl != 0 )
{
SHGetPathFromIDList ( pidl, path );
IMalloc * imalloc = 0;
if ( SUCCEEDED( SHGetMalloc ( &imalloc )) )
{
imalloc->Free ( pidl );
imalloc->Release ( );
}
}
CoUninitialize();
This code is always opening browse dialog with My Documents as selected.
I want to open browse dialog and with a specific folder in selected state
|
|
|
|
|
Do you need to set pidlRoot member of BROWSEINFO?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
I have the folder path with me. I would pass the folder path to above code. How to open the browse dialog with the specified folder in selected state. I don't know how to use the pidlRoot member of BROWSEINFO structure
|
|
|
|
|
VKupunaram wrote: I don't know how to use the pidlRoot member of BROWSEINFO structure
So have you searched?
Selecting a subfolder from a particular folder[^]
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
This code is restricting to a particular folder. I need everything should be accesible. User should be able to select any of the folder.
|
|
|
|
|
The link I provided was merely an example of how to use pidlRoot . It's up to you to actually implement it per your design.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
VKupunaram wrote: TCHAR path[MAX_PATH];
strcpy(path, "");
While unrelated to your problem, you could replace these two statements with:
TCHAR path[MAX_PATH] = { '\0' };
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I have created one Automation project to create Excel sheet. In that i used below code block to execute Macro.
VARIANT Result;
Result = oApp.Run(COleVariant("MACRO1"),
COleVariant(ObjToConvert),
covOptional, covOptional, covOptional, covOptional,
covOptional, covOptional, covOptional, covOptional,
covOptional, covOptional, covOptional, covOptional,
covOptional, covOptional, covOptional, covOptional,
covOptional, covOptional, covOptional, covOptional,
covOptional, covOptional, covOptional, covOptional,
covOptional, covOptional, covOptional, covOptional,
covOptional
);
When i am trying to debug its giving exception.
1. Can anyone please tell me what all arguments means here.
2. Do we have any other method through which one can execute Macro through program?
3. Do we have any method through which we can create data validation list using VC++?
Thanks.
|
|
|
|
|
Hello!
I am completely new to embedded VC++. I have installed the embedded Vc 4.0 and the standard SDk for windows .Net that came along withe the CD.
Now i created a sample dialog based application that must be run on a ARM4i device. I build the solution selecting the Standard SDK and WNCE ARM4I and buid the solution when i selected "Rebuild All" i get the following error message :
"An application targeting a Standard SDK for Windows CE .NET and built for the ARMV4I CPU cannot be run on the Emulator device. In order to run this application on any CPU other than the Emulator, you will have to install an SDK that is compatible with the Standard SDK for Windows CE .NET, then target a shadow platform pertaining to that SDK. "
what should be done now ?
Thanks
|
|
|
|