|
Hi,
Could u tell me the formula of point of intersection?
Here I have two straight lines
First straight line co-ordinate (x,y) & (x1,y1)
Second st. line co-ordinate (x2,y2) & (x3,y3).
Now I have all these co-ordinates with me,so please suggest me the point of intersection formula based on above input.
Thanks in Advance
Ram
|
|
|
|
|
http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline2d/
google
|
|
|
|
|
Sir
Can anyone help me in knowing abot MapFiles
What is a Map file? Why we have to use a Map File?
thank you
Fly Like An Eagle With MIGHTY POWER.
|
|
|
|
|
A map file is a file that contains all of the address information (and other stuff) about your code, either in the form of an offset from a starting location, or the actual runtime value. I use map files to get the addresses of exported variables in my VxWorks embedded code.
|
|
|
|
|
CodeVarma wrote: Can anyone help me in knowing abot MapFiles
memory mapped file or something else?
"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,
I'm developing an application that should be able to display names of people from various corners of the world (ie, lots of languages at once). For that, I'd really like to be able to create a font that could handle all the unicode characters (or at least some kind of roman alphabet subset, but with all the punctuation and stuff, so that ie. Goethe would spell Gothe with an umlaut etc). I'm not sure such fonts are even installed (WXP).
I tried CreateFontIndirect, but since not even the LOGFONT structre has any attribute that would take "make it a unicode font", I don't know what to do next (and I really don't want to store language informoation and create multiple fonts etc). Any hints?
PS: I also tried looking at unicode.org, but still I'm unable to render most of the fonts
|
|
|
|
|
|
HI,
I HAV created a dialog box in which i have placed a static text control.
I have created one more dialog box say dialog2 in which i have a button control.
i want to bring dialog2 in to the static text control of first dialog and need to how to access the button control in dialog2 inside the static text control of dialog1.
plz let me know immediately,
thnx
zari
|
|
|
|
|
Send a message with SendMessage to the other dialog, process that message in the other dialog.
If you want to do it cleaner, you can use a registered message.
Hope this helps.
|
|
|
|
|
if we suppose CMain is dialog1 and Local is dialog2 you can use CMain *m_Main=(CMain*)GetParent(); m_Main->m_StaticControl
|
|
|
|
|
Having a dialog interact with controls it does not own is a bad design. Post a message to the second dialog instead.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
zareee wrote: want to bring dialog2 in to the static text control of first dialog and need to how to access the button control in dialog2 inside the static text control of dialog1.
plz let me know immediately,
Interprocess communication would be good. try http://www.codeproject.com/threads/#Inter%2DProcess+Communication[^]
"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've built an SDI application without problems, adding classes. When I've linked a thirdy party library i've had to change compiler switch from Multithreaded (/MT) to Multithreaded DLL (/MD) and adding the _AFXDLL symbol to properly compile the entire project. The project is linked with the shard version of MFC.
When the application exits, i've noticed a lot of memory leaks and that classes destructors are not invoked (CView derived class and CMainFrame destructors are invoked, but CDocument destructor and other
classes destructors are not invoked).
I can't understand the causes of this problem and if the /MD compiler option is one of them.
Any idea ?
|
|
|
|
|
Take a look at where and how you create an instance of the class. The probable cause is that you have created an instance somewhere with the keyword new, and you are failing to call delete. If that class has other classes as members, their destructors will in turn fail to be called.
|
|
|
|
|
Dear all
I Write one class in Visual C++ which is responsible for logging of stream data.
This Class is used in a dll which is used to contact to hardware.
I want to enable the logging capability in some special times.
But Because this class is used in a dll file, I can not access it via keyboard or mouse. (I dont access the program that uses my dll.)
thus I need an interface to inform my class to enable or disable logging process.
for an example I can create a file in a special place, and my class check the existence of that specific file as a sign of logging permission.
But this solution is not professional.
Thus please send me your idea about this problem.
Thanx in advance
Mahdi
|
|
|
|
|
Depends a lot of how you 'use' your dll. Is this class exported by your dll ? If yes, simply treat exactly the same way as if it was part of your application (so, add a function in the class to enable or disable the logging). If it is not exported, you can still export a function in your dll that will allow to enable or disable the logging.
|
|
|
|
|
m_monhi wrote: But Because this class is used in a dll file, I can not access it via keyboard or mouse. (I dont access the program that uses my dll.)
Can you explain this? To able to use your class that logs. There should be some application that uses it?
|
|
|
|
|
m_monhi wrote: This Class is used in a dll which is used to contact to hardware.
Can you modify the EXE that uses your DLL?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi,
i have a static text control in a dialog box ,how to find the dimensions of the static text.
thanx in advance,
zari
|
|
|
|
|
CRect rc;
GetDlgItem(IDC_STATIC_TEXT)->GetWindowRect(&rc);
Jesus loves you. But I'm his favorite.
|
|
|
|
|
i am getting an error by placingbthe given lines o9f code in ONINIT of my dialog.
can ne 1 help me???
zari
|
|
|
|
|
have you given the static control an ID the defailt is IDC_STATIC change that to something else and use that instead of IDC_STATIC_TEXT
Jesus loves you. But I'm his favorite.
|
|
|
|
|
YES i hav used the same ID in that place but it doesnt work out.wen i use control tab the PARAMETER idc_static IS NOT PRESENT IN THE LIST.
zari
|
|
|
|
|
zareee wrote: ...idc_static IS NOT PRESENT IN THE LIST.
It's not supposed to be. That's why it's a special ID.
Why can't you just give your static control a different ID?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
if you have a variable for static control use CRect rect;m_Static.GetWindowRect(&rect);
|
|
|
|