Call a function with a buttonclick in Windows Form

Hello everyone, I am creating a GUI with windows form in VisualStudio 2010. I wish my button (Button1) calls a function like this. I try to embed the code below within the file Form.h but I can not run it.

1
2
3
4
5
6
7
8
9
10
11
12
//FUNCTION
BOOL SetConnectionProxy(char * proxyAdressStr , char * connNameStr = NULL)
{
	....
}

//MAIN
int _tmain(int argc, _TCHAR* argv[])
{
	SetConnectionProxy("71.233.34.93:9090");
	return 0;
}


Thanks for your help.
Last edited on
Topic archived. No new replies allowed.