I'm trying to build a simple test app in VB6 using NTDirect.dll, and I'm having trouble with the Orders, and OrderStatus functions. The other functions work ok.
Here are the snippets:
Private Declare Function Orders Lib "NTDirect.dll" (ByVal acct As String) As String
then I run the following from button_click()
Text1.Text = Orders("sim101")
The text1.text becomes empty. The app is connected, and, I can read the MarketPosition, MarketData just fine. I suspect it's something about the differences in how VB and C treat strings. Can anyone help please? Thanks in advance.
J
Comment