Click here to Skip to main content
16,005,169 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGeneric List and n-criteria sorting Pin
Mariano Lopez-Gappa27-Oct-05 8:47
Mariano Lopez-Gappa27-Oct-05 8:47 
AnswerRe: Generic List and n-criteria sorting Pin
David Crow27-Oct-05 9:38
David Crow27-Oct-05 9:38 
GeneralRe: Generic List and n-criteria sorting Pin
Mariano Lopez-Gappa27-Oct-05 16:55
Mariano Lopez-Gappa27-Oct-05 16:55 
GeneralRe: Generic List and n-criteria sorting Pin
John M. Drescher27-Oct-05 20:36
John M. Drescher27-Oct-05 20:36 
GeneralRe: Generic List and n-criteria sorting Pin
Mariano Lopez-Gappa28-Oct-05 4:54
Mariano Lopez-Gappa28-Oct-05 4:54 
AnswerRe: Generic List and n-criteria sorting Pin
carks27-Oct-05 10:17
carks27-Oct-05 10:17 
Questionmath question Pin
Manu_8127-Oct-05 7:55
Manu_8127-Oct-05 7:55 
AnswerRe: math question Pin
toxcct27-Oct-05 8:12
toxcct27-Oct-05 8:12 
you have to make a system with 2 equations.

one with the circle equation :
E1: ax²+by²=r²
where r is the radius (not sure about the word in english - it is diameter/2)

another with the line equation
E2: ax + by + c = 0

then solve the problem. you will have 2 solutions (as the line always goes through the center of the circle). to choose which is the right one, you'll have to compare the coordinates of the center, with the coordinates of the mouse click.

if ux > cx then
    Solution is then one with x > cx
else if ux < cx then
    Solution is the one with x < cx
else // ux == cx
    if yx < cy then
        Solution is the one with y < cy
    else if yx > cy then
        Solution is the one with y > cy
    else
        //The user clicked the center
        No Solution



TOXCCT >>> GEII power
[toxcct][VisualCalc]
AnswerRe: math question Pin
Bob Flynn27-Oct-05 9:40
Bob Flynn27-Oct-05 9:40 
GeneralRe: math question Pin
Manu_8127-Oct-05 10:19
Manu_8127-Oct-05 10:19 
QuestionInscrease width of columns in datagrid Pin
cppdotnet27-Oct-05 7:55
cppdotnet27-Oct-05 7:55 
AnswerRe: Inscrease width of columns in datagrid Pin
Chris Losinger27-Oct-05 8:52
professionalChris Losinger27-Oct-05 8:52 
GeneralRe: Inscrease width of columns in datagrid Pin
cppdotnet27-Oct-05 9:04
cppdotnet27-Oct-05 9:04 
GeneralI tried Pin
cppdotnet27-Oct-05 9:10
cppdotnet27-Oct-05 9:10 
QuestionMultibyte strings not displaying correctly Pin
Ian Bowler27-Oct-05 7:00
Ian Bowler27-Oct-05 7:00 
AnswerRe: Multibyte strings not displaying correctly Pin
Prakash Nadar27-Oct-05 8:35
Prakash Nadar27-Oct-05 8:35 
GeneralRe: Multibyte strings not displaying correctly Pin
Ian Bowler27-Oct-05 8:45
Ian Bowler27-Oct-05 8:45 
QuestionRe: Multibyte strings not displaying correctly Pin
Prakash Nadar27-Oct-05 16:16
Prakash Nadar27-Oct-05 16:16 
QuestionConverting try/catch to __try/something Pin
integerous27-Oct-05 6:31
integerous27-Oct-05 6:31 
AnswerRe: Converting try/catch to __try/something Pin
toxcct27-Oct-05 7:43
toxcct27-Oct-05 7:43 
GeneralRe: Converting try/catch to __try/something Pin
integerous27-Oct-05 12:57
integerous27-Oct-05 12:57 
QuestionSecure IPC Pin
Chintoo72327-Oct-05 5:59
Chintoo72327-Oct-05 5:59 
AnswerRe: Secure IPC Pin
ThatsAlok27-Oct-05 22:25
ThatsAlok27-Oct-05 22:25 
QuestionWhat's this? Pin
Le Sourcier27-Oct-05 5:41
Le Sourcier27-Oct-05 5:41 
Question Hash string function that keeps compare properties Pin
Kochise27-Oct-05 5:27
Kochise27-Oct-05 5:27 

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.