|
rajeshgupta1253 wrote: I need drag a image (bitmap or any image)on the dialogbox so that every time i drag I find it top and letf coordinated in the textbox .
i didn't understand your question!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hello everyone,
I want to use a pdf Viewer ActiveX Control in my MFC Application.Can any one suggest a free ActiveX control for the same Or please suggest some ActiveX with low price.
Midhun M
|
|
|
|
|
Hi,
Have a look at Adobe ActiveX Control with MFC[^] I think it will help.
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
thank u..
Can i use the same Activex For creating pdf from my application
Midhun
|
|
|
|
|
Hi
I am having the following doubt regarding copy constructor
E.g If I have class A then the copy constructor will be
A(const A& x)
{
}
why it can't be
1. A(const A x)
{
}
2. A(const A* x)
{
}
Please give me the reason also
|
|
|
|
|
ragavan wrote: 1. A(const A x)
{
}
If the argument x is passed by value a copy is needed. This is the job of the copy constructor. Therefore we'd need to call the copy constructor to copy the argument to the copy constructor, and so on, endlessly recursively.
ragavan wrote: 2. A(const A* x)
{
}
Because an object itself need copying, not the object indirected through a pointer. It could have worked this was but it doesn't make as much sense.
Steve
|
|
|
|
|
From the C++ Standard ISO/IEC 14882-1998 12.8/2:
A non-template constructor for class X is a copy constructor if its
first parameter is of type X&, const X&, volatile X& or const volatile
X&, and either there are no other parameters or else all other
parameters have default arguments.
|
|
|
|
|
ragavan wrote: Please give me the reason also
interview question ahha
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
hi i have to copy an exe to the system (in a specified path)while installing an package and then run this exe until system restarts or shutdown. how to do this. any clues pls help me
|
|
|
|
|
Hope I understood your question
Do you need to ExitWindowsEx ?
|
|
|
|
|
yes but i dont know how to do this. any clues
|
|
|
|
|
|
Please look at "Windows Services". Hope this is what you are looking for.
Regards,
Paresh.
|
|
|
|
|
Are you needing help with: 1) copying a file to another machine, or 2) running a program on another machine?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
saisp wrote: have to copy an exe to the system (in a specified path)while installing an package and then run this exe until system restarts or shutdown
is your client application is being installed at that machine
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Is it possible to send a message to a worker thread? I know we could send a message to a UI thread, but is the same possible with a worker thread?
Thanks,
AJ
|
|
|
|
|
Yes. It is possible. Use PostThreadMessage . Hope that helps.
Kiran.
|
|
|
|
|
kvrnkiran wrote: Yes. It is possible. Use PostThreadMessage. Hope that helps.
hi kiran,
you have to setup message pump in the worker thread to process message send thorugh PostThreadMessage!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I assume by the term "a message" you mean a message such as sent by the functions SendMessage , PostMessage , PostThreadMessage and friends. If so the answer is yes but there is a catch: the receiving thread must be running a message pump and in the case of thread messages it will have to be written accordingly.
Steve
|
|
|
|
|
Worker threads dont have MessagePump.
So I dont think SendMessage,PostMessage or Post ThreadMessage will work.
to send messages to worker threads you can try and use events.
|
|
|
|
|
Thanks!
I also thought, unless you have a message pump in your thread...it is impossible to send any kind of message using the SendMessage call. As you told, we have to use some kind of synchronization objects.
Thanks again,
AJ
|
|
|
|
|
Ajay L D wrote: I know we could send a message to a UI thread, but is the same possible with a worker thread?
you have to setup message pump in the thread to handle message
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I didn't see a message board in the list for this, so I just assumed this was the next best place. Hope I didn't crap in your cornflakes by doing so, though.
Anyways, I was wondering if anyone could direct me into the direction of some DirectX tutorials, right from scratch? I kinda got lost in the ones you have here (Heck, I tried to learn C# but I forgot most of it in the end).
Maybe other documentation I would need to know would be handy.
Thanks alot!
Always Dreaming...Neon Black...System Check...
|
|
|
|
|
|
I am sure I am using wrong terminology but this is what I am after:
I have a MDI application with multiple views of the same document - audio data.
I have a view class displaying simple oscilloscope type of graph of the data in left audio channel.
I need to display the right channel in another view.
The standard MFC MDI document / view template does not let me pass parameters to the view.
Probably because when the template is initialized there are no data for the parametr available anyway.
I am thinking just to copy current left channel class, rename it,and change data source to the right channel.
Not very nice but it will work.
Any other ideas?
Thanks for reading.
|
|
|
|