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!

Recent content by ASingerMustDie

  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

    It is indeed of type double...but I have found the problem goes away if I don't trace any associated functions/methods when debugging (which is annoying)...now I have a bother elsewhere with -1.#INFO
  3. 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...
  4. ASingerMustDie

    Endians

    Thanks...and thanks again :-)
  5. 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
  6. 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...
  7. 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...
  8. ASingerMustDie

    Controlling a CEdit with CSpinButtonCtrl

    That is indeed a solution, thankyou. However, I attempted to simply the problem for ease of reading and solution. Rather than increment by 5, I actually want the spin to move to the next or previous power of two, i.e.: ceditvar.SetWindowText(pow(2, cspinvar.GetPos())); And I don't immediately...
  9. 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...
  10. ASingerMustDie

    Mixing Strings and Ints

    Thanks Keith, I had tried the Format method but must have misinterpreted its usage and ended up using %s instead of %d, which crashed the computer. All works fine now, thanks much. And to MaxDaddy :-)
  11. 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...
  12. ASingerMustDie

    Dynamic Multi-dimensional Arrays

    Thanks everyone. To be frank, I never expected that it wouldn't be supported or I'd have worked on other solutions myself. Thanks for the tips :-) You've all been nominated for Tipster :-D
  13. 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...
  14. ASingerMustDie

    Reading Files

    Thanks all :) You've been most helpful, problem sorted. :)
  15. ASingerMustDie

    Reading Files

    OK...all of a sudden I feel like I need my hand held... I tried to copy the buffer thus: char waveHead[4]; //Open and read file strcpy(waveHead, waveBuffer); But this not only crashed the program but the entire computer...it has been so long since I dabbled in C++. Thanks for the help so...

Part and Inventory Search

Back
Top