|
ACTUALLY IT DIDNT FREEZE UP..the whole program still run but.. but when i key in my ip it didnt work..
i tink it because the compiler run though the uility first hence .. it "jam" the program because it cant find any ip address.. cos at the point of start it is a unknow number
|
|
|
|
|
i build a app. its view is drived chtmview, and it can explore internet. but i want chang the content in chtmview, when i open a html page. for example, i want show the datas that are from database in view. how can i do?
|
|
|
|
|
Hello
You can use GetHtmlDocument() method to get IDispatch interface of HTML document object. Then you can query interfaces of your interest: IHTMLDocument2 , IHTMLDocument3 . With these interface you can access entire HTML document. Look at MSDN. All these MSHTML interfaces are documented pretty well.
Andrew
|
|
|
|
|
|
Just wanted to comfirm, is it true that characters like '>' or '<' can't be passed as command line arguments? I have a main function to take in parameters. However, it seems that characters like '>', '<' can't be passed in. e.g.
abc.exe 9000
abc.exe >9000
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
me think that < or > are used as indirection for the command parser ( dos ).
for example,
dir > qq.txt
will put the result of the dir command in the qq.txt file.
if you want to put < or > in a parameter, you could enclose it in "
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Maximilien wrote:
me think that < or > are used as indirection for the command parser
Yeah, i would think so.
Maximilien wrote:
if you want to put < or > in a parameter, you could enclose it in "
Thanks.
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Instead of arguments use the command line itself and parse it using your own code.
GetCommandLine provides you with the raw command line.
Elaine
The tigress is here
|
|
|
|
|
Mine is a console application. No windows api involved. Too bad.
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Weiye Chen wrote:
Mine is a console application. No windows api involved.
You can still call Win32 API's!!! Like GetCommandLine.
And, BTW you *can* create a "windows" even in a commandline program, JFYI!
|
|
|
|
|
ahz wrote:
You can still call Win32 API's!!! Like GetCommandLine.
Oops, i forgot to mention the program will be deployed on a unix environment.:->
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Can give me example of source code of a dialog? I want some example that when I click on a button, it will automatic send a hello message.
|
|
|
|
|
ON_BN_CLICKED( IDC_MYBUTTON, OnMyButtonClicked )<br />
...<br />
void MyDialog::OnMyButtonClicked()<br />
{<br />
AfxMessageBox("Hello Message" );<br />
<br />
}
or something to that effect.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Maximilien wrote:
AfxMessageBox("Hello Message" );
Assuming he wanted to send the hello message to the screen.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
AfxMessageBox("Hello Message" ) is appear a message box in the screen right? But I just want a message to print out on the screen not a message box
|
|
|
|
|
Try to use TextOut() function with reference to window rect coordinates from GetWindowRect() ...
I did not try it out ...but this should work
redindian
|
|
|
|
|
Can give some example of source code on the function that you suggest?
|
|
|
|
|
|
|
|
I just want a message to print on the screen but not a message box
|
|
|
|
|
I have an external application that launches my application. I have a global variable that determines whether my app was launched via the other app or just by opening the executable. If launched via the other application, two processes or instances gets created and the global variable is set to 1. The first instance will be created but the window frame will not be shown. The other instance will display the window. One instance has the global value initialized to 0 while the other one has it set to 1. I need to block the instance that has global variable = 0 and let the other one run. Once that thread completes, I want the other thread (I believe it’s the main thread) to continue running. I tried using a mutex around my code but it still seems to be doing context-switching. How can I put a hold on thread1? I’ve tried using events but no such luck. This is what I have. Thanks!
<pre>
InitInstance()
{
mutex = ::CreateMutex(NULL, FALSE, “X”);
if(mutex==NULL)
{
AfxMessageBox("Error: Problem with creating the mutex");
return FALSE;
}
else {
WaitForSingleObject(mutex, INFINITE);
if (!bGlobalVariable)
{
OneInstance = ::CreateMutex(NULL, FALSE, “instance”);
DWORD dwMutexErr = GetLastError();
if (dwMutexErr == ERROR_ALREADY_EXISTS)
return FALSE;
}
ReleaseMutex(mutex);
}
if (!GlobalVariable)
//show window
return TRUE;
}
</pre>
-- modifed at 17:51 Thursday 25th August, 2005
|
|
|
|
|
I'm looking for ideas. I have an embedded application that must respond to a changing system environment. A good analogy would be a loosely networked set of PCs. My application (SDI, but heavy on dialogs) monitors this system and allows the user to program it. If everything is stable, then I have no problems. The issues start when I have a 4 node system, and the 2nd node drops out. Because of my dialog layers, I could easily be 4 layers into dialogs when this occurs.
Is there any way to cleanly "unwind" from my dialog stack in a programmatic fashion?
Still learning...
C. Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
|
|
|
|
|
I could not undersstand the following line ..
Is there any way to cleanly "unwind" from my dialog stack in a programmatic fashion?
...ill be better if u come up with a detailed description of the issue
redindian
|
|
|
|
|
unwind is the best word I could come up with.... this is what my GUI looks like in a very simple fashion:
m_pMainWnd...
CMyDialog1 myDlg(this);
myDlg.doModal();
and again and again. In essence I have a stack of dialogs one on top of the other. Suppose this stack is 6 dialogs deep, how do I get out of the stack of dialogs back to the main window? Usually, the user would press continue, cancel, etc. and navigate their way back. I need to be able to do it automagically via code...
did that help?
C. Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
|
|
|
|