Skip to content

Instantly share code, notes, and snippets.

View vlhs-beep's full-sized avatar

VHS vlhs-beep

  • Chile.
View GitHub Profile
@vlhs-beep
vlhs-beep / screen_grab.cpp
Created October 15, 2022 04:48 — forked from philip-goh/screen_grab.cpp
Take a screenshot and write it out as a JPEG in C++ on Windows
#include <iostream>
#include <windows.h>
#include <gdiplus.h>
#include <memory>
using namespace Gdiplus;
using namespace std;
int GetEncoderClsid(const WCHAR* format, CLSID* pClsid)
{
@vlhs-beep
vlhs-beep / main.cpp
Last active January 19, 2022 02:34 — forked from fschutt/main.cpp
//Example of how to create a minimal MFC application
//1. Create a new Win32 project, select empty project
//2. Go to project options > Use MFC in a shared library (.dll)
//3. Make a new resource file with an empty dialog
//4. Give the dialog the name "INTERFACE1"
//5. Build and run.
//---------------------------------------
#include <afxwin.h>
#include "resource.h"
//---------------------------------------
/* descarga_Sismograma */
void descarga_Sismograma(void){
CkHttpW http;
bool success;
const wchar_t *localFilePath = 0;
localFilePath = L"data/images/png/heli.png";
success = http.Download(L"http://200.123.254.42:16090/heli.png", localFilePath);
if (success != true){
wprintf(L"Error, No se pudo descargar la imagen.\r\n");
return;