|
cpp_prgmer wrote: Sadly, this is getting called even before cis getting called which is causing a crash.
Handle this with a simple bool member variable. Call it bInitializing and assign it true in the dialog's constructor. At the end of the OnInitDialog() method, assign it to false . In the EN_CHANGE handler, check to see if bInitializing is equal to false before continuing. Make sense?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
True and this is how I tried to solve the problem for the time being but I guess there is a more elegant way to check if a dialog has been initialized or not. Does someone have any idea?
Secondly, are there any other msg handlers?
|
|
|
|
|
Do not set the AutoBuddy property to true for the spin control.
In the BOOL CYourClass::OnInitDialog()
use the SetBuddy property for the spin control to set the appropriate buddy.
Hope this helps
|
|
|
|
|
Hi,
recently I have started facing problem with the linking of my project and started getting error for each c++ object file:
xxx.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
I do not have any variable as afx or Force or EXCLUDE in my source files. Can anyone help me out to resolve this error??
Thanks,
Priya
|
|
|
|
|
did you try to compile an mfc project, without liking it to the correct MFC dll ?
|
|
|
|
|
I didn't get u..i used the MFC wizard to create the project and in project settings I have "Use MFC as a shared dll"...do i need to make anymore settings other than those??
I have included #include "stdafx.h" in all the .cpp files instead of #include <afxwin.h> is it due to this?
Thanx,
Priya
|
|
|
|
|
i don't see anything wrong in what you say. but anyway, check the settings of your project (even if you created it with MFC dynamically linked), and check if the correct MFC lib is linked (mfc42 with VC++6, mfc70 with VS.NET 2002, mfc71 with VS.NET 2003, mfc80 with VS2005)
|
|
|
|
|
where r v supposed to giv that mfc42 linking?? mine is vc++6 ..... actually i am new to vc++ so i donno wher to giv those settings..
Thnx,
Priya
|
|
|
|
|
i said look in your project settings... (right click on your project, and find the linker settings there)
|
|
|
|
|
See if this discussion helps[^] you.
|
|
|
|
|
hi,
Iam getting two linker errors,when i compile Flashplayer7sdk,
win32camera.obj : error LNK2001: unresolved external symbol "public: __thiscall CBaseRenderer::CBaseRenderer(struct _GUID const &,char *,struct IUnknown *,long *)" (??0CBaseRenderer@@QAE@ABU_GUID@@PADPAUIUnknown@@PAJ@Z)
Release\SAFlashPlayer.exe : fatal error LNK1120: 1 unresolved externals
Thanks
|
|
|
|
|
|
The CBaseRenderer-constructor was not found when trying to link SAFlashPlayer.exe.
Why that is and how to go about it I have no clue.
When you have a project-file, you could try to set Linker - General - Show-Progress to "Verbose" in the project properties.
Maybe that gives you a clue.
And reposting again and again would not give us miraculouly more ideas how to help you.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
hi,
That is not the same error i got previously,
At first i got 11 linker errors and i reduced it to 2 errors which is different from now what iam getting,thats y i posted it seperately to prevent confusions.
Anyway Thanks for ur help.
siddharth
|
|
|
|
|
Hi!!!
In my application, I want to create one dialog box. Which contain 2 small box.
One box will contain name of the components and second box will show preview of the selected component.
Like..Box1 contain.
1.Vessel.
2.Tank.
3.Pump.
4.Nozzle.
5.Exchanger.
6.Fan.
Box 2..
Which show preview of the selected item. like if I will select Fan from the box 1 then it will show me Symbol(.dwg ) of the Fan.
I have collected all symbol (.dwg) for all components..
Now my question is..
1. How can I insert my all .dwg ( autocad drawing)..I.e. which method or class should i used for insert the drawing in my application.
2.How can i show preview ?? Any class or method??
Shah
|
|
|
|
|
I think you aksed this question yesterday,you need to include a library to your program and did you see my link
|
|
|
|
|
Shah Satish wrote: 1. How can I insert my all .dwg ( autocad drawing)..I.e. which method or class should i used for insert the drawing in my application.
do you have a translator of some sort to read those .dwg files ? i.e. can you read those files yourself ?
if not, I suggest loading them up in a software that can read those files and export them as bitmaps.
Once that is done, look and search CodeProject for articles that show you how to load and display an image in a static control.
|
|
|
|
|
can you read those files yourself ?
Yeh.. i can read that file coz i have created such a symols..its approximately 100 .dwg file. but is it to load and display lots of image ( appro 100 ) ??
|
|
|
|
|
Hi,
Im new to MFC.I want to display a tab control just above the status bar if visible else just above the window border in a SDI application when the application is maximised.
I tried GetClientRect of view on OnInitialUpdate n displaying the tab just above the client bottom.But it didnt worked out as the rectangle returned here is not same as the rectangle returned in case when the window is maximised.
How can i overcome this problem?
Thanks,
Asif
|
|
|
|
|
Hai,
I have coded programs in VC++ which use information stored in some form or the other. Most programs use .mdb . A few programs used info stored in .dat files.
Would .mdb and .dat be called as database used . I know for sure that MySql would be called database.
If I have to mention in my Resume, the database I have used in the programs that I have developed, will it be correct to put .mdb and .dat ?
Fortitudine Vincimus!
|
|
|
|
|
Tara14 wrote: If I have to mention in my Resume, the database I have used in the programs that I have developed, will it be correct to put .mdb and .dat ?
No. Mention that you've worked with databases. That would be appropriate.
Tara14 wrote: Would .mdb and .dat be called as database
.MDB is database, for sure.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Tara14 wrote: Would .mdb and .dat be called as database used. I know for sure that MySql would be called database.
If I have to mention in my Resume, the database I have used in the programs that I have developed, will it be correct to put .mdb and .dat ?
If you have to question this, I would hesitate mentioning anything about database experience. Nothing's worse than having your bluff called (in an interview).
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi guys
how do i set cursor in mfc picture control?
thanks
|
|
|
|
|
Use CStatic::SetCursor .
Example is given in MSDN for same.
|
|
|
|
|
Can you be more specific but see SetCursor
|
|
|
|