|
Sounds like a PHP thing.
"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
|
|
|
|
|
How to unselect a row in list control by using the code to control?
How to write the code to unselect a row in list control?
|
|
|
|
|
select or unselect?
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 )
|
|
|
|
|
unselect the selected item (by clicking the item) in list control
My list control is fullrowselect(must use the attribute) and I set certain columns to be colorful background by using the color dialog.
If I select the color in the color dialog, and then the item will be automatically selected. I cannot see the color of the select item, becuase the item is selected and shows in hightlught. So I want to unselect the item after I select the color.
|
|
|
|
|
Please check this thread[^].
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
|
Bravo!
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Hi All,
Im having sam.txt file in my Tomcat path.I need to download this file throw IE or Mozilla Firefox using MFC.
URL is:
http://localhost:8080/sample/Upload_Files/sam.txt
I dont know how to open throw MFC.
Pls Help me...........
Thanks & Regards,
Anitha
modified on Wednesday, December 17, 2008 2:12 AM
|
|
|
|
|
I'm not sure if I got you right, but something like this will launch the page in your default browser:
ShellExecute(NULL, NULL, "http://localhost:8080/sample/Upload_Files/sam.txt", NULL, NULL, SW_SHOWNORMAL); Note that you don't need MFC for this - see ShellExecute[^] at MSDN.
|
|
|
|
|
Hi,
I need to download this file.
|
|
|
|
|
Maybe the CInternetSession[^] class will help you. The OpenURL function of this class opens any Internet file and returns a CStdioFile object, which you can use as a normal file object. If you want to save the file, simply read from this file and write into another file.
|
|
|
|
|
|
This might/ought to work (this page[^] supports my supposition)
::ShellExecute(0, _T("open"), _T("http://localhost:8080/sample/Upload_Files/sam.txt"), 0, 0, 0);
|
|
|
|
|
You can launch the IE/Mozilla application through CreateProcess() or ShellExecute() by passing your file path as parameter. The IE/Mozilla will open it for you.
- Malli...!
|
|
|
|
|
AnithaSubramani wrote: (Very Urgent...........)
Why?
AnithaSubramani wrote: .I need to download this file throw IE or Mozilla Firefox using MFC.
Is it mandatory to download the file that way...
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
|
AnithaSubramani wrote: Hi,
I need to download this file.
Do you need to CInternetFile class?
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 )
|
|
|
|
|
|
Hi all,
i want restart option for application.
i m using SDI type of application and split it in 2 columns.
at one form i use a button of restart application here i want if i click on this button than application shall close and than open at initial stage.
is this possible,
if yes please tell me how can i use this.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
One way I can think of is to relaunch your application using CreateProcess[^] or ShellExecute[^] and then terminate the current process.
|
|
|
|
|
Easiest way is to start a new instance of your application, immediately folloed by terminating the current one:
TCHAR thisExe[MAX_PATH];
::GetModuleFileName(0, thisExe, MAX_PATH);
::CreateProcess(exeName, 0, 0, 0, 0, 0, 0, 0, 0, 0);
::ExitProcess(0);
|
|
|
|
|
|
Hi all,
I am using _ultoa_s for conversion of long to string using this way
_ultoa_s ( pDir32->Dir [ i ].fileSize,(char *)Name,sizeof(&Name), 10 );
pListCtrl->SetItemText ( index, 2, (char *)Name);
But the problem is sometimes its executing fine but sometimes it just crashes my application....
i am working in vc 2008..
Thanks in advance
|
|
|
|
|
sizeof(&Name) is the culprit - the size of an address (pointer) is always 4 bytes. (for a 32-bit compiler)
What type is the variable Name? If its a character array, you should use sizeof(Name). if it's a pointer, you need to know the size with which it was allocated.
|
|
|
|
|
L. Madhavan wrote: sizeof(&Name) is the culprit
I missed that point. How ever if the Name is allocated in the stack, there is no problem in using sizeof(Name) .
modified on Wednesday, December 17, 2008 2:34 AM
|
|
|
|