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!

Search results for query: *

  1. hennep

    How to add VPC shared folder to the intranet zone

    Midreading is very difficult indeed :-) I will try to be more clear in describing my problem. In your last screenshot you have shared a host directory "inetpub". Try to copy a zip-file to this directory, any zipfile is alright. In te virtual pc, right click on the zipfile in the shared folder...
  2. hennep

    How to add VPC shared folder to the intranet zone

    That's a lot of information, but it does not help me fix my problem. The screenprints differ from my version of virtual pc. Also I don't want to give full access to the host machine. I only want to share a single folder using the folder icon shown in the statusbar of vpc, when vpc is not...
  3. hennep

    How to add VPC shared folder to the intranet zone

    I would like to add a VPC shared folder to be treated as a secure location, these folders are hosted by my local pc anyway. Network shares can be marked as intranet zone to get rid of popups like "There is an unspecified security risk". I cannot do this for VPC shared folders because they do...
  4. hennep

    AnsiString.cat_printf does not work

    ...with TTimer and TMemo //--------------------------------------------------------------------------- void __fastcall TForm1::FormCreate(TObject *Sender) { Memo1->Text = "\r\n=========\r\n=========\r\n=========\r\n========="; Timer1->Interval = 1; Memo1->ScrollBars = ssVertical; }...
  5. hennep

    AnsiString.cat_printf does not work

    Hi James, I am using BCB6. I know that to get rid of flicker when painting, you can set the DoubleBuffered property of the PaintBox. This type of flicker is different. I have already found that it is caused by moving the cursor to the end of the box. When I remove the linesMemo1->SelStart =...
  6. hennep

    AnsiString.cat_printf does not work

    The format approach makes no difference, it's still flickering: Memo1->Text = Memo1->Text.Format( "%s%s", OPENARRAY(TVarRec, ( Memo1->Text.c_str(), buf ) ) ); Memo1->SelStart = Memo1->Text.Length(); Memo1->SelLength = 0; ================================= Computer programmers don't byte, they...
  7. hennep

    AnsiString.cat_printf does not work

    ...to show the data read from a serial port. The DoubleBuffered property of the TMemo is set to true. AnsiString as; char buf[1024]; class SerialPort *sp; ... ... ... sp1->Read( buf, 1024, len ); if( len ) { as = Memo1->Text; buf[len] = '\0'; as += buf; Memo1->Text =...
  8. hennep

    AnsiString.cat_printf does not work

    Who can explain why cat_printf doesn't do what I expect, concatenate to Edit1->Text Edit1->Text.cat_printf( "%s","text"); Edit1->Text is not affected! ================================= Computer programmers don't byte, they nibble a bit
  9. hennep

    Serial port component

    This version has a thread to read from the serial port. I deliberately did not use events because we need a window handle to send the events. I do not have plans to put it in a component yet. The idea is, when I leave it in a class there are no compiler dependencies. I have replaced the zip on...
  10. hennep

    Serial port component

    Hi James, I modified a simple class to communicate with the serial port. Found the original on the codeproject site. I will start with a receiving thread tomorrow. This zip contains a test project written in bcb6 http://hennep.xs4all.nl/cpp/BcbSerialClass.zip It only starts the log function...
  11. hennep

    Serial port component

    At first sight it looked too good. I have installed the TMS trial component. When I run the project it asks for a .pas file. (VaComm1.pas) The TMS component is also written in pascal. $75 is not too bad. I need it for a project and takes me at least one day to create a simple component myself...
  12. hennep

    Serial port component

    I need a component to access the serial port in CBuilder. There is a lot to find on the web but most of it delphi or msvc. Does anyone know of a vcl component that is written in c++ instead of pascal? I need to run multiple instances to address several usb2serial converters. many thanks in...
  13. hennep

    Drag and drop on VCL components

    You've solved it, thanks alot.
  14. hennep

    Drag and drop on VCL components

    Your code does not always work. Once you have written a small inmage in the top-left corner, you cannot resize the image anymore. Please try this: int iTopMost = 1000, iLeftMost = 1000; Image2->Canvas->Draw(100, 100, Image1->Picture->Graphic); //Once you have written to the canvas...
  15. hennep

    Drag and drop on VCL components

    I hoped that I could do the job without calculating the size of Image2 and expected that AutoSize would do this for me. So I have to create a new control. A descendant of TScrollBox and TImage. If you might find another control that's more suitable, please let me know before I finish my own :-)...
  16. hennep

    Drag and drop on VCL components

    I tried tis code: TGraphic *g = Image1->Picture->Graphic; Image2->AutoSize = true; Image2->Canvas->Draw(100,100,g); Image2->Canvas->Draw(10000,10000,g); I expected Image2 to expand to the size needed to fit the expanded image. Image2, width 700, height 500, fits snug inside...
  17. hennep

    Drag and drop on VCL components

    I want to build an application that shows images like a flow chart. Which component would be the best choice to draw the pictures. I mean a TImage has a canvas on which I can draw, but it does not have scroll bars. A TScrollBox does have the bars but no canvas. Does anybody know of a VCL...
  18. hennep

    How to right align numbers in a TStringGrid

    thanks a lot James, I've just read the article and it sounds promising. I will try this at home. (sorry for the typo's)
  19. hennep

    How to right align numbers in a TStringGrid

    thanks alot James, I've just read the article and it sound promising. I will try this I home.
  20. hennep

    How to right align numbers in a TStringGrid

    I would like to align text in a TStringGrid. Not only the numbers in the cells but also the caption in the first (fixed) row. The only thing I could think of is to add spaces in front of the number. This does not work with the caption in the first row when the user can change ColWidth run-time...

Part and Inventory Search

Back
Top