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 SkipVought 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: sma
  • Order by date
  1. sma

    Storage of numbers in a binary file

    Open your file as binary. declare a double YourVariable //location for read data. FILE* Inputfile; // input stream. Open the file for binary read, then use fread(&YourVariable,sizeof(double),1,Inputfile). this reads the number of bytes required to read a double value from a file and stores...
  2. sma

    Put Enter character !!!

    This is not quite right. char *szTemp = new char[10]; // creates pointer to space szTemp = "Hadi"; // allocates location of string defined not at your intended location should use strcpy or similar. szTemp[5] = char(13); szTemp[6] = char(10); szTemp[7] = '\0'; The char(13) and...
  3. sma

    Window Resizing

    To resize a window in one or both directions, the method I use is to create a CRect class member for the window and initialise it with the original size of the window. I then use this as a reference for all resizing activities. Override the OnSize message handler for the window that you wish...
  4. sma

    Dialog box question...

    To resolve this problem, add a class member variable to the dialog class using the class wizard. This member is public therefore it can be accessed whenever the dialog is instantiated. Using the class wizard to add the variable ensures that the required data exchange functions are implemented...
  5. sma

    Runningtroubles

    This message infers that you haven't defined any class member variables that have been allocated or defined the available DDX (DynamicDataExchange) capabilities to. If you added a class variable via the CLASS WIZARD this is automatically done. However if a variable is added manually you need...
  6. sma

    Find Replace Common Controls

    I am attempting to utilise the common control FindReplace, the program compiles and runs under debug in visual C++ version 6.0, SP5 under NT4, and Windows 2000. Here is my problem, when it is compiled in release mode, the executable crashes with the error message can't access memory xxxxxx. I...

Part and Inventory Search

Back
Top