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 Mike Lewis 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. mlb321

    create a byte a byte array from a double value

    try these places: http://http.cs.berkeley.edu/~wkahan/ieee754status/IEEE754.PDF http://cch.loria.fr/documentation/IEEE754/wkahan/JAVAhurt.pdf
  2. mlb321

    create a byte a byte array from a double value

    Try this: double d; byte* p = (byte*)&d; for (i=0; i<sizeof(double); i++) printf(&quot;0x02x &quot;, *(b+i) ); printf(&quot;\n&quot;);
  3. mlb321

    Help with struct

    Follow up: If you'r going the hard-coded struct route, something like the following will work #include <iostream> using namespace std; struct X { int i; char* str; }; X Tbl[3] = { { 1, &quot;First&quot; }, { 2, &quot;Second&quot; }, { 3, &quot;Third&quot; } }; int main() { for (...
  4. mlb321

    Help with struct

    Hi, Could you clarify the relationship between 'Num' and 'Parameters' in your post? Are these hard-coded values or will they be loaded at run-time? I'd make it a class that has a Find/Search method - better to encapsulate that data and functionality inside a class.
  5. mlb321

    Visual C++ Pointers to Classes problem

    If getString() is returning a std::string object, I think you have to write &quot;pointer->getString().c_str()&quot;
  6. mlb321

    Constant Window/Form Size independent of screen settings

    You can use the Height and Width properties on the Screen object to get the screen dimensions in twips. The Screen object also will give you the twips-per-pixel in each direction. With this information, you can calculate the window dimensions (in whatever units you choose) and resize the...
  7. mlb321

    Object attribute

    Use .NET - it supports object introspection. Seriously, you COULD write some code to call QueryInterface on the object's class to get the public interface. As far as the variables, you'd have to serialize them one at a time - just like it's done in a user control.
  8. mlb321

    Restricting Cell Input Contingent on ComboBox Selection

    I'm not an Excel expert, but you could probably catch the Selection_Change event on the worksheet and change the selected cell to the one containing the combobox if they haven't made a selection there yet.
  9. mlb321

    printing multiple colors in one line

    Add the Microsoft RichTextBox component to your project, drop an instance onto your form, then insert the following code into Form_Load(): Private Sub Form_Load() With RichTextBox1 .Text = &quot;This is a test of multiple colors&quot; .SelStart = 1 .SelLength = 4 .SelColor =...

Part and Inventory Search

Back
Top