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

Search:

Type: Posts; User: NewVisual

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Re: Thread with Delegate works want eventhandling

    Saw [RESOLVED] topics in the list before and shortly asked my self does a moderator do this (on it's own or after a messages to him) or can a user do this. A very very quick look in the past didn't...
  2. Re: Thread with Delegate works want eventhandling

    http://www.codeguru.com/forum/showthread.php?t=517153
    same stupid error (C2664) defining two (exact) the same items in different files are NOT the same. unbelievable i saw that one after posting and...
  3. Re: Thread with Delegate works want eventhandling

    You helped me out on a similar one before and while re-reading the error and this post i saw that i made 2 (different ) PowerEventDEL's. Solution of course would be reduce it to one unique one....
  4. Re: Thread with Delegate works want eventhandling

    Continued the last week adding an event to a thread in a seperate form file.
    I think i am almost there but last two days i got stuck.

    Error is the last one i can't get rid off


    Error 13 error...
  5. Re: Thread with Delegate works want eventhandling

    Eri thanks so far,
    an eventhandler on the main form catching multiple events from the child form+thread would be perfect.
    The child form+thread could then fire events for the values already...
  6. [RESOLVED] Thread with Delegate works want eventhandling

    I have a program that collects data over a TCP/IP channel.
    I have multiple (sub)forms that create their own tread in the constructor when created (gcnew)
    Example


    FYD = gcnew...
  7. Replies
    3
    Views
    1,722

    Re: Filling a data struct array.

    Eri523 thanks again.
    This is exactly i was looking for.
    In fact the only difference to my very first version was the tracking handle (2)

    Posted wrong version as my original didn't have one, i...
  8. Can i use reportbuilder items on my normal Form.

    I want to have some Gauges (eq http://msdn.microsoft.com/en-us/library/dd207041.aspx#GaugeTypes)
    on my Form so i looked and seached if there where Gauges included in the Visual builder.
    It looks...
  9. Replies
    3
    Views
    1,722

    [RESOLVED] Filling a data struct array.

    I have a little array with 4 different items in it.
    I started with the next arrays.


    array <String^>^ Name = { "Voltage","Power","Frequency","Alternating Current"};
    array <UInt16>^ Base =...
  10. Re: event on radio button group creation

    So ended up adding the line:


    radioButton_YieldClick(this, EventArgs::Empty);

    in the form constructor (behind the InitializeComponent(); and other lines i put there)
    Normal this routine is...
  11. [RESOLVED] event on radio button group creation

    A question on the best way to do the following:
    3 radiobuttons and 2 DateTimePicker.

    Radiobuttons are: Week, Month and Year
    DateTimePickers are: Start and End.

    The DateTimePicker Start is set...
  12. Replies
    4
    Views
    5,521

    Re: Priority: Backgroundworker vs Timer

    Eri523,

    Right, the device is a complete standalone unit which has a networkcard as option, which you can use to readout some live parameters and saved parameters / logs.

    Correct. Live actual...
  13. Replies
    4
    Views
    5,521

    Re: Priority: Backgroundworker vs Timer

    Sorry Eri523 for not being clear (again)
    I will try to clear some thing up:

    I have no influence on the TCP/IP device. It’s timing and used protocols are not made by me.
    Each request of protocol...
  14. Replies
    4
    Views
    5,521

    Priority: Backgroundworker vs Timer

    Just a brainstorm question about a nice little problem i have but i'm looking for the nicest solution.
    Short: Time based vs user based protocol handling.

    I made i program that connects to a...
  15. Replies
    4
    Views
    24,743

    Re: app.config Application Settings

    I have studied the link of Eri523 and some Microsoft topics on this item.
    The conclusion is that as soon as you begin with saving variables you will soon have to go to the direction as seen in the...
  16. Replies
    4
    Views
    24,743

    Re: app.config Application Settings

    Goal (for the moment): Save application form settings to a file and reload at application start.
    Did a search: adding app.config (from the project add item) should do the trick


    My test - What...
  17. Replies
    4
    Views
    24,743

    app.config Application Settings

    In my program i want to save some states of CheckBox->Checked and some TextBox->Text states (to start with)

    In the past (Borland Pascal/C) i did this in an .ini file with textlabels (eg...
  18. Re: Combination C++ and C++/CLR Static must have / may not have

    It's working!

    First the answers to the question above.
    The error was an MDA error, exact text:


    Reentrancy was detected
    Message: Attempting to call into managed code without transitioning...
  19. Re: Combination C++ and C++/CLR Static must have / may not have

    Thanks Eri523 for the help so far.
    Updated everything with your help, no compile errors but not (yet) working.
    This is the result so far.



    <file: COM_TCPIP.H>
    ref class NetworkParametersN{
    ...
  20. Re: Combination C++ and C++/CLR Static must have / may not have

    Was ready to enter the code which should do the job, but got stuck almost direct.



    TestDelegate^ tdel = gcnew TestDelegate(&Form1::Test); // This line gives the error

    public : delegate int...
  21. Re: Combination C++ and C++/CLR Static must have / may not have

    missing type for UserA was indeed a typo.
    Anyway spend al little on searching this "error" and it seems the solution of this callback functions problem can be done with delegate. Made a few...
  22. Combination C++ and C++/CLR Static must have / may not have

    I have a piece of C++ code that has to be used on multiple platforms (a class).
    It's a protocol and it sends and receives.
    Send and receive routine have to be defined external (in a form)
    ...
  23. Replies
    6
    Views
    1,579

    Re: String^ To and From other forms.

    Well everything works when i started fresh again today (should have gone to bed earlier)

    @Eri523:
    Tip about the header file worked of course, i did that directly after my post realising that is...
  24. Replies
    6
    Views
    1,579

    Re: String^ To and From other forms.

    @Eri523
    i posted a reply based on the comments of Alex F but i got a message that a moderator had to approve it before it gets placed?. (maybe the same for this one)

    It showed that both CopyInfo...
  25. Replies
    6
    Views
    1,579

    Re: String^ To and From other forms.

    Found the right way to display code on the forum so it clears up.

    Reason for CLR/C++ is there is a lot of unmanaged C and C++ code which must stay this way beacuse it is used in microcontrollers...
Results 1 to 25 of 26
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured