|
You need to handle the "Navigation Error" from DWebBrowserEvents2.
You should write a BHO for this purpose
|
|
|
|
|
Can anyone tell me how to hide or show a toolbar on the MainFrame window from another thread. When I do something like:
frmMain->m_canvasToolBar.ShowWindow(SW_SHOW);
the function returns FALSE. And when I try to use:
frmMain->ShowControlBar(&frmMain->m_canvasToolBar, TRUE, FALSE);
the application crashes deep down inside the MFC core.
|
|
|
|
|
I would post a user defined message from the thread to the main frame.
In the main frame, have a message handler that calls ShowControlBar();
---
It may be that your sole purpose in life is simply to serve as a warning to others.
|
|
|
|
|
Hi all,
What is wrong in this code, for exception handling ?
try
{
m_Database.Open(........);
}
catch(CDaoException *e)
{
e->ReportError();
e->Delete();
exit(0);
}
Does i must define m_Database as pointer ?
Please help me !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
help? how?
what's the problem?
-c
#define O 0.05
#define I(c) putchar(c)
main(){int I(int);double l[6];char lO[5];for(*(lO+1)=0;*(lO+1)<'2';I(0x0A),(*(l+5))=-25*O+((*(lO+1)
)++)*O)for((*(lO+2))=0;(*(lO+2))<'2';(*(l+4))=-40.*O+((*(lO+2))++)*O){for((*(l))=(*(l+1))=0,
*(lO)=1;++*(lO)&&(((*(l+2))=((*(l))*(*(l))))+((*(l+3))=((*(l+1))*(*(l+1))))<4.);(*(l+1))=(*(
l))*(*(l+1))+(*(l+5))+(*(l+1))*(*(l)),(*(l))=((*(l+2))-(*(l+3)))+(*(l+4)));I((*(lO)?42:0x20));}}
|
|
|
|
|
Hi again, thanks for your reply ...
Problem is: when my Exception Handling found error show error message to me ... (That is correct).
But when i hit OK button, it crashes !
Why ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Take a look at the call stack and try and figure out what line is causing the crash.
Nish
|
|
|
|
|
exit(0) looks like it's out of place. But it's hard to tell without seeing the rest of the code.
Todd Smith
|
|
|
|
|
Hi Todd,
I compiled my source code without using exit(0), i can't see any difference between results !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Your help was right !
I'm sorry, about my pervious post !
Thanks again ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hi all,
I'm writing Dialog based program with MFC ...
I created .h file, and i wrote two functions in that.
I want to use thease functions only in two .cpp files ...
But in Visual C++ Workspace, i saw my function are global !
It mean i can use functions in all of my source code !
But i wanna use functions, only only onlyyyy in two .cpp files ...
How can i do that ?
Help me, please ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hadii, the function is global, but if youwant to use that function only in two cpp, you need to include in each cpp the header where the function is declared. You will see that you can use the function only in these cpp.
Carlos Antollini.
|
|
|
|
|
But how can i include .cpp files ?
I must write #include "myfunctions.cpp" ?
If not, please write example ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
You need to include the .h where is declared the function, in each .cpp where you want to use the function. You will see that the function is Global, but it only will can used from these cpp files.
Best Regards
Carlos Antollini.
Today Is Friday!!! Party and
|
|
|
|
|
Hi all,
How can i change language in Access 2000 database ?
I don't want to change language run-time ...
Only in Access 2000 editor ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hi,
The point: I use Visual C++ Enterprise and I want to draw a circle with openGl.
I can compile my circle.c but the linker is not quite amused about it and throws the (german only) exception:
--------------------Konfiguration: U1 - Win32 Debug--------------------
Linker-Vorgang läuft...
libcd.lib(wwincrt0.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _wWinMain@16
Debug/U1.exe : fatal error LNK1120: 1 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.
U1.exe - 2 Fehler, 0 Warnung(en)
-----------------------------------------------------
What should I do?
thanks.
P.S. It's my first C++ program, so don't flame
P.P.S. Here are the project properties:
-----------------------------
libcd.lib /nologo /entry:"wWinMainCRTStartup" /subsystem:windows /incremental:yes /pdb:"Debug/U1.pdb" /debug /machine:I386 /nodefaultlib:"libcmtd.lib" /nodefaultlib:"libcmt.lib" /nodefaultlib:"msvcrt.lib" /nodefaultlib:"msvcrtd.lib" /out:"Debug/U1.exe" /pdbtype:sept
-----------------------------
|
|
|
|
|
Ist das ein Konsolen-programm oder was für ne art?
|
|
|
|
|
Win32-Anwendung (Win32-Application)
|
|
|
|
|
Hmmm... it's specifying the wide char version of winmain - is _UNICODE defined in the preprocessor settings?
|
|
|
|
|
It wasn't defined. I defined _UNICODE now, but nothing changed.
Thanks anyway, Tim
|
|
|
|
|
Here is what the german MSDN says:
Wenn Sie Unicode und MFC verwenden, werden Sie in dem Fall, daß Sie keinen Einsprungpunkt für wWinMainCRTStartup erstellen, einen unaufgelösten externen Verweis auf _WinMain@16 erhalten. Verwenden Sie die Option /ENTRY, oder geben Sie diesen Wert in das Dialogfeld Projekt-Einstellungen ein. (In der Entwicklungsumgebung finden Sie diese Option, indem Sie im Menü Projekt auf Einstellungen, dann auf die Registerkarte Linker und anschließend im Feld Kategorie auf Ausgabe klicken.) Beachten Sie dazu auch das Thema Unicode-Programmierung: Übersicht.
perhaps you might try to use the linker-option /ENTRY, although I don't think this is the point
|
|
|
|
|
Well, wWinMainCRTStartup is set as the entry point in your settings. This is usually only necessary (IME) for apps with _UNICODE defined, and is not something I have seen in an app wizard generated project.
Maybe you are modifying a standard sample. One suggestion is that the OpenGL libs (or the one you are linking with) is/are not enabled for unicode, and that's whats causing the problem. Another is that you are using the standard version of VC, which does not (by default(?)) install the debug unicode dlls.
I'd try removing that entry point in the link settings.
|
|
|
|
|
These linker settings:
/entry:"wWinMainCRTStartup" /subsystem:windows
tell the linker that your program will start in a function called "WinMain", NOT "main".
The linker is saying that it can't find a function "WinMain" in your code.
If you have a "main" function in your code then you need to either remove the above linker settings or change your entry function to "WinMain". See the MSDN help for WinMain and /SUBSYSTEM for more details.
Jim
|
|
|
|
|
WTF? This is only the fifth or so time this has been posted in the past week. What's the point of rehashing it again?
--
Paul
"I drank... WHAT?"
|
|
|
|
|
Really? I did not find it in a previous post... (Searching for "printf", "blue", or "BSOD" return nothing about this)
My post was going to detail the underlying cause, but...
-=- James.
|
|
|
|