Search:
Type: Posts; User: lab1
Search:
Search took 1.74 seconds.

April 25th, 2011, 10:25 AM
Hmm.. I know I said "Pentagon" but I meant "Upsidedown homeplate"
Do you know how to draw that?
Thanks

April 25th, 2011, 09:31 AM

April 25th, 2011, 09:06 AM

April 25th, 2011, 08:43 AM

April 25th, 2011, 08:31 AM
Hello,
Below is sample code to calculate a point from an origin point, given the distance and angle. Thanks!!

April 22nd, 2011, 12:05 PM

April 22nd, 2011, 11:01 AM

April 21st, 2011, 09:28 AM
Hello,
I have one XY Point that should be the center of a pentagon.
I want the length of each side to be 20.
This is a Cartesian Coordinate System.
I also want the tip on the pentagon to be...

April 21st, 2011, 09:09 AM
So basically I am just looking for a simple C++ way to calculate the points:
So how can I convert this to basic C++:
array<Point> ^pts = gcnew array<Point>(6);
for (int i = 0; i < 6; ++i)
...

April 21st, 2011, 08:29 AM
So would this algorithm be correct:
X2=X1+(cos(angle)*distance)
Y2=Y1+(sin(angle)*distance)
Thanks!

April 21st, 2011, 08:09 AM

April 21st, 2011, 07:49 AM
I want to calculate the other point in a Cartesian Coordinate system. How can I do that?
Thanks!

April 15th, 2011, 10:06 AM
Hello,
I have a coordinate system
Thanks!

March 13th, 2011, 01:10 PM
hmm I changed it, but now my program just failed with a box that says "Failed to create empty document"
any idea why?
Thanks

March 13th, 2011, 12:32 PM
I also tried this code:
int mpath =1000;
std::string str(mpath+1, 0);
GetCurrentDirectory(mpath, &str[0]);
but I get this error:

March 13th, 2011, 12:21 PM
Hello all,
I have the following code that works in Debug mode in my program, but not in Release mode:
CString dir;
GetCurrentDirectory(1000, dir.GetBufferSetLength(1000));
string path =...

March 13th, 2011, 11:55 AM
Hello,
Below is the code which gives me the error:
CString temp1, path;
GetCurrentDirectory(1000, temp1.GetBufferSetLength(1000));
path = temp1 + "\\subdir\\test1.jpg";

March 11th, 2011, 06:41 PM
Hello,
I have 2 points and I need help calculating a third point. These points are in a cartesian coordinate system. Basically Given the 1st point in a line, and the midpoint, how can I calculate...

March 10th, 2011, 01:50 PM

March 10th, 2011, 01:38 PM
Hello,
I am using a CWinThread in my class, and I have the method below in my .h file that is generating a compilation error:
static UNIT Begin(LPVOID param);
I get the error:
syntax...

March 3rd, 2011, 10:31 AM
I love how you insult me while you answer my questions :) It makes me work very much harder to someday be smart as you, or smarter! Thank you!

March 3rd, 2011, 10:08 AM
Hello,
I want to add an angle to another angle and if it is larger than 360 degrees, wrap the result. For example:
angle1 = 300
angle2 = 90
angle1 + angle2 = 30
How can I do this?

February 24th, 2011, 02:41 PM
Hello,
I have a "vector<string> stringVec"and here is what I want to do:
Read 10 messages from stringVec[0] to stringVec[9]. Then remove these and move stringVec[10] down to stringVec[0] and so...

September 26th, 2010, 11:05 AM
There is a part in the standard that species that you must be able to memcpy structures to char *' and vice versa which would prohibit any type of padding in the structures.

September 24th, 2010, 12:41 PM
They cant be noops, because they flip the bytes.

Click Here to Expand Forum to Full Width
OnDemand Webinars (sponsored)
