|
if i understand you need to WM_LBUTTONMouse and WM_MOVEMOUSE
for your purpose and you can use from point for position x,y in these messages
-------
i think you can use also from a control (button or...) with a shape like ellipse instead this way
|
|
|
|
|
Hello,
I wrote a simple programm using Visual C++ where I want to move a cirle
in a window via drag&drop. I used the pDC->Ellipse() and the
InavlidateRect() functions for drawing the circle.
So far it works. But I have two problems:
1. When I move the mouse quickly during a drag&drop, not the entire
"old" cicle disappears so that I get a trace of the way I moved the
cicrle around
2. How can I implement that with a flicker-free window? (perhaps the
InvalidateRect() and pDC->Ellipse() functions aren't very useful for my
intentions and I should use other functions)
Uday kiran
Uday kiran
|
|
|
|
|
Hi Friends,
I have a question about RTTI.
1) In C++ we have vptr pointing to vtables which helps to make use of
pointer as polymorphic entities.
2) Without knowing object type I can call methods of object using
those pointers.
So in which case RTTI is needed? ( Why I need to know my object
type?) What is the use case?
Vikram S
|
|
|
|
|
class CObject {}
class CCar : public CObject {}
class CBus : public CObject {}
class CBike : public CObject {}
std::vector<CObject> vecVehicles;
then, how do you know if the elements inserted in the vector are Cars, Buses or Bikes without RTTI ?
|
|
|
|
|
toxcct wrote: then, how do you know if the elements inserted in the vector are Cars, Buses or Bikes without RTTI ?
Right!
"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 all,
I wrote a batch file, with I call from my VC program, but....
Well first of all, I would like to know if it is possible to put sql scripting in a batch file for execution?
I can connect to the MySql Server with a batch file but can't execute anymore commands (MySql command like reading from a file). I don't know how to do this, so If anyone could point me to a site or help me .... well just thanx in advance
Regards
Programm3r
Regards
Programm3r
|
|
|
|
|
this is more a question for the SQL forum[^] or even for the general questions forum
|
|
|
|
|
Thought so ..... my bad
Thanx anyway
Regards
Programm3r
|
|
|
|
|
A batch (.bat) file is nothing more than a collection of commands that could just as easily be executed from a command prompt. That said, if you can issue the SQL commands from a command prompt, then you can also do such from a batch file.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
I have one program which writes some text to a file, and save it and closes.
If we click on the file the contents can be read {text file}.
I want to know is there any way I can make a file unreadable when its opened from outside, I want to know to how to compress when file when it is closed and uncompressed when it is opened by the program.
Can u please give me some suggestions.
Thanking you,
Suresh H.
|
|
|
|
|
Why don't you encrypt/decrypt it?
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
Hi, Thanks for the reply.
How to do that ??? can u please give me some suggestions and also along that i want to compress the file.
|
|
|
|
|
You can find several in Criptography[^] category.
I have tested this one[^] and I think you could use it. All depends on the degree of security you need or if you just needs a first stop for a possible opener.
I hope it helps,
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
|
Thank you very much for the link I will check it.
|
|
|
|
|
Hi,
I need create function which returned pointer
for example:
void* tmp;
return tmp
Can ActiveX returned pointer to the external application???
Because I don't know how do it.
Function in external apllication which used ActiveX is for e.:
InvokeHelper(0x11, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
instead VT_BOOL I need poiter variable...
Please help me...
|
|
|
|
|
Hi all friends .
Is any technology for developing graphics program (GUI programming) faster than DirectDraw ?
Thank in advance .
|
|
|
|
|
|
A_Fa wrote: Is any technology for developing graphics program (GUI programming) faster than DirectDraw ?
Is OpenGl is of any use? do you want to make game?
"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
|
|
|
|
|
Dear Sir,
I still have difficult to do printPreview.
I need to do printPreview without doc/view facilities , to preview more than one pages.
And I can have more than one dialogs to preview.
Who can help me?
|
|
|
|
|
|
I go directly to the printpreview adresse.
After doing all, I have this message on #include "PrintExtension.h";
fatal error C1083: Cannot open include file: 'PrintExtension.h': No such file or directory
What to do ?
|
|
|
|
|
check you have this file and check path from this file is correct
|
|
|
|
|
Whar is true is that this fine don't exist, we have only *.lib and *.dll that I put thoses in the program path and c:\windows\system32, but still have the same error
|
|
|
|
|
From the demo example copy this file to my path but i have this message:
C:\backupmik\research\help\dialogpreview.cpp(16) : error C2039: 'classCPrintPreviewDialog' : is not a member of 'CPrintPreviewDialog'
I don't understank because this file I copy it like that from the dem project.
|
|
|
|