|
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
|
|
|
|
|
Have you installed SP3 for VC4.0, and which Pocket SDK you are using (is it 2003)?
Parag Patel
|
|
|
|
|
I donot know the technical details of the device, as i am new to it , but i heard terms lie ARM 4I, WIN CE 4.0 device
will this help or do you need any specific data
|
|
|
|
|
Better to ask this question in Mobile Development[^] forum.
You may get quick response.
Do not trust a computer...
Always check what computer is doing
regards,
Divyang Mithaiwala
Software Engineer
|
|
|
|
|
when a day is given as input then output should be the weekday
eg:06-04-2009 is given output should be 'monday'
Thanks
RaviRaj
|
|
|
|
|
N.Ravi Raj wrote: when a day is given as input then output should be the weekday
you should refer date time classes in C++ first and then if you don't find a solution, someone here may help.
See GetDay function of COleDateTime
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
urgent please code in vc++
thanks
|
|
|
|
|
If your query is urgent, you can go to rentacoder[^]
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
He can waits for Palini.
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 )
|
|
|
|
|
Hamid. wrote: Palini
Wow, It's me? Uhm.....No, I'm Pallini!
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]
|
|
|
|
|
Yeah thats right.
btw may I ask a quetion?
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 )
|
|
|
|
|
Hamid. wrote: btw may I ask a quetion?
You know you can.
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 was watched mvp.support.microsoft.com last night and I saw name of some members of codeproject(btw I saw your name CONGRATULATION Calro ) I want to know is this depend to mvp that we could to get of codeproject or its different (I only got a mail chris 1 jan)?
Thanks
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 )
|
|
|
|
|
Hamid. wrote: I want to know is this depend to mvp that we could to get of codeproject or its different (I only got a mail chris 1 jan)?
So far I've posted only on Code Project so I got it thanks to Code Project. I think you should be noticed by your local Ms MVP leader in order to get the award.
Good luck & best wishes!
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]
|
|
|
|
|
Well I think its not possible so I need to do it myself.
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 gave more than what you asked for in your query. Now it's up to you to use it.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|