Announcement

Collapse
No announcement yet.

VB.NET - historical data

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

  • VB.NET - historical data

    I downloaded the VB example (Desktop VB Sample - Thanks, TGafford!) and opened it in VB.net, which needed to upgrade the project. This I did, with some success.

    There were only two manual fixes needed to allow it to build - replace type 'Any' with 'Variant' in two places. There are upgrade warnings in several places, though, and that makes me nervous.

    Also, the account name could not be read from winros.ini until I made the following changes in DesktopSampleVB.vb:

    Private Declare Function GetPrivateProfileString Lib "Kernel32.dll" Alias "GetPrivateProfileStringA" ( _
    ByVal lpAppName As String, _
    ByVal lpKeyName As String, _
    ByVal lpDefault As String, _
    ByVal lpReturnedString As String, _
    ByVal nSize As Integer, _
    ByVal lpFileName As String _
    ) As Integer

    also, I needed to change these:
    Public g_username As String
    Public g_password As String
    Public g_internetAddress As String

    Now it shows me as 'entitled', but historical data does not seem to be working. The realtime data does seem to be coming through fine.

    All seems to work with the example until I try to see historical data. The window just stays blank! The C# example seems a bit more stable - having worked without upgrade or modification, so I'm about ready to give up on VB.net. Any suggestions?
    Last edited by atmanning; 03-14-2006, 10:40 AM.
    PHP, MYSQL, VB, JavaScript solutions freelance programmer
Working...
X