Skip to content

Based on WM_COPYDATA, realize two-way communication between go language and c++, it is very convenient to use go to develop background service under windows platform, c++ is responsible for UI interface

License

Notifications You must be signed in to change notification settings

jacky2478/goback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goback

Based on WM_COPYDATA, realize two-way communication between go language and c++, it is very convenient to use ralang to develop background service under windows platform, c++ is responsible for UI interface

platform: windows

example

// MainWnd is the name of the UI main window
obj := goback.Regist("MainWnd")
go func() {
	for {
		_, ok := <-obj.BufCh
		if !ok {
			break
		}
	}
        close(obj.BufCh)
}()
goback.Wait()
// end

notes

WM_COPYDATA communication is synchronously blocked, and can only send data through SendMessage, so the project can only meet the demand in the case of small business volume.

About

Based on WM_COPYDATA, realize two-way communication between go language and c++, it is very convenient to use go to develop background service under windows platform, c++ is responsible for UI interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published