|
Hey Guys
Does anyone know why i would get these errors all i have done is create a dialog with a tree view.given the treeview a variable and added an image list.
F:\Development\C++\Programs for Companys\Trustis\Software to Sign and Verify Files\ViewSigners.h(22) : error C2146: syntax error : missing ';' before identifier 'm_tSignersView'
F:\Development\C++\Programs for Companys\Trustis\Software to Sign and Verify Files\ViewSigners.h(22) : error C2501: 'CTreeCtrl' : missing storage-class or type specifiers
F:\Development\C++\Programs for Companys\Trustis\Software to Sign and Verify Files\ViewSigners.h(22) : error C2501: 'm_tSignersView' : missing storage-class or type specifiers
F:\Development\C++\Programs for Companys\Trustis\Software to Sign and Verify Files\ViewSigners.h(36) : error C2146: syntax error : missing ';' before identifier 'm_imageList'
F:\Development\C++\Programs for Companys\Trustis\Software to Sign and Verify Files\ViewSigners.h(36) : error C2501: 'CImageList' : missing storage-class or type specifiers
F:\Development\C++\Programs for Companys\Trustis\Software to Sign and Verify Files\ViewSigners.h(36) : error C2501: 'm_imageList' : missing storage-class or type specifiers
F:\Development\C++\Programs for Companys\Trustis\Software to Sign and Verify Files\ViewSigners.cpp(31) : error C2065: 'm_tSignersView' : undeclared identifier
F:\Development\C++\Programs for Companys\Trustis\Software to Sign and Verify Files\ViewSigners.cpp(50) : error C2065: 'm_imageList' : undeclared identifier
F:\Development\C++\Programs for Companys\Trustis\Software to Sign and Verify Files\ViewSigners.cpp(50) : error C2228: left of '.Create' must have class/struct/union type
F:\Development\C++\Programs for Companys\Trustis\Software to Sign and Verify Files\ViewSigners.cpp(51) : error C2228: left of '.SetImageList' must have class/struct/union type
F:\Development\C++\Programs for Companys\Trustis\Software to Sign and Verify Files\ViewSigners.cpp(53) : error C2228: left of '.InsertItem' must have class/struct/union type
F:\Development\C++\Programs for Companys\Trustis\Software to Sign and Verify Files\ViewSigners.cpp(53) : error C2059: syntax error : ')'
Error executing cl.exe.
cheers
Peter
|
|
|
|
|
You havent included afxcmn.h . Pop in in stdafx.h
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
Cheers i suspected it wouldbe something simple like that.
|
|
|
|
|
How to redirect IExplorer when the page that the user wanted to see is not found and the page of MSN search engane is shown instead, not to be shown the page of MSN but to redirect to some other page.
Thanks.
|
|
|
|
|
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
|
|
|
|