Skip to content

Instantly share code, notes, and snippets.

#pragma comment(lib, "user32")
#pragma comment(lib, "psapi")
 
#include <stdio.h>
#include <windows.h>
#include <psapi.h>
 
void main()
{
    HWND hWnd;
#include <atlbase.h>
#include <sapi.h>
 
void main()
{
    CComPtr<ISpVoice> cpVoice;
 
    ::CoInitialize(nullptr);
 
    cpVoice.CoCreateInstance(CLSID_SpVoice);
/*
 Monty Hall Simulator by 3735943886
 Using Microsft Cryptography APIs for random generations
 License : GPL
*/
#include <iostream>
#include <windows.h>
#include <wincrypt.h>
#include <iostream>
#include <string>
#include <regex>
#include <map>
 
 
/*
 * English 2 Korean
 * from http://www.phpschool.com/link/tipntech/55742
 *
#pragma comment(lib, "winmm")
#pragma comment(lib, "ole32")
#include <sapi.h>
void main()
{
    HRESULT hr;
    ISpVoice* pVoice;