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 strongm 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. aakhrinaam

    Access to structure members

    wswain, If I have understood you correctly , you need a linked list. typedef struct myTag { .....data ...... struct myTag *pRight; struct myTag *pLeft; struct myTag *pTop; struct myTag *pBottom; }MyStrcut; You can join them up as you like(by setting the pointers of the last element to...
  2. aakhrinaam

    Detect USB Flash Card Insertion - Any Windows Language

    Sorry Daniel , I don't know wmuch about Drivers, but I have a suggestion. If you have the USB open as a COM port (OpenFile API), you should be able to poll it very frequently to see if there is data in there. I don't know how it fits in your application architecture.
  3. aakhrinaam

    Detect USB Flash Card Insertion - Any Windows Language

    I am not sure about your application , but the answer may lie in the driver for the card reader or alternatively can you poll the card reader at regular intervals ?
  4. aakhrinaam

    Array troubles : (

    SuperSharp, Here is some sample code , I don't know whether it will meet with your teacher's approval or not. Hammer is right about the use of proper library functions but while you are learning it is not bad to experiment a little. You will learn more about buffers , overflow etc only when you...
  5. aakhrinaam

    Array troubles : (

    When you read in the array , you can terminate the last character by an NULL ('\0'); Sample code can be for (x=0;x<MAX_ARR_SIZE;x++) { /* check if it is anumber or a character */ if (list[x]<48 || list[x]>90) list[x]='\0'; } you can check for numbers or alphabets separately too. That...
  6. aakhrinaam

    parameters on dll

    Effectively you are passing a local variable to a function by value , not by reference . If you want your original string overwritten pass a pointer to it ( by reference) or other wise make that function return a string ( I would go with the former option).
  7. aakhrinaam

    C# metric transformation

    I am not sure what exactly is going on . Have you tried e.Graphics.VisibleClipBounds ? May be you can use that and resize the font ? for eg : of course height etc. would be your parameters. Font AxisFont= new Font("Ariel",(Paper.Height/(sim.numDPlot+1))*0.4f );
  8. aakhrinaam

    C# metric transformation

    arminro , I don't know whether this will work but try using from my earlier code // where e is PrintPageEventArgs e RectangleF vbp = e.Graphics.VisibleClipBounds ; ............. bottom = {new PointF(vbp.Size.Width,vbp.Size.Height)}; Let me know hoow you get on , I am curious too.
  9. aakhrinaam

    C# metric transformation

    Sorry Arminro my fault , don't know what I was thinking. It is g.TransformPoints you need to use. g.PageUnit=GraphicsUnit.Inch; g.PageScale=1; PointF[] bottom; bottom=new PointF[]{new PointF(this.ClientSize.Width,this.ClientSize.Height)}...
  10. aakhrinaam

    C# metric transformation

    Some info from Chris Sells book. //from inches to pixels: Graphics g=this.CreateGraphics(); pixels=inches*g.Dpix; // to do the other way g.PageUnit=GraphicsUnit.Inch; g.PageScale=1; // 1 unit = i inch; Hope this is useful

Part and Inventory Search

Back
Top