Click here to Skip to main content
15,910,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CSocket Question Pin
Dark Angel5-Jun-00 8:03
Dark Angel5-Jun-00 8:03 
GeneralSplitter windows without MFC Pin
Richard Clayton4-Jun-00 9:58
sussRichard Clayton4-Jun-00 9:58 
GeneralRe: Splitter windows without MFC Pin
Kurt4-Jun-00 23:42
Kurt4-Jun-00 23:42 
Generalhelp me Y_Y Pin
nice boy4-Jun-00 2:09
sussnice boy4-Jun-00 2:09 
QuestionDoes any one know how to create that page break line in an edit box?? Pin
Erich Ruth3-Jun-00 5:09
Erich Ruth3-Jun-00 5:09 
AnswerRe: Does any one know how to create that page break line in an edit box?? Pin
Kurt4-Jun-00 23:49
Kurt4-Jun-00 23:49 
GeneralNeed an idea Pin
Member 3793-Jun-00 4:26
Member 3793-Jun-00 4:26 
GeneralRe: Need an idea Pin
Eddie Ng5-Jun-00 10:47
Eddie Ng5-Jun-00 10:47 
If you still remember high school trigonometry, this problem is easy to solve!!
OK, here we go..
Let the endpoint of the 1st line be (x1, y1) and (x2, y2)
Let the endpoint of the 2nd line be (x3, y3) and (x4, y4).
Let the slope of the 1st line be m1 and the 2nd line be m2. [the slope can be calculated by m1 = (y2 - y1)/(x2 - x1)]. Then the angle between the two lines is given by
arctan[(m1 - m2)/(1 + m1*m2)].
Of course you have to deal with many other factors and boundary conditions, the type of coordinate system you're using, and convert radian to degree, etc...
Hope this helps.

Eddie



GeneralVisual C++ 6.0 w/o IE4 Pin
UGenn3-Jun-00 3:21
sussUGenn3-Jun-00 3:21 
GeneralRe: Visual C++ 6.0 w/o IE4 Pin
Uwe Keim5-Jun-00 9:02
sitebuilderUwe Keim5-Jun-00 9:02 
GeneralNeed an idea Pin
Matthias2-Jun-00 22:08
Matthias2-Jun-00 22:08 
GeneralRe: Need an idea Pin
Masaaki Onishi3-Jun-00 4:35
Masaaki Onishi3-Jun-00 4:35 
GeneralRe: Need an idea Pin
Dmitriy5-Jun-00 4:28
Dmitriy5-Jun-00 4:28 
GeneralRe: Need an idea Pin
Matthias5-Jun-00 4:50
Matthias5-Jun-00 4:50 
GeneralRe: Need an idea Pin
Dmitriy5-Jun-00 6:02
Dmitriy5-Jun-00 6:02 
GeneralRe: Need an idea Pin
Buck8-Jun-00 12:54
Buck8-Jun-00 12:54 
Generalfile upload to wep Pin
Jaims2-Jun-00 16:57
Jaims2-Jun-00 16:57 
Generalsystem memory a MFC program takes Pin
nickinchina2-Jun-00 11:51
nickinchina2-Jun-00 11:51 
GeneralRe: system memory a MFC program takes Pin
Toni7826-Jun-03 21:19
Toni7826-Jun-03 21:19 
Generalmodaless dialog showed in another taskbar Pin
nickinchina2-Jun-00 11:47
nickinchina2-Jun-00 11:47 
GeneralRe: modaless dialog showed in another taskbar Pin
Brian Hart25-Jun-00 13:15
Brian Hart25-Jun-00 13:15 
GeneralAutomating applications Pin
pankaj2-Jun-00 10:09
pankaj2-Jun-00 10:09 
GeneralRe: Automating applications Pin
PPEscher4-Jun-00 23:11
sussPPEscher4-Jun-00 23:11 
GeneralSaving Applications Pin
pjp2-Jun-00 10:06
pjp2-Jun-00 10:06 
GeneralUI Thread's in a Simple Dialog Pin
Andy Bantly2-Jun-00 9:06
Andy Bantly2-Jun-00 9:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.