Skip to content

Instantly share code, notes, and snippets.

@nullcoding
Created August 24, 2012 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nullcoding/3455957 to your computer and use it in GitHub Desktop.
Save nullcoding/3455957 to your computer and use it in GitHub Desktop.
Tweet a Woodall result in MuPuPriNT
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