Type: Posts; User: RogerD
Search took 0.01 seconds.
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...
April 19th, 2013, 06:13 AM
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...
April 14th, 2013, 06:54 PM
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...
March 16th, 2013, 08:50 AM
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,...
March 13th, 2013, 05:53 AM
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...
March 12th, 2013, 04:51 PM
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...
March 7th, 2013, 03:20 AM
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. ...
March 4th, 2013, 03:19 PM
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...
February 26th, 2013, 05:47 PM
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...
February 26th, 2013, 01:05 PM
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...
December 13th, 2012, 08:19 PM
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...
November 12th, 2012, 04:27 AM
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...
November 10th, 2012, 07:02 PM
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...
November 9th, 2012, 01:55 PM
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:
November 8th, 2012, 01:28 PM
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...
October 31st, 2012, 04:24 AM
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...
October 30th, 2012, 07:36 PM
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...
October 19th, 2012, 01:05 PM
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...
October 18th, 2012, 06:19 AM
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...
October 10th, 2012, 12:32 PM
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" :-
October 8th, 2012, 01:20 PM
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...
October 5th, 2012, 10:08 AM
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...
September 13th, 2011, 08:10 AM
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...
September 12th, 2011, 03:02 PM
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...
September 12th, 2011, 02:50 PM
System::Void Form1::serialPort1_DataReceived(System::Object^ sender, System::IO::Ports::SerialDataReceivedEventArgs^ e)
Thanks for any help.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.