|
I have a spin ctrl attached to edit ctrl. When the data in the edit updates, I need to perform a custom activity. Now for this I have attached a msg handler as:
ON_EN_CHANGE(<edit_id>, <func>)
Sadly, this is getting called even before OnInitDialog is getting called which is causing a crash. How do I know within this func if the dialog is initialized?
Secondly, is there any other msg to which I can attach the mentioned msg handler to perform my custom action?
Eagerly awaitng your sugggestion, pls help...
-- modified at 5:04 Wednesday 17th January, 2007
|
|
|
|
|
please click on this[^], and press the EDIT link at the bottom of your message. then, add a relevant title
Thank you
|
|
|
|
|
toxcct wrote: Re: OT : Edit your article and add a title !
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
yes yes, not article, but message.
actually, the OP posted a message without title (so unclickable/unreadable),but now, he edited it.
|
|
|
|
|
Okay. I was so confused as a kid in a topless bar.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
brahmma wrote: a kid in a topless bar
rotfl, THAT is a comparison !
|
|
|
|
|
cud some1 pls suggest a solution 4 d mentioned problem?
|
|
|
|
|
|
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.
|
|
|
|