Skip to content

Instantly share code, notes, and snippets.

@mipdevbe
mipdevbe / Form1.cs
Created October 15, 2021 18:01
.NET Remoting example in C#
/* NET Remoting Client */
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
@mipdevbe
mipdevbe / index.html
Created March 8, 2020 22:28
Challenge #2 - The Dark Art of Centering Elements with CSS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My Site</title>
<link rel="stylesheet" type="text/css" href="css/styles.css">
</head>
<body>
<div class="red">
@mipdevbe
mipdevbe / index.html
Last active March 8, 2020 22:26
Challenge #3 - The Dark Art of Centering Elements with CSS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My Site</title>
<link rel="stylesheet" type="text/css" href="css/styles.css">
<link rel="icon" href="favicon.ico">
</head>
<body>
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<lastBuildDate>Sat, 20 Apr 2019 09:01:39 GMT</lastBuildDate>
<item>
<category>General</category>
<title>Cooperation between Brüel and Kjaer and m+p international</title>
<link>https://www.mpihome.com/en/news-events/news/cooperation-between-brüel-kjaer-and-mp-international.html</link>
<description>Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero's De Finibus Bonorum et Malorum for use in a type specimen book.</description>
<enclosure url="https://www.mpihome.com/files/mpimg/news/Br%C3%BCel-Kjaer-mp.jpg" type="image/jpeg" length="0"/>
// ConsoleApplication2.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <cstdio>
#include <cstdlib>
#include <string>
#include <sstream>
void StringInvalidParameterHandler(
@mipdevbe
mipdevbe / MFCActiveXControl1Ctrl.cpp
Created October 5, 2018 11:55
Issue with ActiveX persistency in Office 365
// MFCActiveXControl1Ctrl.cpp : Implementation of the CMFCActiveXControl1Ctrl ActiveX Control class.
#include "stdafx.h"
#include "MFCActiveXControl1.h"
#include "MFCActiveXControl1Ctrl.h"
#include "MFCActiveXControl1PropPage.h"
#include "afxdialogex.h"
#ifdef _DEBUG
#define new DEBUG_NEW