|
yang__lee wrote: I just want to see the handles at its end points.How I may achive this.
CRectTracker won't help here. You'll need to make your own class or find one on the web. I don't know of any off hand, but it's not very difficult to do your own.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hello to All,
Can any one help me how to display console windows inside the dialog box as in many rs232 monitring softwares console type window is embeded in dialog .
|
|
|
|
|
Use a multiline edit control.
Software Zen: delete this;
|
|
|
|
|
Although your solution is the best way I know, it is not a direct implementation. We must handle scrolling ourselves, since the edit control will try to keep the initial line visible, instead of the last. Also, we must make it so that the text box does not grow indefinitely.
To simulate a real console the number of characters must be fixed. I assume the requirement is not as strong, and that it is acceptable to have a limited number of lines that doesn't match the draw area exactly. In this case the user can then scroll up to see some of the previously shown text.
Rilhas
|
|
|
|
|
Hi,
I am drawing a line pDC->Line(...) in my view 1.. suppose there are 3 more views for the same document are open . The views which are referencing same area as view 1 should also reflect the rubberband effect as I go on placing the line. now current effect if.. first I complete the placement of line
in view 1 then I call GetDocument()->UpdateAllViews(NULL, 0, NULL); so the line reflects in other views aswell. I want to see the line placement in all views as its in progress. How I may achieve it. calling UpdateAllViews in MouseMove event may not have irritating effect.
any idea?
Leya
|
|
|
|
|
Application developed in vc++.After sometime i got this error
Error info:
exe has generated errors and will be closed by windows.You will need to restart the program
raghu
-- modified at 7:49 Saturday 29th April, 2006
|
|
|
|
|
I'm afraid we'll need a little more information then this to get anywhere with your problem.
Steve
|
|
|
|
|
should i send u windows error dialog box
|
|
|
|
|
stephen how to post the windows error dialog box.can u give a detail info
|
|
|
|
|
your program may read/write the protected memory, so the windows let you restart your program.
Good luck;)
|
|
|
|
|
Run your program in the debugger and Visual Studio will break when the exception is generated.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I have compiled one application for 64 bit processor. it works fine in 64 bit processor. but not work 32 bit processor . why is it not working ?.how to resolve it.
-- modified at 6:43 Saturday 29th April, 2006
|
|
|
|
|
If you target a 64 bit processor it will not work on a 32 bit one because you will likely use features that don't exist on 32 bit processors such as 64 bit registers. The 64 bit processor's features are a superset of the 32 bit processor's features; this implies that the 32 bit processor's features are a subset of the 64 bit processors. As such you can only expect compatibility in one direction.
Steve
|
|
|
|
|
On top of Steve's answer, the executable file tells Windows whether it's 32-bit or 64-bit, and 32-bit Windows will only run 32-bit executables.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
hi,
Any body pls tel me...How can i get the handle of a dialog which is cretaed by calling DoModal or Create()?
yours faithfully
Ajeesh
|
|
|
|
|
|
You mean MFC's CDialog 's member functions DoModal and Create ? The class has a member variable called m_hWnd which can be access directly or by calling the member function GetSafeHwnd .
Steve
|
|
|
|
|
Use FIndWindow();
Cheers
"Peace of mind through Technology"
|
|
|
|
|
|
Search in the MSDN for following functions:
1. LoadLibrary : Loading the library in the process
2. GetProcAddress : Get the address of a function
3. FreeLibrary : Un-mapped the library
Regards
Amar.
|
|
|
|
|
Thank you very much!!!
-------------------
I am learning C++ and English
|
|
|
|
|
You need to add it as a reference to your project.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I am developing a database application programe.My database is SQL Server.
I read a coloum value with datetime type into a byte buffer in the program.I would like to display it in list control.
how to convert it into CString object.
Thank you very much!
|
|
|
|
|
What database access technology are you using? Can you show the code which reads the column in question?
Steve
|
|
|
|
|
uglystone wrote: I read a coloum value with datetime type into a byte buffer in the program.
Put that ByteBuffer in COleDateTime, and using it GetDay... function get CString object using CString::Format function
"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
|
|
|
|