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 TouchToneTommy 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 horst123

  1. horst123

    ifstream can't read 0x09

    solved it with iList.i_time_8 = confdat.get();
  2. horst123

    ifstream can't read 0x09

    Okay, I write something more, so that you understand my problem: i try to read in unsigned char from a file like that ifstream confdat(file); confdat >> iList.i_time_8; All goes well, but if i try to read in any hex code from 0x09 to 0x0D i get data trash...
  3. horst123

    ifstream can't read 0x09

    Hi, I try to read from a binary file. Everthing goes well, but if i try to read a 09 he replaces it with 00. Can anybody explain this to me? thx
  4. horst123

    ScreenToClient function

    Hi, I've done it. After your comment I got the idea: mousePos = panel1 -> PointToClient(mousePos); Okay, thx anyway!
  5. horst123

    ScreenToClient function

    Okay, now there's no error, but the piece of code I wrote does nothing. The coordinates are still wrong... Any idea?
  6. horst123

    ScreenToClient function

    Hmm, after lots of try I did like that: ScreenToClient((HWND)&hwnd, (LPPOINT)&mousePos);
  7. horst123

    ScreenToClient function

    Hi, can anybody explain to me, how to use the ScreenToClient function I've done this: IntPtr hwnd; hwnd = panel1 -> get_Handle(); ScreenToClient(hwnd, mousePos); where panel is a Panel and the mousePos is a Point. The Error I get is: can't convert IntPtr to HWND thx for help
  8. horst123

    Probs with drawing a line

    Hi, using a Panel solves the problem... wonder why, but thanks anyway!
  9. horst123

    Probs with drawing a line

    Eeeh, I don't know, but I have some new information: if i write "while(true);" after the lines in the draw_Graph() method i see the lines, but the pictureBox is transparent and seems not to be completely initialized... perhaps that helps
  10. horst123

    Probs with drawing a line

    I call the start method when I push a button of the main frame ("haupt"). thx for help, I do not know what else to try...
  11. horst123

    Probs with drawing a line

    Hi there, the pointers are equal and the coordinates are okay, too. If I write draw_Graph() into the pictureBox1_click(...) method he draws the line, only if I write it into the start() method he doesn't.
  12. horst123

    Probs with drawing a line

    hmm, okay I missed the []...
  13. horst123

    Probs with drawing a line

    I initialized the p_graphics pointer like that: code p_graphics = this -> pictureBox1 -> CreateGraphics(); /code Did you want to know that? It is initialized in the start() method... I post the impotant things: code System::Void start() { this -> Show(); p_graphics = this ->...
  14. horst123

    Probs with drawing a line

    Hi, I've got a problem. I've got a class called haupt and another class called neben. In the neben class there is a pictureBox item and I want to draw a line into it. Therefor I write in haupt: neben* p_neben = new neben(); neben.start(); in the start method i write this -> Show(); and after...
  15. horst123

    new Toolbox items

    Hi, I wanted to ask if anyone can say where I can get new Toolbox items (these little things you can drag and draw onto your GUI, like buttons and stuff). I'm searching for a Graph, where you can drag a line on a few points and then get the values from this line at special points. Thx

Part and Inventory Search

Back
Top