API Support Forum
User Profile

Viewing User Profile for: GMarshall763


About

Jan 16, 2013 03:18 PM

Jan 16, 2013 06:49 PM

Jan 16, 2013 06:49 PM



Post Statistics
GMarshall763 has contributed to 1 posts out of 5677 total posts (0.02%) in 4328 days (0.00 posts per day).

20 most recent posts:

Order Execution » DDE - can I use OpenECryAddin.dll (Excel DDE addin) in VB6 app? Jan 16, 2013 @ 06:49 PM (Total replies: 2)

I have some DDe issues with a vb6 app. Went I send an order via DDE it results in 2, 3 sometimes even 7 duplicate orders.

Can I link to OpenECryaddin.dll and call the Send function in VB6 and hopefully get better results?

Dim OEC As OpenECryAddin.Functions
Set OEC = New OpenECryAddin.Functions
Dim c As Control
txtDDE.Text = OEC.Send("GMarshall256", Side, Quantity, Symbol, OrderType, Price, Price2, "None", cmbAccount.Text, "", True, c)

This code thorws an Object Required error. Not sure which object. Is it the range typed last param? Or am I calling the function wrong.

My old code that I am trying to replace that doesn't work ver well is:

txtSendDDE.LinkItem = "Buy_1_NQH3_StopLimit_2775_2775_None_BY_" & cmbaccount.Text

txtSendDDE.Text = ""
txtSendDDE.LinkMode = 0
txtSendDDE.LinkTopic = "<account>|send"
txtSendDDE.LinkItem = Order$
txtSendDDE.LinkMode = 1

Any suggestions? Next idea is to re-write app in OCE api com, but that might pose some more challenges...

Garrett Marshall