16 Unstar Star 33 Fork 5

chenfeng8742 / goback

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

goback

基于WM_COPYDATA,实现go语言和c++之间的双向通讯,可以很方便在windows平台下用golang开发后台服务,c++负责UI界面

目前支持平台:windows

使用方式:

// MainWnd为UI主窗口名称 
obj := goback.Regist("MainWnd")
go func() {
	for {
		_, ok := <-obj.BufCh
		if !ok {
			break
		}
	}
        close(obj.BufCh)
}()
goback.Wait()
// end

存在的问题:WM_COPYDATA通讯是同步阻塞的,只能通过SendMessage方式发送数据,所以该项目只能满足业务量不大的情况下的需求

Comments ( 2 )

Sign in for post a comment

About

基于WM_COPYDATA,实现go语言和c++之间的双向通讯,可以很方便在windows平台下用golang开发后台服务,c++负责UI界面 spread retract
Go
MIT
Cancel

Releases

No release

Gitee Metrics

Contributors

All

Activities

load more
can not load any more
Go
1
https://git.oschina.net/chenfeng8742/goback.git
git@git.oschina.net:chenfeng8742/goback.git
chenfeng8742
goback
goback
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542