|
Further testing has revealed that the image data column is always corrupted (set to all zeroes) for the first row returned when Open() or Requery() is run against the CRecordset-derived class.. not sure what is different about this first row..
cheers,
Neil
|
|
|
|
|
I have a list view control in a report view. I can select multiple rows by pressing control+left mouse button or by pressing left mouse button on first item and move mouse up/down to select other rows (if not selecting the first item on its label). How to change this default behaviour? I mean I want to:
1) Select multiple items just by clicking on them (without control key), and
2) Select multiple items by clicking on first item (even on label, on subitem's text) and moving mouse up/down.
Wow to do this?
Thanks in advance.
|
|
|
|
|
I have a couple of questions. I would appreciate if someone would help me cause im in big trouble.
Im writting application using directx7 in normal (windowed) mode. Also im using WTL library to handle windows specific tasks
In the first place I choose directx because i wasnt satisfied with flickering using normal gdi (dc and stuff) under windows.
Now i implemented the stuff using directx and graphics in my program isnt any faster than it was.
How can it be? (I am maybe missing some stuff there)
Do you need to use classic invalidation of rectangle to repaint stuff with directX or you should never use it? if not what to use to repaint some rectangle?
I can provide code if needed
Thanks in advance
|
|
|
|
|
It sounds like an implementation issue, not a speed issue.
Flicker is from unnecessarily drawing background where it's going to be covered with foreground,
if that makes sense.
The "classic invalidation of rectangle to repaint stuff" isn't going to work. Leave that for
one-shot redraws like when the user moves a window across your window (ie WM_PAINT messages).
You can draw with GDI anytime you want (if drawing from different threads then make sure to sync
access to GDI). Waiting for WM_PAINT messages will result in bad performance.
Only draw backgrounds when you need to, and if possible only draw the portion(s) that will be
visible.
Just my 2 cents
Mark
|
|
|
|
|
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.
|
|
|
|