if i have a radio button group, how can i determine the index of the radio button that is currently selected without saying
Updata(true);
int index = m_button;
??
I have a MFC DLL that is being called from another program, and I have a modal Dialog box that pops up. Is there a way I can hide/minimize the dialog box without minimizing the program?
Thanks,
Duckman
here's my reasoning:
allPoints[0] returns double[3]
so &(allPoitns[0]) returns a pointer to double[3]?
I also tried without the "&" since i'm thinking double[3] is actually an address of the first element of the array...
but it's giving me an error saying that there is a difference...
p_3d is actually an API typedef, and it's used to hold XYZ coordinates of points in 3-space. mmm, my application (not stress test!) is that I have a solid, and have a triangulated mesh genereated, which means i've created a surface out of adjacent triangles that entirely covers my solid. my...
If I have a function
struct myStruct{
double myDouble;
}
func(vector <myStruct> &myVector){
myStruct dynamicMyStruct;
dynamicMyStruct = new myStruct;
myVector.push_back(dynamicMyStruct);
}
how do I delete the memory associatted with dynamicMyStruct? I cannot delete it at the end of the...
instead of using a vector, what should I use?
crap, i copied that code entirely wrong...i actually have
triangle tri
tri.points[0] = &(allPoints[0]);
a little bit confused on what allPoints[0] returns...a struct? or an address?
thanks a lot!
if:
typedef double p_3d[3]; and
struct triangle{
p_3d* points[3] // three points to p_3d
}
and I have a vector <p_3d> allPoints,
when I do triangle.points[0] = &(allPoints[i]) I get
'&' requires l-value
what is the correct way to do this assignment?
thanks!
I have an array of points, which form the vertices a triangles. I also have an array of triangles, each of which has a 3 pointers pointing to 3 elements of the array. The original array contains duplicate points, as one point may be the vertex of more than one triangle. I need to delete all...
sort of...except that I'm hoping that when I move my code to another computer, and i recompile on that computer, a C++ function will read the computer's ID, instead of me having to find out manualy the ID and code it as some kind of string literal..but then, there's also the problem of how to...
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.