Skip to content

weibemoura/go-dde

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-dde

Reading data from the DDE server using GoLang

go get github.com/weibemoura/go-dde

Load methods "user32"

dde.Init()

Method callback for receive data

func ReceiveDataDde(item []byte, value []byte)  {
	fmt.Println(string(item), string(value))
}

Example

dde.Init()

client := dde.DdeClient{Callback: ReceiveDataDde}
defer client.Disconnect()

if client.Connect("profitchart", "cot") {
    //lastPrice := client.Request("WINFUT.ULT", 5000)
    //fmt.Printf("Last Price: %s\n", string(lastPrice))

    client.Advise("WINFUT.ULT", false)
    client.WinMSGLoop()
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages