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

    "Hot adding" of a disk in a RAID 5 array

    I forgot... the system is a cluster server by Dell pe2650
  2. StefanoCarniel

    "Hot adding" of a disk in a RAID 5 array

    Hello everybody, I have a RAID 5 array containing 4 disks, each of 36 GB. Now I need more space, so I'm adding two new disks (same size), but I need to keep the cluster working, while I'm doing this. Is there a way to expand the RAID 5 array without shutting down the system? Thank you Stefano
  3. StefanoCarniel

    Serializing a class different from CDoc

    Hello evreybody. In my project I create a new document template, with the class CProfileDoc, CProfileView. CProfileView is derived from CFormView. The form has some control (combo box and text box) and a OK button. I need to serialize the data written in the controls when the user click the ok...
  4. StefanoCarniel

    empty string with ado

    Hello, I'm trying to read the value of the field PostalCode from an Access database using ado with the following sintax: CString buff; buff = pRecordsetAccess->Fields->GetItem ("PostalCode")->Value.bstrVal; but if the field is empty (NULL value), I get an access violation error. I tried to...
  5. StefanoCarniel

    Accessing an Oracle database with visual c++

    Hello everybody, I need to retrieve data from a database Oracle in a MFC application. I connect successfully to the database and set the sql command, but when I try to open the recordset I get the error "Invalid character" from Oracle. I don't know exactly if this is the right place to post this...
  6. StefanoCarniel

    Refresh after scrolling

    Sorry, the color of the pixel is white RGB(255,255,255)
  7. StefanoCarniel

    Refresh after scrolling

    I don't know how to use GetScrollPosition... Here's the code I use: CView::OnPaint() { CPaintDC dc(this); // device context for painting CRect rect; GetClientRect (&rect); dc.FillSolidRect (rect, RGB (0, 0, 0)); CSchermoDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); int i...
  8. StefanoCarniel

    Refresh after scrolling

    I have a problem with an SDI application with the View class derived from CScrollView. In the main window, every time the user click the mouse I draw a point. Then I use the horizontal scroll bar to reach the right margin of the window and the go back to the left margin, but the previous point...
  9. StefanoCarniel

    Create object in mainframe

    Thank you very much, now it works fine.
  10. StefanoCarniel

    Create object in mainframe

    Ok, I choose a different solution: I create the CEdit in the MainFrame::OnCreate. Now look at what happens. I created a message WM_SINC sended by a dialog to the main window. The handler CMainFrame::OnSinc looks like this: CProgressBar bar(....); //Create a progress bar for (i=0; i<...
  11. StefanoCarniel

    Create object in mainframe

    I developed an application with a menu that open a dialog box. In this dialog box, the user should set some parameters and then click the usual ok button. When this button is clicked, the application should return in the mainframe and do the following sequence: 1. Create a string 2. Create a...
  12. StefanoCarniel

    Listbox of checkboxes

    Hello everybody, How can I create a listbox with a list of checkboxes inside? I mean, like the one you can see in some installation programs that ask you what component do you want to install... I hope it's clear. Thank you
  13. StefanoCarniel

    Create a new document

    I developed a simple program with a classic File menu (New, Open, ...). When I select the New options, I show a Dialog to set some parameters for the new document and when I click on the Ok button I want the program create the new document. The problem is if I open an existing document and then...
  14. StefanoCarniel

    Refresh of the mainfrm

    Ok, I solved the problem using InvalidateRect in the OnUpdate. Thank you to all for your answers.
  15. StefanoCarniel

    Refresh of the mainfrm

    Hello, I created a SDI project with document/view paradigm, then I added a dialog box with two buttons to change the background color of the mainfrm. Here is the code: void CNewFrame::OnOK() { BkColor = RGB (0,0,0); CDialog::OnOK(); } void CNewFrame::OnCancel() { BkColor = RGB...

Part and Inventory Search

Back
Top