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: *

  • Users: sleze
  • Order by date
  1. sleze

    adapting console code to a gui

    I got a nice bit of code running very smoothly on the console and now have to implement the gui. The problem is that printf() doesn't seem to work too well without a target for output. Would anyone be able to point me to a site that explains how to redirect the output to an mfc control(like a...
  2. sleze

    problem with class instatiation

    You guys are not gonna believe this. In frustration, I tried creating a new class that did nothing and boom it works. I then named that class FILESCHEMA and boom, it broke. I renamed the class I was having trouble with to myfilescema...boom it works. So apparently there is something wrong...
  3. sleze

    problem with class instatiation

    In Java, that is called prototyping. I just assumed that you do the same thing in C++. Here is the fully definition: class FILESCHEMA { filename thisfile; bool is_dir; public: struct subdir { FILESCHEMA * subfiles [MAXNUMOFFILES]; //array containing subdirectory filenames...
  4. sleze

    problem with class instatiation

    FILECHEMA.h is just a standard .h file created automatically by VC++ compiler the one that is doing all the work is directory.h: #define SEARCHPATH "c:\\archives\\test" #define ALLFILES "\\*" #define ALLFILESNUM 3 #define BATFILES "\\*.bat" #define BATFILESNUM 6 #define ALLDIR "\\*." //this is...
  5. sleze

    problem with class instatiation

    Now I am going crazy...I moved the class out into its own .cpp and created a definition in a header file(like good programmers should) and it is still giving me the error. The reason I am going crazy is that now it is doing the same thing in main(). After commenting a TON of stuff out, this is...
  6. sleze

    problem with class instatiation

    I have this declared at the top of the actual .cpp file class FILESCHEMA(filename currentfile, bool dirstatus); filename is a typedef string that I created
  7. sleze

    problem with class instatiation

    I am new to Visual c++ (having used c, java and VB, I thought the transition would be easy) and keep running into annoying errors. Here is the latest one. I have created a class, FILESCHEMA and created an object in the main function FILESCHEMA myfile(SEARCHPATH, true); for use with testing...

Part and Inventory Search

Back
Top