Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: RogerD

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    570

    Re: USB guidelines for c++/cli

    What's the hardware interface, USB or a rs232 type serial? Either way configure your USB port as a COM port and use the serial I/O classes - System::IO::Ports::SerialPort in c++/cli. If you only...
  2. Replies
    18
    Views
    2,838

    Re: Capture a window

    I'm a electronics engineer (retd) and have done a bit of assembler both on microcontroller and previously on DOS /Borland C++ for apps supporting my electronics designs and then on Borland Builder...
  3. Replies
    18
    Views
    2,838

    Re: Capture a window

    Thanks for the update Eri. That's a neat way and not obvious from what documentation I've read.Ok but I didn't use dynamic allocation to mimic your example but because the help I read for...
  4. Replies
    17
    Views
    2,406

    Re: how to pass value from one form to another?

    Sorry everyone - I forgot that was in there :blush: have deleted attachment. By the time I realised my mistake and prepared a correction I didn't have internet :mad:
    Thanks for the example project,...
  5. Replies
    17
    Views
    2,406

    Re: how to pass value from one form to another?

    I can second that wholeheartedly! From my experience I know for sure that without your help in particular I would have given up on codeguru long ago. For non-pro VC++ users like myself a simple...
  6. Replies
    18
    Views
    2,838

    Re: Capture a window

    You have practically written the whole thing for me! :D Just left the bit that gets the window size and repo's to the centre of it (NO I'm not hinting you should have done that also - leave me...
  7. Replies
    18
    Views
    2,838

    Re: Capture a window

    Thanks for that - the demo is almost perfect as it is - even the right colour!
    I have adapted it slightly and using your example discovered the GraphicsPath class which should be more efficient. ...
  8. Replies
    18
    Views
    2,838

    Re: Capture a window

    So how do I use the Win32 functions? A quick try revealed I need to include windows.h where HWND and HANDLE are defined but that throws errors in the standard library files presumably because /clr...
  9. Replies
    18
    Views
    2,838

    Re: Capture a window

    Thanks Eri523.
    Sorry I should have made it clearer that by existing window what I meant to say was one pre-existing i.e. not owned by my program. NB Paintshop Pro screen capture can select a range...
  10. Replies
    18
    Views
    2,838

    [RESOLVED] Capture a window

    Is there any way of capturing an existing window to a bitmap or at least finding it's size and position on screen. It has to be quick by clicking or hovering the mouse over the window (as in screen...
  11. Re: date & time (non static) in statusbar

    Add a timer component and put your code in the timer tick event. I think I saw an example of just this in VS walkthroughs.
    You don't want to put it in a loop or you won't be able to do anything...
  12. Re: A better way to write / read dozens of textboxes?

    I'm a bit lost now! This is purely about the generic form which is restricted to the standard event signature (i.e. EventArgsType), right? If you want to use the non-standard parameters list you...
  13. Re: A better way to write / read dozens of textboxes?

    I tried this out but VC++ crashed at step 6 :eek: I tried the Auto load setting you mentioned later but that had no effect so I tried Choose items... on a new project/empty form - same result. 2...
  14. Re: A better way to write / read dozens of textboxes?

    Aaargh! :eek: I tried again and it worked... :o I think I must have copied one of the other references like IContainerControl or maybe just a typo but when I replaced the declaration with:

    ...
  15. Re: A better way to write / read dozens of textboxes?

    No, none whatsover. In fact the only full designer support is for forms and the only built-in classes AFAICT are Forms, Component class mentioned before and very basic (non CLR) C++ class. As...
  16. Re: A better way to write / read dozens of textboxes?

    Oh right - the second option. The designer page is just like a normal form designer only without the form. Dragged components appear as an icon like the non-visual components e.g., timer and file...
  17. Re: A better way to write / read dozens of textboxes?

    Finally got a couple of hours to myself to look at this.

    That's what happens relying on local help :blush: my internet access is limited to one dongle and my wife... :rolleyes:

    I have had a...
  18. Re: A better way to write / read dozens of textboxes?

    That's an impressive response from TheGreatCthulhu and ERI523 :thumb::thumb:and sure to be very helpful to many other users. Maybe should have started a new thread!
    Obviously the material here is...
  19. Re: A better way to write / read dozens of textboxes?

    I'm on my first VC project so followed this thread with avid interest.:thumb:

    What I would appreciate is one or more pointers to info on how to achieve what has been hinted at here, namely...
  20. Replies
    14
    Views
    9,097

    Re: Working multiple forms using Visual C++ 2008

    On the subject of gotcha's my use of ParentForm property was taken from MS VC++2010 help "How to: Retrieve Information from the Parent Form of a Dialog Box" :-


    public:
    void GetParentText()...
  21. Replies
    14
    Views
    9,097

    Re: Working multiple forms using Visual C++ 2008

    How did you know I am using backgroundWorker? and you are not wrong about the difficulties however:-

    My tree view has pre-defined root nodes. My method sorts file names into the root nodes...
  22. Replies
    14
    Views
    9,097

    Re: Working multiple forms using Visual C++ 2008

    A related question
    I have a modeless dialog (called FileStack) which has to pass a processed list of files to Form1 for display. To be thread safe can I call Form1 directly from a modeless form (is...
  23. Replies
    4
    Views
    3,454

    Re: Serial port hangs on form close

    Thanks Alex. That seems to have fixed it so now just have to figure out why. At least I now know it's a sync/async issue.

    ...and Eri. I got compile errors on Dispose() also which I tried...
  24. Replies
    4
    Views
    3,454

    [RESOLVED] Serial port hangs on form close

    Trying serial for first time in VC++ the app froze when I clicked on the menu bar close button.
    This only happens when the remote device is constantly streaming.
    It doesn't happen when I use...
  25. Thread: ttttesttttt

    by RogerD
    Replies
    0
    Views
    498

    ttttesttttt

    helooo
    [code]
    System::Void Form1::serialPort1_DataReceived(System::Object^ sender, System::IO::Ports::SerialDataReceivedEventArgs^ e)
    {
    }
    [code/]

    Thanks for any help.
Results 1 to 25 of 27
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center