Search:

Type: Posts; User: nineofhearts

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,019

    how to enable a button

    I have a button that on creation is disabled using WS_DISABLED but later i need to enable it and I have no clue how to do it.

    Help, please.
  2. class RecAdj { public: RecAdj(); char...

    class RecAdj
    {
    public:
    RecAdj();

    char m_invoice_c11[11];

    void ReadRec(int number, CListBox* pListBox);
    void SaveRecItem(CString filename);
  3. i have tried CString name = "Bob"; name...

    i have tried



    CString name = "Bob";
    name += " ";


    But on the save funtion name becomes "Bob" again. and the spaces are gone.
  4. saving a CString to binary file with trailing spaces

    Heres what i want to happen except i want it to happen with a CString instead of a char []:



    char name[10] = "Bob ";

    ofstream fout(filename, ios::binary);

    fout.write(name,...
  5. Zuk, this solved the problem. Thank you sooooo...

    Zuk, this solved the problem. Thank you sooooo much.
  6. I get the following error. ...

    I get the following error.

    C:\unzipped\binary\main.cpp(183) : error C2440: 'delete' : cannot convert from 'class aClass' to ''

    Just in random attempts, I have tried many combinations.
  7. I have tried the following but it did not work. ...

    I have tried the following but it did not work.




    std::list<aClass>::iterator iaClass = aClassList.begin();

    while(iaClass != aClassList.end())
    {
    delete &iaClass;
  8. delete a pointer held by a list container

    example

    aClass * aObject = new aClass;

    std::list<aClass> aClassList;

    aClassList.push_back(aObject);

    //do lots of stuff passing the list back and forth among functions
Results 1 to 8 of 8