|
Anu_Bala wrote: Any function to extract this?
This is a good job for AfxExtractSubString() .
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
We'd like to run a PowerPoint slideshow at the first time our application is started. Does anybody have an idea how to run the slideshow from within the application?
Thanks a lot in advance.
Snir yarom.
|
|
|
|
|
You could use ShellExecute() to run the show.
E.g.
ShellExecute (NULL,"Open","c:\\a.pps",NULL,NULL,SW_SHOW);
You can do this in InitInstance() etc of your application.
this is this.
|
|
|
|
|
Cheers.
If i want to run the pps slideshow only once i need to registr a bool value (bool firstTime) in the registry. And to check its vaule each time the app starts.
How do i read/write from/to the register this bool value ?
Thanks in advance.
|
|
|
|
|
|
|
search for using a powerpoint automation in your application.
ShellExecute() wont work for you as it opens the .ppt or the .pps file, but into an external app.
|
|
|
|
|
|
When i run my mfc application on Windows 98, dotted rectangle appears on the Check Boxes when i check any. while these rectangles do not appear when i run the same application on XP. How can we remove those rectangles in Windows 98?
|
|
|
|
|
The dotted rectangle behavior is by design. In WinXP, if you turn off Visual Styles, you will see this rectangle.
If you do not want the dotted rectangle, then you will need to use Owner-draw techniques; i.e, inherit your custom checkbox from CButton and draw the thing yourself. You can search CP for many such controls.
this is this.
|
|
|
|
|
I wrote a CHtmlView based application.
And I navigate to www.google.com.
Then I tried to search 'wine'.
but when I clicked the search button, nothing happened.
It seemed that the click event was ignored.
When I use IE,everything is correct.IE immediately show a dialog, said:When you send information to the internet,it might be possible for others to see that inforamtion.
Do you want to continue?
And I clicked 'yes'.Everything is OK.
But what's wrong with my CHtmlView Application??
Thank you all.
|
|
|
|
|
How do you use it?i use it and open www.google.com and when i click search it work not problem
|
|
|
|
|
Hi,
iam developing a dailog based application in Wizard mode.
i need to validate the file which the user is entering.
so i need to validate the file extension.if the extension is wrong i need to pop a message saying wrong file.
How can i validate the file extension.
Regards
Harish.
|
|
|
|
|
|
Again ?? How many times did you already post your question ? What was wrong with the previous suggestions ? Did you look at CFileDialog ?
|
|
|
|
|
I have checked the earlier reply.
As iam in learing curve i am not able to implement that exactly
|
|
|
|
|
Here's a code for you using CFileDialog
CFileDialog *pDlg=new CFileDialog(true);
if(pDlg->DoModal ()==IDOK)
{
CString str=pDlg->GetFileExt ();
if(!str.CompareNoCase ("txt"))
AfxMessageBox ("Text File Selected");
else
AfxMessageBox ("Select text files only");
}
Hope this helps you...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanks for ur reply.
but i have a small issue.
iam using edit box in the dailog box.user enters the file in that edit box.
how to validate that.
|
|
|
|
|
reddy harish wrote: user enters the file in that edit box.
you can use CString::Find()
If you find the extension that you specified in the Find method you would get the index from where the extension starts. You can use this and validify the file extension....
You can also extract the file extension from the string and then use it for validation.(See as I did in my previous post)
There could be some other possible ways also...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
reddy harish wrote: i need to validate the file which the user is entering.
Validate it for what?
reddy harish wrote: if the extension is wrong...
Wrong in what context?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all.
I'm creating a NT service which listens for connection requests on localhost and some arbitrary port. The service needs to be as sturdy as possible. I have a main thread wich listens for connections, and I create a new thread for every connection request. I need to make sure that the main thread keeps on listening for connections and not bomb out. Has anyone ever had major problems binding to the loopback address and listening for incoming connections. In other words, what is the likelyhood of getting major errors while trying to bind and listen for incoming connections ?
Cheers
Garth
Cheers
Garth
F stands for Fundamentalism, a degenerative brain disorder cured by self-detonation.
|
|
|
|
|
I want to write a program starting before windows. For example partition magic (Starting before windows to make the new partitions), windows disk checker (checking the hard drive before system startup).
Thank you.
|
|
|
|
|
|
Hi to all,
I am using 'Windows Media Player' ActiveX Control in my project to recevied streamed using HTTP Protocal.
In XP it is working fine. But in Windows 2000 Server, my applicayion crashes when I set HTTP URL to 'Windows Media Player' Control. e.g. m_MediaOCX.SetUrl("http://COMP-1:8080");
There is 'wmp.dll' file with exe.
What might be the problem in Windows Server 2000?
Plz. hepl me.
Thanks & Best Regards,
Aniket Salunkhe
|
|
|
|
|
Hi, I need to find the French, German, Spanish and Italian translation of the text which is displayed on the windows message box buttons: OK, Cancel, Yes, No, Abort, Retry and Ignore. Can anyone provide them, or point me to somewhere where I'd find them myself?
Joel Holdsworth
|
|
|
|