|
What version of IE is on the 2k machine this is failing with?
|
|
|
|
|
Hi,
The version number for IE is Version 6.0.2800.1106CO. This is actually on all the machines. However, I made my program clean up after itself right away and it seems to work on that machine now even after 50+ menus. That is I deleted the CToolTipCtrl objects immediately after use.
Something I should have done before anyway but you would think it would work without deleting right away since the system has at least 512 MB of ram and thats at least 2x more ram the other more stable machines. Which I find really weird. Perhaps more memory could mean that pages are swappde from memory to disk at a slower rate and that somehow affects things.
It would be interesting to find out why create would fail though, just for future reference. Perhaps MFC keeps track of the number of windows (hwnd's) you can create?
Thanks in advance.
|
|
|
|
|
Hello,
I'm having trouble with the MS Toolbar Editor provided with VS6.0 . I'm now working on a new release of an old program, and I need to delete some buttons on the toolbar.
The problem is, I can't delete the buttons in the Bitmap itself, because the toolbareditor prompts that the Bimap file needs to be adjusted.
Besides that, I can't delete the buttons in the toolbar editor either! I don't know why and it's been eating me up all day now...
Does anyone know a simple toobar editor which can EDIT toolbars?
Thanks in advance.
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
it's ok
you need left click on button that you want to remove and drag it away from IDE, the button tool bar will disappear.
|
|
|
|
|
Thanks!
To bad that you can't r-click on the toolbar...
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
Is there a use for enumerating registered windows messages?
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I need to write a web query in C++ to obtain a stock price. The code will be used in an Excel Add-In. I can do this easily in VB using: QueryTables.Add( ... ), but cannot find a reference to a C++ implementation.
Any help appreciated.
Regards.
GWG
|
|
|
|
|
I have created a new dialog-based Project using MFC. Then I added a few other .cpp-files from older projects to this new Project.
But now I have the problem that member variables from the files created by MFC are not avaiable in the old files i added myself, although I included all avaiable headers in these files.
When I try to use them, the error "C2065: 'm_member' not declared" occurs.
All Files (both old and new) have headers like this:
#include "stdafx.h"
#include "ApplicationName.h"
#include "ApplicationNameDlg.h"
#include "DlgProxy.h"
Thank you for your help,
Ronin.
|
|
|
|
|
Like topic says... DnsQuery is only available for NT/2000/XP...
Thanks!
---------------
Tired of Spam? InboxShield for Microsoft® Outlook® and Outlook Express®
http://www.inboxshield.com
|
|
|
|
|
are you asking how to get an ip address from a host name? if so use the gethostbyname() function
|
|
|
|
|
Thanks! I'll take a look at gethostbyname()...
---------------
Tired of Spam? InboxShield for Microsoft® Outlook® and Outlook Express®
http://www.inboxshield.com
|
|
|
|
|
I'm logging errors to a text file, and the text has the 'r\n\' escape characters in there, but it still keeps writing to one continuous line. How do I stop this?
If it's broken, I probably did it
bdiamond
|
|
|
|
|
Hi,
I just tried this
CString s = "First line\r\n";
CFile file("c:\\test.txt", CFile::modeCreate | CFile::modeWrite);
file.Write(s, s.GetLength());
s = "second line";
file.Write(s, s.GetLength());
and this is what I see in the text.txt file
First line<br />
second line
Do you see something I did differently?
Fabian
|
|
|
|
|
yes, you're writing one line at a time, whereas I was writing the whole string at once. But since I wanted to keep the previous contents of the file, I specified CFile::modeNoTruncate as one of the flags, but whatever I write is still appended to the end of the line that was previously there.
If it's broken, I probably did it
bdiamond
|
|
|
|
|
The seek to end may be truncating the \r\n on the final line.
Try adding a \r\n pair to the beginning of your string.
Brad
|
|
|
|
|
Hi,
How about this?
CString s = "\r\none more line";
CFile file("c:\\test.txt", CFile::modeCreate | CFile::modeWrite | CFile::modeNoTruncate);
file.SeekToEnd();
file.Write(s, s.GetLength());
Fabian
|
|
|
|
|
thank you BradBruce and f64!! that worked!!
If it's broken, I probably did it
bdiamond
|
|
|
|
|
bdiamond wrote:
text has the 'r\n\'
I hope this is a typo and you actually have '\r\n'....
Elaine
The tigress is here
|
|
|
|
|
YES, that was a typo; I actually did have the right text down, even though I've made stupider mistakes before!!;)
If it's broken, I probably did it
bdiamond
|
|
|
|
|
I need to shut down explorer.exe programmatically. I think I can use PostThreadMessage but how do I retrieve the process ID for explorer.exe?
-Ian
|
|
|
|
|
easy. have a look at msdn, topic "OpenProcess". there you will find the link "Taking a Snapshot and Viewing Processes" with an example of how to list all processes. execute this code, check if the exe file name is "explorer.exe" and so you will get all instances of the explorer. open it with OpenProcess and then close it by TerminateProcess.
Don't try it, just do it!
|
|
|
|
|
From MSDN:
The TerminateProcess function is used to unconditionally cause a process to exit. Use it only in extreme circumstances. The state of global data maintained by dynamic-link libraries (DLLs) may be compromised if TerminateProcess is used rather than ExitProcess.
MSDN suggests you should use ExitProcess instead of TerminateProcess...
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
ExitProcess() only exits the current process. To force another process to close, you have no choice but TerminateProcess() .
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hmm, I should've read further...
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
how do I find out the current path that my executable is executing in? Thanks
If it's broken, I probably did it
bdiamond
|
|
|
|