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...
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)...
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...
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...
The program I have built works about 95% of the time without crashing. I have placed error codes on the OnConnect, OnRecieve, OnSend and OnAccept and there are no errors. It appears the problem occurs between:
m_strCardNumber = dlgInsertCard.m_strCardNumber;
if (m_strCardNumber !=...
c:\Documents and Settings\Ernie\My Documents\Visual Studio Projects\ICServer\ICServer\ServerSocket.h(13): error C2061: syntax error : identifier 'CICServerDoc'
does that not mean the ICServerDoc.h file is missing???
I moved it up and down the list of #include and it still gives me the error...
Ok, this is more or less a continuation of the winsock question. Through looking over some working programs I have found that I needed to establish a pointer to the CICServerDoc class. All my work is being done in the CICServerView class since I have it linked into a database.
I searched...
The tutorial I have here goes through how to create a socket in a dialog class. Here is what my question is. The app I am building is a SDI with database, so I have a CFormView.
To set up a socket it says I need to set up a pointer to the parent dialog window.:
SetParent(CDialog* pWnd)
since...
I was thinking on ways of altering the AfxMessageBox or MessageBox from a button shut down to an auto close. Is it possible?? With my other apps, I remove the OK button and in the InitDialog part, I set a timer. And in the OnTimer() I count down then call the OnOK();.
Beings that...
I have spent weeks on end learning Visual C++ 6.0. And a few weeks ago I upgraded from the learning edition to this full blown app. Of course there are changes to it. And I am lost. It comes with very little starter information so here is my question.
I have a program of which I added a...
I have been doing some looking around on ways to read certain characters of a CString into different variables and found substr();. But when I impliment it, I get an error:
C2039: 'substr' : is not a member of 'ATL::CStringT<BaseType,StringTraits>'
with
[...
I tried to implement the OnDraw() function on a dialog box I added to an SDI document. It doesn't update my window. I just get blank spaces where my static boxes are. Is there something I have to implement before I can use OnDraw?? I tried UpdateData(TRUE); as well as UpdateData(FALSE)...
When I do the GetLength() I get an error when I check the number. No matter what length I make it, it always is wrong.
Here is what I have, and quite frankly I don't see any error in the code.
void CInsertDlg::OnOK()
{
// TODO: Add your specialized code here and/or call the base class...
Ok, I am now beginning to feel like a ninny.
I thought that when a dialog box closes (with Ok or Cancel) it passes an UpdateData to the next window. When I put an OnUpdate and code in there, it doesn't do anyhting. Here is what I am doing.
I have a CFormView Window starting with the...
I recently was using a Learning edition of Microsoft Visual C++ (ver 6). A few days ago I went out and bought Visual C++ .net 2003 so I can have something that removes that annoying nag screen. Now, when I compile my previously working program, I get:
Visual Studio...
First off, I am farely new to C++ programming. Now, for my problem. I am developing a small application that requires no user intereaction (no keyboard or mouse), But I want to run some tests to emulate the hardware before I shell out $3000 on the needed equipment. The program accesses a...
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.