Created
August 24, 2012 21:41
-
-
Save nullcoding/3455957 to your computer and use it in GitHub Desktop.
Tweet a Woodall result in MuPuPriNT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case IDC_TWEETER: | |
if(wmEventW == BN_CLICKED) | |
{ | |
WCHAR* TweetWood = new WCHAR[256]; | |
WCHAR* TweetMyURL = new WCHAR[50]; | |
WCHAR TweetBegin[256]; | |
WCHAR TweetFormula[256]; | |
WCHAR TweetN[16]; | |
GetDlgItemText(wWnd, IDC_ENTER_N, TweetN, 16); | |
swprintf(TweetFormula, 256, L"%ls+x+2%%5E+%ls+-1", TweetN, TweetN); | |
swprintf(TweetBegin, 256, L"https://twitter.com/intent/tweet?original_referer=MuPuPriNT&text="); | |
swprintf(TweetMyURL, 50, L"http://code.google.com/p/gjsieve"); | |
swprintf(TweetWood, 256, L"%lsI+just+tested+the+Woodall+number+%ls+with+NullCoding's+MuPuPriNT!+via+%23MuPuPriNT+%ls", TweetBegin, TweetFormula, TweetMyURL); | |
ShellExecute(wWnd,L"open",TweetWood,NULL,NULL,SW_SHOW); | |
} | |
} | |
return FALSE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment