Looking for Christmas gift ideas (for me) and am seeking suggestions.
I'd like a good reference for MS Visual C++, specifically on using the wizard and tools.
I'd also like a good reference on MFC (prefer something which has some examples and how-to, but also has a good reference section for...
Hello, I am trying to implement a two-button message box (for errors and warnings) and I'd like one of the buttons to be something like "Log to File" and the other to be something like "Close". I haven't been able to find any way to rename the buttons, however.
This is what I have so far...
Ok, I think I answered my own question. I thought that the GetOpenFile operation would create the buffer I needed to hold the filename string, but I need to do that myself. Here's the finished (for now) operation, for anyone interested:
C_mystring* C_file_handler::LoadFileDialog(char* Path...
Ok, another question:
I have modified the code a bit, wrapped it into a class operation with char* inputs Filter and Path and it returns returnstring (char*). It appears, however, that even though I can open the open dialog successfully and pick a file, lpstrFile is not being set (it remains...
Hey, thanks!
It wouldn't quite compile for me, but I did some digging and changed OPENFILENAMEW to OPENFILENAMEA and GetOpenFileNameW to GetOpenFileNameA (write versus append?) I couldn't figure out from the COMMDLG.h file why it wouldn't work with the "W", but I'll keep playing with it. This...
I am looking for an easy to way to bring up the standard Windows open file dialog. I've looked around for an obvious way to do it, but so far no luck; at this point I'd settle just with knowing which files/libs to include and to look at, but this seems like something that should be pretty...
I am, unfortunately, more stumped than ever as to why this is not working since I have traced through with the debugger and it looks to me like it is working, except that for some reason the address of the head item is getting corrupted. The data of the first item in the list is being set...
Hmmm. Thanks for the advice, I may just do that. However, I have been hesitant to use STL classes because I cannot make them specifically like I want them; In this case, I don't really want a doubly-linked list because these nodes in the list are being used to manage memory (and I am already...
I have a class I am creating that is a template for a fixed-size linked list (basically an array of nodes with room for whatever kind of object is going in, a Next pointer, and an InUse flag.)
My problem is that when I try to "get" the data from a node, the system throws up an...
I have a class which has temporary variables:
// Private temporary classes used by this class.
static C_coordinate3d* tempcoord3d1;
static C_vector3d* tempvector3d1;
static C_line_segment_3d* templineseg3d1;
static C_coordinate3d* tempcoord3d2;
static C_vector3d* tempvector3d2...
Thanks, LorienCat.
I found this web site, but I haven't been able to make this guy's equation yield the correct results yet...this is a useful website, though, for anyone who has math/geometry problems they need equations for.
http://mathworld.wolfram.com/Line-LineIntersection.html
Do you have a main program? I create a main program (to test my individual .cpp files), just go to set up a new project. Create a new Win32 console application ("Hello World" works as a good template). From there, you put an include statement in your code like:
#include...
For a program I am writing, I am trying to find the intersection of (2) 3-dimensional lines, each line represented by a class that is an array of (2) 3-dimensional points.
That is, each line is described by two points. The points are, of course, points on the line, but not necessarily the...
Can anyone please tell me how to create a pointer to a class that is using a template? My C++ book does not show an example of this and the compiler is having fits over it. I believe the syntax should be something like:
CLASSNAME<PARAMETER_TO_SUBSTITUTE>* POINTERNAME = new...
Ok, this is a pretty lame question, but I can't find a good answer in my reference book and program is not working in the way I think it should:
What, exactly do the "new" and "delete" functions do? I know I can allocate memory with the "new" function (similar to...
Thanks for help, but not sure that the deletions/constructions are the problem (though I do not know exactly what the machine language is doing when I exit the function CreateUnitFromFile.) I DO know that the values of the pointers are correct directly before the function exits (I print out...
I hope this is helpful tip!
(Using Microsoft VC++ 6.0 on Win 98)
I had problems awhile back with creating Windows applications (dialog boxes, etc.) (DOS window worked ok); whenever I tried to build the executable, Windows would immediately throw me to the blue screen error message and would not...
I have a problem with a class function which deletes and re-creates some members within the class (C_mystring* name and C_mystring* designation); these are just pointers to instances of my own string class (a char* and an int for the length); However, once the function exits, the values of the...
Whenever I use the MFC wizard on Visual C++ 6.0, I get a computer crash (blue screen with error message, computer won't respond to anything short of hitting power button) when I try to build. (Also, same problem occurred when using Win32 app wizard to create a simple "Hello World"...
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.