|
|
|
GetFileInformationByHandle
|
|
|
|
|
|
I have created a single document interface application .I have provided an option in the menu button .if the button is clicked i am creating modelless dialog box.If i try to move the dialog the view flickers . Does any one know how to avoid flickering in the view.
thanks,
Ram
|
|
|
|
|
hi...
The view has flickered means,you havn't created the modeless dialog box.
To avoid that flickering you need to call thread function. you create one thread class (base class is CWINTHREAD) in that class write DO modal function for calling dialog box... and then ONbuttonclickevent() you call that thread function...
thats all very simple!!!!!!
|
|
|
|
|
If the view is flickering when you move the dialog, it is probably just being slow to redraw, Does the same thing happen if you resize the view?
If so, then you want to look for an article here on CodeProject. - http://www.codeproject.com/gdi/flickerfree.asp[^].
I use this in pretty much any non-trivial drawing code I have.
Iain.
|
|
|
|
|
when i resize it was flickering , so for that i have changed the onEraseBackground() to return true .then when i resize there was no flickering after that .But when i move the modelless dialog box the view still flickers .I have tried the way you have sent,still it didnot solve the problem . Do you have any other solution how to correct this . If you have please help me in this issue
thanks,
Ram
-- modified at 0:58 Tuesday 12th June, 2007
|
|
|
|
|
Hi.
I am calling a function from a third party DLL which takes 4 Parameter as a LPSTR.
These 4 parameters I have in CString format.
So I am using following code to convert CString to LPSTR.
CString strServer = “xyz.com”
LPSTR server = strServer.GetBuffer(strServer.GetLength());
strServer.ReleaseBuffer();
long lRetVal = ThirdPartyDLLFun(server,…….);
When I call that 3rd party DLL function in debug mode I get lRetVal = 0 as a return value.
But with same inputs the return value if something else in Release mode.
What could be the reason?
Thanks
Sameer Thakur
|
|
|
|
|
the ReleaseBuffer() call should you make AFTER the dll function.
You shuold also check the return value of the dll function.
Greetings from Germany
|
|
|
|
|
Hi,
I am new to this site.
Help me, I want to convert multiple jpeg file to single swf file in my VC++/MFC project. Can anyone give me idea or source code for this?
Thanks in Advance
|
|
|
|
|
|
I am looking into the link now.
Thanks a lot!!!!!!!!
|
|
|
|
|
I think you asked this question on this articles "45 Day Series " see my reply does helpful for you.
|
|
|
|
|
I am looking into the link.
Thanks a lot!!!!!!!!!!
|
|
|
|
|
I hope my reply sovled your problem.
|
|
|
|
|
Hello all,
I have made a SDI application it consist of various threads running together, now my problem is when i close the frame it gives a Don't send error. I close frame using this
CFrameWnd::OnClose();
in MainFrame Class....
Can anybody please tell me that why this Don't send error is coming.
thanks in advance
|
|
|
|
|
neha.agarwal27 wrote: I have made a SDI application it consist of various threads running together, now my problem is when i close the frame it gives a Don't send error. I close frame using this
How are you creating this frame. Make sure that you always "new" CFrameWnd objects.
Don't create CFrameWnd objects on stack since PostNcDestroy(unless you override) tries to delete the "new"ed object.
Anyway I am just trying to guess the reason. This could be one of them.
|
|
|
|
|
Are you closing various threds running. try in debug build you will get the assersion mostly.
there can be many reasons for dont send error generaly it is memory courrption.
|
|
|
|
|
you should replace it with
this->PostMessage(WM_CLOSE, 0, 0);
it would prevent error in case you were in the middle of something
|
|
|
|
|
In my program I have several classes that I want to separate from the rest by making them into static library (i.e. file .lib and .h)
I have class A, class B and class C. Class A includes B to call some functions from B, and both A and B include C to call some functions from C.
I can easily create a .lib file for class C by creating a new win32 static library project but I don't know how to deal with class A and B.
One more thing, if in class A (for e.g) I want to post an user message to main frame, how to inherit the message identifier from my application when I create A.lib ?
|
|
|
|
|
Hello there cpains,
I was just wondering if is possible to be able to disable a user from pasting text into a CEdit textbox control?
Thanks in advance!
|
|
|
|
|
|
Thankyou WhiteSky...
|
|
|
|
|
You're welcome.I hope it solved your prolem.
|
|
|
|