|
gnanapaul wrote: i was declared like
CThreadClass* My_Thread;
in class1.
Why not declare it in a base class that all the other classes are derived from?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
pls help me regarding!!!! the project is to help a disabled to move from a place to the exit in event of a fire or so,so we plan to give a software simulation for this situation,something which dynamically calculates the shortest path .....something like the maze game....please help me regarding this...how to start up with?????????
|
|
|
|
|
So, concretely, what do you want to know, and what do you want us to do ?
are you expecting us to do the job for you ?
|
|
|
|
|
no i just wanted to know should v have to adopt some algorithms for this?
|
|
|
|
|
If you can divide your space into 'cells' then have a look at the A* algorithm, it is quite powerfull for that purpose (just google for "A start pathfinding", you'll find plenty of links).
|
|
|
|
|
thanks for ur reply....is this algorithm apt for a project like this??pls do reply...
|
|
|
|
|
Well, if you just need to find the shortest path in a grid with certain cells being blocked, then yes. But it requires that you divide your space in squares and the shortest path will be given as a succession of cells. Is it sufficient for your needs ?
|
|
|
|
|
You need to research and become familiar with this.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
is it possible to get cursor position in multi line edit box.
I need this so I can insert some additional string in place of cursor position?
Thanks in advance.
|
|
|
|
|
Definitely u can.
use the CEdit::GetSel()
to find the cursor position even if there is not selection in the Edit control. it will return the start selection and end selection as same.
|
|
|
|
|
|
hi
i want to give ip address of the server to client from client dilog box
how it is
Girish
|
|
|
|
|
Your question is way too ambigious to make any sense. Please explain.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi All,
I have some FormView and on it i put some Dialog.
When i have button event of the mouse i want to catch the event by the dialog - but actually the event is caught by the FormView and i don't know how to change it.
Someone can help me ?
Thanks.
|
|
|
|
|
Catch the messages in the form view and relay them to your dialog.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
Ok, but
1. How can i relay them to my dialog ? ( how to do it ? - call some method of the dlg ? )
2. Is there some other way ? How can i Catch the msg just in the Dialog and not in the FormView ? Is there is some way to make the FormView Skip some Message ?
|
|
|
|
|
The system always sends the messages to the window under the
cursor, unless the cursor is captured by another window.
If you need to pass/forward the message to another window, you
can use SendMessage()/PostMessage().
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi
How to set background color by using RGB in AfxRegisterWndClass. For eg. Red color
thanx in advance
-RisKhan-
|
|
|
|
|
use CBrush(RGB(255,0,0)) in Place of HBRUSH argument
or
if u r not using MFC
Create a brush using
HBRUSH hBrush = CreateSolidBrush(RGB(255,0,0))
and pass it to AfxRegisterWndClass as HBRUSH argument
|
|
|
|
|
Nitheesh George wrote: if u r not using MFC
Create a brush using
HBRUSH hBrush = CreateSolidBrush(RGB(255,0,0))
and pass it to AfxRegisterWndClass...
If MFC is not being used, how can he call AfxRegisterWndClass() ?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
RisKhan wrote: background color by using RGB in AfxRegisterWndClass
Takes a brush as third parameter, use CreateSolidBrush( RGB( 255, 0, 0 )) to get a red brush and pass this to the function.
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http:\\nibuthomas.wordpress.com
|
|
|
|
|
nitpick: Don't forget that you are responsible for the brush you create. You will have to call DeleteObject at some appropriate point.
|
|
|
|
|
Member 754960 wrote: Don't forget that you are responsible for the brush you create.
Yes, true.
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http:\\nibuthomas.wordpress.com
|
|
|
|
|
Hi All,
How we can identify Open/Save Dialog using WIndows Hooking.?
|
|
|
|
|
There is a CWebBrowser2 control in the dialog based project, the web browser control displalys a html page, when users click on the links in the htmp pages, a new IE window should be openned. It seems I need to change the property of the CWebBrowser2 control, but I can't find how to do it.
I know if the html code is something like "<a href="some_url" Ontarget="_blank">link</a>" , a new IE will opened, but if there is no Ontarget="_blank" in the html code, the CWebBrowser2 control should still open a new IE window after a clicking.
Thanks for hlep!
|
|
|
|