Results 1 to 2 of 2

Thread: converting this to C#

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2016
    Posts
    2

    converting this to C#

    I am new to the COM interface. So i am learning i got success bit in C# side but now i am in confusion

    i have to convert this following demo code which is in vb.net to C#

    if anyone can explain and help me i will be much much happy i am not good in vb.net please help me

    ..////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


    ...




    In the following example a test module is started:

    Dim TMStarted, MeasStarted, App, TestModule

    TMStarted = False
    MeasStarted = False

    Set App = CreateObject("CANoe.Application")
    Set TestModule = App.Configuration.TestSetup.TestEnvironments.Item(1).Items(1)
    Set Meas = App.Measurement

    ' set up connection to event handlers
    WScript.ConnectObject TestModule, "TestModule_"
    WScript.ConnectObject Meas, "Meas_"

    Meas.Start()
    While (Not MeasStarted)
    WScript.Sleep(200)
    Wend

    TestModule.Start()
    While (Not TMStarted)
    WScript.Sleep(200)
    Wend

    ' Now we can be sure that the test module is started

    Sub TestModule_OnStart()
    TMStarted = True
    End Sub

    Sub Meas_OnStart()
    MeasStarted = True
    End Sub

  2. #2

    Thread Starter
    New Member
    Join Date
    May 2016
    Posts
    2

    Re: converting this to C#

    ????

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width