Announcement

Collapse
No announcement yet.

VB samples don't work for me

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • VB samples don't work for me

    Neither of the VB samples (TsSample Project.zip, vb sample.zip) work using my account. I don't know if this is an issue with my account or my program/dev environment.

    When I open either of the samples I only insert my name in the SetApplication function call, full compile (no errors) and run. In both cases the forms do show but no data is retrieved. The vb sample doesn't change the symbol in the eSignal client either.

    I tried both "medgar" and (medgar) in the SetApplication function call. No difference.

    I did try to modify the sample to wait for 1 second as a previous thread indicated and that didn't work either. These are the articles:






    I have verfied that I do get data (e.g. Msft, ES M4) from the eSignal Data Manager (via F2 and testing a symbol) and I get data into the eSignal UI. So, my account would appear to be OK.

    Thanks for any help as soon as possible. I need to get this hooked up FAST.

    - Mike

  • #2
    I have been able receive proper entitlements with your username and password through a sample application and have e-mailed the sample code to use.

    Comment


    • #3
      still doesn't work

      I sent an e-mail to the ActiveX support alias 5 days ago and didn't get a response. Not happy.

      I'm including the contents of the e-mail here (the e-mail also has screen shots of the error and the data mgr status):

      The code you sent below doesn’t work. I’m using the sample VB app now (the form file name is Tsform). There shouldn’t be a “;” after the Thread.Sleep(1000) statement below from what I can tell of VB. After I remove the “;” from that statement I get a runtime error “424”. I don’t know what this error is about as I haven’t install MSDN/Help (yet). I wonder why you don’t see that error? Do I need an extra reference added to handle the Thread.Sleep call?

      I have reset my user name and password in Data Manager and it appears to be working fine, as it did before. Reception = OK, Password = OK, "system running normally", and I'm able to get quotes from the System Monitor UI (F2 from the Data Mgr).

      Attaching a zip of the form file I have.

      - Mike
      Attached Files

      Comment


      • #4
        medgar,

        I have personally verified that your account is properly entitled and was able to run a sample application that is in the File Share under your account without any problems. There must be something else different in your development environment that is preventing you from being entitled. Does IsEntitled() ever turn TRUE?

        I am currently out of the office on business and do not have access to a development environment while traveling. I can look over your code late this week and see if I can determine the problem.

        Robi

        Comment


        • #5
          Nope, IsEntitled never comes back true.

          When you say "File Share under your account" I'm not sure where that is ... I know of the general file share, but not one specific to my account. How do I get to that?

          - Mike

          Comment


          • #6
            Specifically, this is the only file share I know of and it doesn't have a sample specific to me ... just the standard samples.



            - Mike

            Comment


            • #7
              I haven't gotten a solution to this issue ... I still get "not entitled". I really need someone to help me ... it may be my environment but I don't know why it would be as I just have a standard installation of VB6 for the sample. I also have VS .NET installed and the C# program I have has no errors but never gets "entitled".

              I'll send you my VB app, I'll send you my C# app, whatever it takes, but I think I need some help fixing my environment.

              Yes, my account looks good to go, but my program can't get access.

              PLEASE HELP

              - Mike

              Comment


              • #8
                I have attempted to contact you via telephone twice today. I will try again tomorrow.

                Comment


                • #9
                  medgar,

                  I looked at your code and believe you are not including IESignal to your IDE. Please refer to page 2-3 in the Developer's Reference so that you are properly accessing the COM object.

                  I hope this solves your problem.

                  Comment


                  • #10
                    Yes, I have the IESignal box checked in the references, otherwise the VB sample wouldn't compile at all. I still get the "Run-time error '424': Object required" error posted in a message box when I compile/run with the 1 second loop. And when I don't have the loop in the program, the form1 comes up, I enter Msft as the symbol and click Start, and nothing happens.

                    My C# program never gets entitled while looping and waiting for IsEntitled to become true.

                    Can I call someone over there to work out the environment issue I have?

                    - Mike

                    Comment


                    • #11
                      Originally posted by medgar
                      My C# program never gets entitled while looping and waiting for IsEntitled to become true.
                      What happens if you check IsEntitled via a timer? I don't know how it is handled internally in the control, just wondering if maybe in certain circumstances some sort of message pumping needs to occur in the API and it is being held up by the looping and sleeping. Just a shot in the dark.

                      Comment


                      • #12
                        Sorry not to spot this sooner,
                        I've not been by here in a while - Error 424 is caused by referencing something that isn't in the code, as I recall - for example your code includes commands to do something with a form, or a control on a form, but you don't have that form in your code. Not exactly a fantastic description, I tend to view 424 as 'oh, err, dang? poot? I forgot something....' - I'm not sure, but it might appear if your code refers to a DLL or OCX that is installed on the code author's PC but not on the PC of the person who takes a copy and tries to compile it in VB. ie Robi sends you code that runs because poot.ocx is a registered object on Robi's PC, but Medgar doesn't have poot.ocx on it so produces this error whilst it compiles fine for Robi.

                        I spent a good while with a similar sounding problem - isentitled never produced a 'true' (look back to my posts about Easter or so ref 7.5/7.6) and it turned out that my API entitlement hadn't been enabled as I'd misunderstood how often I'd to ask for what ... worth checking!

                        Dave

                        Comment


                        • #13
                          I talked with medgar directly and he was able to get his application working on a laptop computer, but not his desktop. We both determined that it there was something wrong with his IDE. He reinstalled Visual Studio and everything was fine.

                          Comment


                          • #14
                            Oh good,
                            VB (and any other environment I've dealt with since the year dot) isn't always that good at telling you what you need to fix things, I'm glad you got it sorted,
                            Dave

                            Comment

                            Working...
                            X