|
override ::OnCancel()
VuNic
|
|
|
|
|
Thanks VuNic!
I got it...
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
hi,
As i develop an application in MFC-SDI, which read data from a file and display the corresponding data in the window view(using CClientDc dc,dc.Textout(...)). The length can be more the 1000,the view has the base class as CScrollView, Inorder to see the below contents of the view ,i scrolled the window but the window get blinked .i want to reduced the blinking
reply early
send reply
|
|
|
|
|
use CMemDC to draw, search on google to get the class its very popular
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
maharaja pandian wrote: read data from a file and display the corresponding data in the window view(using CClientDc dc,dc.Textout)
Did you think about using some sort of a CListView derived class?
These are made for exactly this purpose: Giving out texts in a view.
OTOH, you might have very good reasons to print directly on the view.
Then writing to a Mem-DC and only blitting it to screen in OnPaint would be the way to go.
"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,
i have written a program in MS Visual C++ and installed it. After that i changed the name of the program and project and also changed the code. I want to install both versions of this program on one computer, but XP tells me, that this program is already installed. I guess it has something to do with UUIDs, but dont know where i must change it.
wkr
Rich
|
|
|
|
|
What kind of application are you installing and what are you using to make the installer, msi or exe?
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
Its a MFC program that sends data via FTP. I use msi.
Rich
|
|
|
|
|
create a seperate msi for the second application, don't use the same msi again, as the msi creates a uuid and inserts it in the windows database while installing.
create a new msi from scratch for the second setup
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
Hi,
Is it possible to "ping" windows, so to speak, to say that you know it's waiting for return of program control whilst a function is performing an operation.
basically i have a CPU intensive function which hogs all the processor time pretty much thus slowing the system down completely so preventing window updates, etc.
is it possible to ping the windows system within my main function loop to let windows do its updating stuff as usual.
...maybe some kind of Postmessage or something?
any help would be appreciated.
thanks !
Paul
|
|
|
|
|
Hi Paul,
I had a similar problem. In our app, we made a separte thread to do the processing and allowed the MFC thread to do the refreshing, WM handling, etc.
When the thread finishes it can use ::SendMessage to send a WM_USER+... windows message to the MFC app (you need to pass the thread the HWND )
Then your app just needs to wait for the message to come in.
regards,
Rich
"Programming today is a race between software engineers striving to build bigger and
better idiot-proof programs, and the Universe trying to produce bigger and better idiots.
So far the Universe is winning." -- Rich Cook
|
|
|
|
|
IIRK, the standard technique in the C / SDK era was to make sure the processing loop did a peekMessage() call every now & then (say every 50 millisecond or XX loops.)
When you do peekMessage, the program returns control to Windows which takes the opportunity to do its system stuff, and gives other applications a turn to do things.
I think I used this for 16-bit programs under Windows 3.1!!!
|
|
|
|
|
Try calling peekmessage() every 50 milliseconds or X number of loops in your processing function - this gives control back to Windows for system stuff and other programs.
|
|
|
|
|
|
I have an existing project workspace in visual c++. how do I change the name of that workspace??
please help!
Aman N
|
|
|
|
|
Hi,
I open the .dsw and the .dsp files in notepad (with visual studio ide's closed) and make a find & replace and then rename the files.
Best regards,
Mauro.
|
|
|
|
|
struct PS
{
int t,m;
}
;
istream& operator>>(istream& in,PS&p)
{
in>>p.t>>p.m;
return in;
}
ostream& operator<<(ostream& on,PS&p)
{
on<<p.t<<p.m;
return on;
}
template <class T>
void Process()
{
T b;
cin>>b;
cout<<b;
}
void main()
{
Xuly<int>(); // why this call bind T with "PS" type (not int)?
Xuly<PS>();
}
Xuly<int>() : binding wrong type, it must be "int" but when to be executed it bind with "PS" type.
Please help me?
-- modified at 7:46 Monday 20th March, 2006
|
|
|
|
|
edit your message and uncheck the "Ignore HTML tags in this message (good for code snippets)" checkBox...
|
|
|
|
|
v2.0 wrote: edit your message and uncheck the "Ignore HTML tags in this message
that too particularly, when you are talking about templates!!
VuNic
|
|
|
|
|
yup
|
|
|
|
|
Hello
I think you should check MSDN for this.
type Templates in MSDN after that select C++ Templates / Function templates.
i hope you'll get answer to your question here.
|
|
|
|
|
Hello
I think you should check MSDN for this.
type Templates in MSDN after that select C++ Templates / Function templates.
i hope you'll get answer to your question here.
|
|
|
|
|
i want to read a cookie by passing a URL to web ,how it is possible throgh programming please share ur knowledge with me.
Bankey Khandelwal
Software Engineer
|
|
|
|
|
Is possible that we can transmitted some paramters to dll
am
|
|
|
|
|
consider this question instead :
"Is possible to transmit some parameters to a function ?"
|
|
|
|