Or make half a quadrant and mirror across the line x=y
ie. xmirror = y ymirror = x
So only 1/8 of the points on a circle need trig/floating point calculation, the other 7/8 are reflections.
abing734@yahoo.com
make one quadrant...
for (theta = 0; theta <= PI/2; theta+= delta)
{
x = radius * Cos(theta);
y = radius * Sin(theta); [ or y = sqrt(rr - x * x) ]
... the other quadrants are -x,y x,-y -x,-y
}
abing734@yahoo.com
Send a Message back to the Application Dialog.
see http://www.codeproject.com/dialog/messagehandling2.asp
BUT I got along fine doing this for "PrintME" - I send a message from a child dialog to the main dialog, which knows the CWnd of the child and so can print it. However one day...
How do I get User input of password
as ***********
- Is there an easy way, apart from GetChar or somesuch-
ever since DOS died Wind has has indigestion over character input - please dont ask me to trap PreTranslate or some other Wind mumbo-jumbo.
abing734@yahoo.com
I used DataGrid
then I discovered they only work in MDAC 2.6
Change to MDAC 2.7 and MFC++ drops them,
[this is an irreversable change...]
I believe VB still has them.
(Basic is becomming the Data access language, C++ is being orphaned.. our beloved founder evidently has fond memories of Basic)...
using rand:
Do this Once only:
LARGE_INTEGER gint;
QueryPerformanceCounter(&gint); //
srand(gint.LowPart);
Do this every time you need a random number 2..10
int p = (rand() % 9) + 2 ;
So far I have MFC:
1) sending a "Delete" message when the "Close" button is clicked.
So I cant rely on a component giving the correct msg
2)
spawning CScroll messages when the scroll is dragged [case SB_THUMBTRACK] despite a modal dialog box being shown.
So I cant rely...
So far I have MFC:
1) sending a "Delete" message when the "Close" button is clicked.
So I cant rely on a component giving the correct msg
2)
spawning CScroll messages when the scroll is dragged [case SB_THUMBTRACK] despite a modal dialog box being shown.
So I cant rely...
I got this from MSoft newsgrp:
from "Max[MS]" <max@online.microsoft.com>
1. Open IE, click Tools->Internet Options.
2. In the Advanced tab, check Browsing/Disable script debugging.
I dont know for sure, but I bet it works...
abing
Seed:
LARGE_INTEGER gint;
QueryPerformanceCounter(&gint);
srand(gint.LowPart );
QueryPerformanceCounter is much better than the clock
(ticks millions of times/second)
Since I Installed Visual Studio 6 it finds errors in half the Web pages I visit, & flashes "An error has occurred Do You Wish to Debug" - how can I kill this fatuous toad?
abing734@yahoo.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.