|
The advantage of using ShellExecute is that you do not need to know:
1. the file type that is being opened
2. the default application associated with the file type
Becasue ShellExecute takes care of it automatically. Is there a reason why you don't want to use ShellExecute ?
To answer your query, what type of file are you wanting to open?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
What do you think about CreateProcess ?
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 )
|
|
|
|
|
"_$h@nky_" wrote: Can anybody please tell me any other api than ShellExecute
See here.
"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
|
|
|
|
|
Hi,
I am getting problem in counting attachment of a mail. Code is
_MailItemPtr pPrevMail
.
.
.
Attachments *attPtrPrev=pPrevMail->Attachments;
int nCount=attPtrPrev->Count;
|
|
|
|
|
MPTP wrote: I am getting problem in counting attachment of a mail. Code is
Define: "problem"
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
getting exception at
int nCount=attPtrPrev->Count;
|
|
|
|
|
MPTP wrote: getting exception at
What exception?
OTOH: Have you verified that attPtrPrev is a valid pointer? (May be the email didn't have any attachments at all).
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Mail has attachment and attPtrPrev is not NULL.
I track using GetLastError() but it is giving 0.
try
{
int nCount=attPtrPrev->Count;
}
catch(...)
{
DWORD d=GetLastError();
}
|
|
|
|
|
MPTP wrote: catch(...)
If you find out the exact exception instead, that might give you an idea of what is going wrong.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
I have a MDI project, when I close the project I'll to record the views showing sequence in order to renew, in some articles I know to use the Z-order, but I can't find more information, please help me!
|
|
|
|
|
Use GetTopWindow[^] and GetNextWindow[^] to get the Z-Order of child windows.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
hi guys, i m quite new to programming and i hav dis project i hav to submit this week, any kind of help will be deeply acknowledged,
please find the lnk below....
http://undergraduate.csse.uwa.edu.au/units/CITS1210/Project1/
|
|
|
|
|
|
well i already did that, but to no avail
plz help me out.....
|
|
|
|
|
You can of course post homework queries here. We don't care if you're a student or a professional. But people here have a tendency to offer help only if you are willing to put in efforts from your side first.
Don't expect someone to download your code from some URL, fix any and every issues with it and reply back to you. To quote a Chinese proverb, "Man who waits for roast duck to fly into mouth must wait very, very long time".
So, what is your problem, what have you tried and where are you stuck?
Drake ramore wrote: Its urgent please ... plz
PS: People hate "urgency" and SMS lingo here.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Did you fail to read this policy:
In accordance with this policy, you may discuss with other students the general principles required to understand this project, but the work you submit must be the result of your own team's effort.
I do not think that we qualify as being a part of your team. What of your partner? Is s/he willing to fail this assignment/class by not adhering to policy?
If you have a specific question about a piece of code, ask it. But don't ask others to do your work for you. I'm sure Dr. Barone would agree with this.
"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
|
|
|
|
|
DavidCrow wrote: If you have a specific question about a piece of code, ask it. But don't ask others to do your work for you. I'm sure Dr. Barone would agree with this.
Of course, Mr. David. I am in complete agreement with you.
Cheers,
Barone.
|
|
|
|
|
Hello Friends
I m creating a one dlu where I m trying to get handle of child window(ListBox of Dialog) that is defined in another dlu.
First I Get handle to main Dialog by using FindWindow as:
HWND GR=FindWindow(NULL,"Edit Group"); //Edit group is Dialog name
I m having one groupList having Id IDC_GROUPLIST.
Now I want to get Its handle.
I tried FindWindowEx as
FindWindowEx(GR,NULL,MAKEINTATOM(0x800),"ListBox");
But I m not getting the result .I m not sure abt last parameter.
M i doing right or suggest me some other solution to get cild Window handle?
Thanks & Regards
Yogesh
|
|
|
|
|
yogeshs wrote: FindWindowEx(GR,NULL,MAKEINTATOM(0x800),"ListBox");
You could try FindWindowEx(GR, NULL, "LISTBOX", NULL); instead.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks,It is working.But can u suggest me for spinner b'coz I m having too many spinner in my Dialog but I need the handle for a specific spinner.
|
|
|
|
|
All controls have an ID that is defined by the resource editor.
You can use GetDlgCtrlId[^] on the control handle to check if it is the handle of the control that you're expecting.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I need that handle in different dll where i dont have Id.
If I have that Id then I can use GetDlgItem.(In that case there was no prob).
but I m not having in this dll.
|
|
|
|
|
I still think it will work. You should try it.
I can think of another way of doing this.
Create a hidden control with a caption just after the control that you're targeting.
By after I mean in terms of Z-Order.
Then after you get the handle to your control, you can use GetNextWindow[^] and GetWindowText[^] to check if it is the control that you're targeting.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I tried with this but it is always returning only the text of One Id.
I saw that "GetWindowText cannot retrieve the text of a control in another application." in MSDN.
What I do now?
|
|
|
|