|
Ravi Bhavnani wrote:
Basically what I was hoping to do is trap the error in OnNavigateErrorExplorer(),
OK, I was able to trap the error in OnNavigateErrorExplorer() (and take over from there), but I'm unable to suppress IE's login dialog that's displayed before OnNavigateErrorExplorer() is called.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
SetSilent (TRUE); prevents the dialog from being shown. All is well!
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi,
I have a very strange problem with JIT (just-in-time) debugging under WinXP. I have been using Visual Studio 6.0 and recently I installed WinXP instead of Win2K. My problem is that now JIT debugger doesn't work. When my application breaks down and I click "retry" + "debug" then nothing happens, debugger is not loaded. This is a big problem and I spent several hours by trying to fix this problem. We have two computers in our office (same WinXP, same VS) and this problem appears on both PCs. Does anybody has similar experience?
Remarks:
1/ When I start debugger from VS then it works normally.
2/ After installation of VS6 under WinXP I got a message that there could be problems with debugger and it was recommended to run VS tools -> Windows NT symbol setup. When I was trying to do this then during installation I got many messages that *.dbg files are incompatible with system dlls (so I canceled the installation).
3/ I installed VS service pack 6 (no change) and WinXP SP1 (no change)
Thanks Mirek
|
|
|
|
|
check the following registry entry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version\AeDebug\Debugger
it should be something like.....
"C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\msdev.exe" -p %ld -e %ld
|
|
|
|
|
Thanks for advice, unfortunately this is not the reason of my problems. I had already checked this registry key before I sent my question to this forum. I know that installation of VS .NET changes settings for default debugger and I also had a suspicion that this could be the problem. But I have not installed VS .NET on my computer, the key is exactly as you wrote ("C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\msdev.exe" -p %ld -e %ld) and debugger still doesn't start in the JIT mode.
Mirek
|
|
|
|
|
I have a MFC project and a Visual FoxPro Database. A creat te connection using ODBC, but when i execute the program it takes up to 20-30 seconds before running. Can anyone tell me what could be the problem? Thanks!
|
|
|
|
|
Hi I can't seem to get a simple BITMAPFILEHEADER working.. all I'm trying to do is:
BITMAPFILEHEADER blah;
and VC says BITMAPFILEHEADER is unrecognized, and then another file saying I can't overload BITMAPFILEHEADER.. I included WinGDI.h and windows.h, not sure what else to do..
|
|
|
|
|
What is the value of _WIN32_WINNT and WINVER ?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
This works:
#include <windows.h>
BITMAPFILEHEADER blah;
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
return 0;
}
Your problem lies not with the BITMAPFILEHEADER declaration, but somewhere else.
|
|
|
|
|
I haven't tried that exact code but basically what I'm doing is just loading VS.NET and starting a C++ Windows Form project and just double clicking on the form to get to the "Form1_Load" event and just inserting that single line of code "BITMAPFILEHEADER blah;". It doesn't seem to work for me.. Here's exactly what it says:
error C2065: 'BITMAPFILEHEADER' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'blah'
error C2065: 'blah': undeclared identifier
error C2378: 'BITMAPFILEHEADER' : redefinition: symbol cannot be overloaded with a typedef
|
|
|
|
|
My knowledge of Windows Form projects is nil, null and void. But you will want to concentrate on the first error - the following ones are most likely fixed by fixing the first. What is the first one really saying? That the definition of BITMAPFILEHEADER was not found. You have correctly identified that this is included in wingdi.h. This header is included from windows.h. What you will want to do is:
1. Make sure that you have included windows.h at the correct place of the code.
2. Make sure that wingdi.h is included from windows.h. You do this by opening windows.h and check if there is any condition attached to the include.
3. Make sure that BITMAPFILEHEADER is defined in wingdi.h. You do this by opening wingdi.h, making sure that there are no unfullfilled conditions before it is defined.
If everything looks ok, that is, all necessary #defines exist, the files are included as expected etc. you then make sure that there are no other prerequisites (such as naming conflicts due to the Windows Form-project type). This you do by checking the documentation on specifics on Form-projects - you might find that you have to do something specific to use API-stuff in this case. You might want to try to simplify the code to the minimum possible, much as I did with a Win32 project when experimenting.
|
|
|
|
|
hi,
i got an MDI app with Doc/View Architecture.
im one of my View window i want to pop an Dialogbox with editboxes and buttons.
whats the problem?
the problem that this dialogbox can get out of my MDI mainframe...
how can i keep it inside the mainframe?
is there any way or i need to make it Doc/View too?
Avi.
|
|
|
|
|
This is normal behaviour for a dialog box. I suggest that you keep it that way, as one of the ideas with a user interface is having all applications working more or less the same way.
|
|
|
|
|
I tried creating a child dialog that shared the DC with it's parent: no luck. MFC just doesn't support this behaviour.
Best approach would be to derive your own CMDIChildWnd, which uses a CFormView instead of a CView. The MDI child window worries about the fact that the window can't leave the parent's zone, and the CFormView can be used to display standard dialog controls from a dialog template resource.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
One way would be to override the dialog's OnMoving() method, like:
BOOL CMyDlg::OnInitDialog()
{
CDialog::OnInitDialog();
GetWindowRect(m_rectOrig);
return TRUE;
}
void CMyDlg::OnMoving(UINT fwSide, LPRECT pRect)
{
CRect rect;
((CFrameWnd *) AfxGetMainWnd())->GetActiveView()->GetWindowRect(rect);
GetParent()->GetWindowRect(rect);
pRect->left = max(rect.left, pRect->left);
pRect->left = min(pRect->left, rect.right - m_rectOrig.Width());
pRect->right = pRect->left + m_rectOrig.Width();
pRect->top = max(rect.top, pRect->top);
pRect->top = min(pRect->top, rect.bottom - m_rectOrig.Height());
pRect->bottom = pRect->top + m_rectOrig.Height();
}
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hello,
I don't now what im doing wrong but it don't want to work for me is there anyone that can help me...
This is how i have done it.
HKEY hKey;
LONG lResult = ERROR_SUCCESS;
DWORD dwType;
int str=1;
lResult = RegCreateKey(HKEY_LOCAL_MACHINE,
USER_SETTINGS_KEY, &hKey);
dwType = REG_DWORD;
lResult = RegSetValueEx( hKey, "Test", NULL, dwType,(unsigned char*) str, NULL );
RegCloseKey( hKey );
When I run the app I get a wrong DWORD value!...
What can I do?
Please help me...
|
|
|
|
|
RegSetValueEx takes the address of the value data, not the data itself. Change it to:
lResult = RegSetValueEx( hKey, "Test", NULL, dwType,(unsigned char*) &str, NULL );
(note the & before the str ), and all should be well.
|
|
|
|
|
lResult = RegSetValueEx( hKey, "Test", NULL, dwType,(unsigned char*) &str, sizeof(DWORD));
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
|
Is it possible to setup a text output area at the bottom of a dialog.
I was looking at the ToolTip for information, but dont know whats its called.
What I am after is the line of text displayed at the botton of the Window, giving the user feedback on current activities.
Is it available for MFC based applications and how is it managed.
Or is it best to allocate a textbox (read only) and manage it yourself.
I was just wondering if a facility (more powerful than your own textbox) is already present.
|
|
|
|
|
look for a Status Bar ? have a look at CStatusBarCtrl
or simply put a "sunken" static text at the bottom of your dialog.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
|
Thanks, will try it over the weekend.
Sweep.
|
|
|
|
|
Can anyone explain to me how to use struct variables w/ STL? I generated a struct variable and need to use it in a vector template. Thx,
Ralf.
ralf.riedel@usm.edu
|
|
|
|
|
Shouldn't be a problem mate, unless you have hidden the default contructor or overloaded operator &.
<br />
<br />
struct thing<br />
{<br />
int i;<br />
};<br />
<br />
vector<thing> stuff;<br />
<br />
<br />
Ryan
|
|
|
|