|
J.B. wrote:
But just a thought, if it's because the control did not exist before DoModal() is called, wouldn't swapping the DoMadal() and SetWindowText() work?
No, because dialog 1 does not get control again until DoModal() returns.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
hi,
my application is using mysql is database.i connect to mysql using mysql lib files. while connecting from the local host is not an problem. when i try to connect mysql from other machine. i found the following error
Host Auro5(Auro5 my machine name) is not allowed to connect to this MySQL server
any help to me. Thanks in advance.
Murali.M
|
|
|
|
|
there is no problem with your c++ aplication, you need to add the user who is connecting you mysqlserver into the mysql server.
My God is more powerfull Than Your God.
|
|
|
|
|
Look at your priviliges on that machine, not just your localhost login but how you are signed onto the local box.
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
Friends,
My question is related to the Add/Remove Programs dialog that can be opened from control panel of Microsoft Windows Operating Systems.
There are various enteries of curently installed programs there. These enteries are made by the installation program of particular appliation.
But from where this dialog box reads these enteries ??Actually i want to remove certain entry programatically. But i don't know from where to delete it. So that it cannot be shown in this dialog box. I can guess that this dialog reads these enteries from registry but i dunno where are they stored). Can any one tell me ?
|
|
|
|
|
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall Your uninstall program should remove these entries automatically when uninstalling.
|
|
|
|
|
Hi, I really nead a C (not c++) code for deconvolution of signals (not images)usign fft.
Is there anybody that can help me? I'll be very happy.
Thanks, Angeluna.
|
|
|
|
|
Hi!
How do I convert a hexadecimal number to decimal?
Thankful for your cooperation,
Stefan
|
|
|
|
|
hi,
use the following code.
char * hexstring= "A";
char * p;
int number = strtol(hexstring, &p,16);
Have A Nice Day.
Murali.M
|
|
|
|
|
hi,
in development system report is working fine. in application installed system, when i try to open the report, report is opened and closed immedeatly with flickering. unable to view the report. what's the problem. Any one help to me.
thanks in advance.
Murali.M
|
|
|
|
|
i Found solution for this. problem is using mysql odbc for database connection. mysql odbc driver is not installed on the machine and DSN is not properly configured.
thanks.
Murali.M
|
|
|
|
|
hi..
i am making a grid..and i am doin it like this
for(int x = 10 ; x <= 2000 ; x += 10) {<br />
pDC->MoveTo(x, -10);<br />
pDC->LineTo(x, -1000);<br />
}<br />
<br />
for(int y = -10 ; y >= -1000 ; y -=10) {<br />
pDC->MoveTo(10, y);<br />
pDC->LineTo(2000, y);
the grid is fine...
i am uing a CScrollView and so when i scroll the whole thing blinks and looks bad...
so i want to use GetClipBox..
if i use it..can someone pls help me out as to how should i implement it in my above code???
CRect clipBoxRect;<br />
pDC->GetClipBox(&clipBoxRect);
for(int x = 10 ; x <= 2000 ; x += 10) {<br />
pDC->MoveTo(x, -10);<br />
pDC->LineTo(x, -1000);<br />
}<br />
<br />
for(int y = -10 ; y >= -1000 ; y -=10) {<br />
pDC->MoveTo(10, y);<br />
pDC->LineTo(2000, y);
i dont know how to incorporate the clipBoxRect with my code in order to make the blinking go away.
can someone pls help??
tks for your time..really appreciate it..
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
"For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
John 3:16
"Therefore you also be ready, for the Son of Man is coming at an hour you do not expet."
Luke 12:40
|
|
|
|
|
use a memory DC draw on that dc and then transfer to main dc
a CMemDC class it available everywhere
in scroll handlers don't call invalidate call updatewindow
|
|
|
|
|
MailMonty is right, you should use a Memory DC to avoid blinkcing (and also override OnEraseBkGnd)
However, CDC::GetClipBox is useful to limit the redrawing.
First, if GetClipBox returns NULLREGION, no need to continue, no part of the window needs refresh. Next, the rectangle returned by the method represents the area to refresh, so you can limit the drawing to this area only.
A quoi rêvent les personnes qui nous font vivre ce monde ?
|
|
|
|
|
hi..this is regarding the anwer you gave me in codeguru regarding getclip box...
i am new in MFC and wouldappreciate if you could tell me how do i use a memory DC draw on that dc and then transfer to main dc please???????
would really appreciate your help...
also, i dont know how to use a CMemDC class annd have never used it before...so i am very new in that too....i would really appreciate if you could help....
tks a lot...
you can mail me at extremedotnet@yahoo.com.sg
tks a lot....really appreciate it.
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
"For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
John 3:16
"Therefore you also be ready, for the Son of Man is coming at an hour you do not expet."
Luke 12:40
|
|
|
|
|
Joseph R. Thomas wrote:
codeguru
.... Heretic!
Joseph R. Thomas wrote:
i dont know how to use a CMemDC class annd have never used it before
Have a look to this article: http://www.codeproject.com/gdi/flickerfree.asp?target=CMemDC[^], it explains well how to avoid flickering with a memory DC.
HTH,
K.
A quoi rêvent les personnes qui nous font vivre ce monde ?
|
|
|
|
|
huh???
where did activeX come in???
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
"For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
John 3:16
"Therefore you also be ready, for the Son of Man is coming at an hour you do not expet."
Luke 12:40
|
|
|
|
|
Read the article more carefully: the author explains how to avoid flickering in MFC application and for MFC activex
A quoi rêvent les personnes qui nous font vivre ce monde ?
|
|
|
|
|
i am very new in MFC....i dont have any idea about how to make the screen dont blink....i dont know what is activeX...
i am stuggling with the screen...now the active X?????
is is something that helps with the screen???
is active X and MemDC related???
do i have top use ActiveX too???
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
"For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
John 3:16
"Therefore you also be ready, for the Son of Man is coming at an hour you do not expet."
Luke 12:40
|
|
|
|
|
In the article, don't care about the section "Modifying a MFC Active X Control to use CMemDC", just read the section "Modifying an MFC Application to use CMemDC" and follow the steps described in this section. Just try it.
A quoi rêvent les personnes qui nous font vivre ce monde ?
|
|
|
|
|
Hi,
I have a module that performs configuration for a product. It uses access (via ADO) as its underlying db.
This module needs to start working remotely.
The most direct solution would be to access the remote database via a shared drive.
I am looking for alternatives (not excluding .net).
Any ideas?
Jeremy Pullicino
C++ Developer
Homepage
|
|
|
|
|
|
i created an SDI using formview. i wish to use half of the formview for visualization purposes, and the other half for placing dialog controls. how do i change the view size?
|
|
|
|
|
To change the default size of a Form view or scroll view, you can call:
SetScaleToFitSize(CSize(cx, cy));
I normally do this in the OnSize() to make sure I get no scrollbars after re-positioning all the controls in the view.
Roger Allen - Sonork 100.10016
If your dead and reading this, then you have no life!
|
|
|
|
|
thanx for replying. actually what i meant was how to set the visual view - white screen for drawing to half the window size so that i can place controls on the other half which is not on white blackground.
|
|
|
|