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
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...
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...
I've written a MFC program in VC++, is there a way to add some security feature so that my program will only run on the computer that i compilied my program on? ie. some function that will read the bios information, compile it and store it, and when my program rums, check the bios of the...
Is there a way to send a message to my program to say that some letter of the keyboard was pressed? So say the program will think that "a" was pressed even though nothing was pressed?
Thanks!
I have a program where I need to round almost every number to 6 decimal places. If i create a function to do this, the code gets very messy. Is there an alternate method?
hI,
i'm creating a MFC EXE, and all i have is a combo box on a dialog.
in the onInit method of the dialog, i have
c_combo1.AddString("HELLO");
but nothing appears in the combobox when i run.
any ideas why?
I have the following simple code
double number1;
double number2 = .000000001;
number1 = fabs(number2);
and i get number1 as zero
can any body help me with why i'm losing the accuracy?
Thanks!
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.