Since we are on the subject of closing internet explorer, I have one more thing that comes to mind. Am I capable of closing all the spawns of Internet Explorer (u know, them blasted pop-ups) from within the application? Or even ones created with the click of the Blue e?
I was thinking that since Internet Explorer is itself it's own application which I am simply calling. Do I need to handle the destruction of process?? I was thinking that Internet Explorer would close itself when you pushed the X on the window.
I am just concerned about have a createprocess in...
I currently have created a process:
STARTUPINFO si;
PROCESS_INFORMATION pi;
GetStartupInfo(&si);
CreateProcess("C:\\Program Files\\Internet Explorer\\iexplore.exe",
"http:\\www.100hockey.com", // Name of app to launch
NULL, // Default process...
Hmmm, I will have to look over that a few times. Basically what I want to do is have my application keep focus until I tell it not too.
Basically, I have a dialog window with a user name and password that pops up, sort of like the initial login to win2k, I just don't want them to be able to...
Might I ask you to post the code for how u managed to make your application keep focus?? I can block the events I want, but only as long as the mouse is over the window, or the Dialog box is in the foreground.
That is the thing, I know what u are saying. In your 1st variant where u used
CreateProcess(NULL, "notepa....
If u just used "notepad" it opens a blank notepad up. Which is why I thought it would just launch "iexplore", but it doesn't. I am just trying to find out...
I have done a lot of research into the winsock and network talking. Well atleast enough to write an application that transmits account information into an access database. And updates it on a minute to minute basis. I started with Sam's Teach yourself C++, they have a network chat program in...
Interesting. I was looking at a few examples of the use of CreateProcess and no one pointed it out the way you have. I will try when I get a chance too. I guess I don't understand why it won't open using the command line.
XerxesTheMighty: This works to
--->Snip
ShellExecute(NULL, "open", "www.dol.net"; , NULL, NULL, SW_SHOWNORMAL);
<---snip (exert from 1st post)
Thanks for the pointers though, will try the about:blank.
I am trying to open up an Internet Explorer Window from within a program I am writing.
I have tried using WinExec:
WinExec("iexplore", SW_NORMAL);
WinExec("iexplore.exe", SW_NORMAL);
WinExec("C:\Program Files\Internet Explorer\iexplore", SW_NORMAL)...
Just Ignore this, I am not sure what I did wrong though, maybe it is because my function uses the same name as the CString I am changing.
EX:
Adjust(CString str_ratio, CString str_amount)
coding in here
str_amount = str_ratio;
something like that, but alot longer. :)
Anywho, i worked...
I don't know if it's late or I am just stupid, but I can't get a CString to change.
I have it created when the application is started. Then, during the application I call a function, and from within that function (it is OnTimer()) I change, or atleast try to change the CString. At first I...
I did all that, and it opens and closes the dialog box very very fast.
here is the call:
CTimeLeft dlgTimeLeft;
TimeRemaining(str_validratio,
str_validamount);
dlgTimeLeft.str_TimeLeft =
str_TimeRemaining;
dlgTimeLeft.Create(IDD_TIME_LEFT...
Ok, I am looking for how to get to the settings for a dialog box I created so I can change it from modal to modeless. I was looking through the property window and didn't see it there.
I am calling the dialog like such:
dlgTimeLeft.DoModal();
I am assuming that doesn't force it as a modal...
I actually misread your question wrong. I see u want to go from int to cstring, not cstring to int.
here is the code:
CString m_strMoney;
m_strMoney.Format("%f",currentdeposit);
"%f" = float
"%i" = int
there are more.
I wanted to bring this back up because I found a solution. I actually had 1 error in the code, at one of the points I never closed the connection. After I fixed it, I still had the same problem with the program only working 95% of the time, the rest it never seems to either send of recieve, so...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.