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 bkrike 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. ASingerMustDie

    Device Contexts and 24-bit Bitmaps

    Hi Everyone :-), (Incidentally, I also posted this plea in a Microsoft Newsgroup, I hope that doesn't annoy anyone? :-) ) I am having trouble understanding why the following method (invoked when I click the corresponding button in a dialog) is not drawing an image to the screen. void...
  2. ASingerMustDie

    -1.#IND000000000

    Hi All, I have written a program for which I wrote an object to mimic dynamic 2D arrays, using a single imension array, and it has been working fine. However, in a newer part of the program, when the method GetXY is called (to get the value at a certain coordinate), a value of -1.#IND000000000...
  3. ASingerMustDie

    Endians

    Hi everyone, How may one go about writing a buffer to a file in Big-Endian form rather than Little-Endian? CString buffer; buffer = 6; WriteFile(myHandle, buffer, 2, &bWritten, NULL); Gives (in hex): 06 00 How do we get: 00 06? Any help most appreciated, ASMD
  4. ASingerMustDie

    GetParent() from Modal Dialog

    Hi Everyone, Thanks for all your help regarding other matters :-) This is almost similar to a previous question, but different enough, I feel, to warrant a seperate thread... If one was to open a modal dialog box (Dialog2) from another dialog box (Dialog1), is it possible to reference (and...
  5. ASingerMustDie

    CEdit Updates (EN_CHANGE)

    Hi Everyone :-) In a modal dialog box, I wish to change the contents of one CEdit control each time the contents of another CEdit control are changed. To do this, I created a function for the EN_CHANGE member function of the latter control as follows: void test::OnChangeCedit2() { CString...
  6. ASingerMustDie

    Controlling a CEdit with CSpinButtonCtrl

    Hi Everyone :-) Now imagine I am wishing to use a CSpinButtonCtrl to change the numeric contents of a CEdit control. This is simple enough, of course, if I wish to increment/decrement the CEdit value by 1. Now suppose I actually wish to multiply the spin value by 5, i.e. show 5 for 1, 10 for...
  7. ASingerMustDie

    Mixing Strings and Ints

    Hi All :-) Sorry to barge in here with yet another question...but this one surely IS trivial this time :-) Having said that though, everything I expected to work either didn't or crashed. The problem is this, I was two variables displayed inside a static text control, i.e: var1 = 12; //could...
  8. ASingerMustDie

    Dynamic Multi-dimensional Arrays

    Hi All :-) Surely this has been asked before, I would search but that particular facility appears to be permanently out-of-order. What I am hoping to do is declare a 2-dimensional array with bounds according to two variables, such as: int x = 50; // could be anything iny y = 100; // could be...
  9. ASingerMustDie

    Reading Files

    Hi All :) Sorry to bother you with something surely so trivial... I am attempting to read the first 4 bytes of a file and ensuring that it reads "RIFF" (perhaps for obvious reasons). I am using ReadFile to achieve this, the problem being that the buffer I read into seems to have an...

Part and Inventory Search

Back
Top