Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Weber1

    MFC and Visual C++ Book suggestions

    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...
  2. Weber1

    MessageBox buttons: How to customize names

    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...
  3. Weber1

    Windows open file dialog

    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...
  4. Weber1

    Windows open file dialog

    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...
  5. Weber1

    Windows open file dialog

    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...
  6. Weber1

    Windows open file dialog

    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...
  7. Weber1

    Stumped about this problem: Linked list, fixed size, data access

    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...
  8. Weber1

    Stumped about this problem: Linked list, fixed size, data access

    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...
  9. Weber1

    Stumped about this problem: Linked list, fixed size, data access

    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...
  10. Weber1

    How to declare static members of class

    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...
  11. Weber1

    Question about intersection of 3-d lines--how to code?

    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
  12. Weber1

    How to combine the .cpp and .h files for compile and run?

    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...
  13. Weber1

    Question about intersection of 3-d lines--how to code?

    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...
  14. Weber1

    Creating a pointer to a class using template

    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...
  15. Weber1

    Newbie Question: New and Delete

    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 &quot;new&quot; and &quot;delete&quot; functions do? I know I can allocate memory with the &quot;new&quot; function (similar to...
  16. Weber1

    Pointer to a member of a class changing

    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...
  17. Weber1

    Pointer to a member of a class changing

    //------------------------------------------------------------------------ // Mystring constructor //------------------------------------------------------------------------ C_mystring::C_mystring() { stringdata = new char; length = 1; // Note that a null string has length = 1 due to...
  18. Weber1

    Problem with Win98 VC++ 6.0 and compiling

    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...
  19. Weber1

    Pointer to a member of a class changing

    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...
  20. Weber1

    MS Visual C++: MFC wizard crashes my computer on build. Why?!

    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 &quot;Hello World&quot...

Part and Inventory Search

Back
Top