Compartilhar via


Fabulous Adventures In Coding

Eric Lippert's Erstwhile Blog

The Rarefied Heights of Mathematical Purity

A number of people have asked me for the software I used yesterday to extract the Google queries...

Author: Eric Lippert Date: 05/12/2004

Some LΘ℃αℓization Questions

A reader asked me a few questions about localization the other day. That's not a subject that I have...

Author: Eric Lippert Date: 05/10/2004

Aaargh, Part Six: One More Thing About Comments

Gripe #7: Use The Right Struct For The Job I meant to include this one in yesterday's gripe about...

Author: Eric Lippert Date: 05/05/2004

Aargh, Part Five: Comment Rot

Gripe #6: Comment Rot If you've been reading my SimpleScript code you might have noticed that there...

Author: Eric Lippert Date: 05/04/2004

SimpleScript Part Seven: Binder Skeleton

In Part Five I was discussing modules: there is a "global module" and any number of additional...

Author: Eric Lippert Date: 05/04/2004

invoke.h

#ifndef INVOKE_H // {#define INVOKE_Hextern HRESULT InvokeDispatch(IDispatch * pdisp, DISPID dispid,...

Author: Eric Lippert Date: 05/04/2004

invoke.cpp

#include "headers.h"HRESULT InvokeDispatch(IDispatch * pdisp, DISPID dispid, REFIID riid, LCID lcid,...

Author: Eric Lippert Date: 05/04/2004

binder.h

#ifndef BINDER_H // {#define BINDER_Hclass Binder : public IDispatch{protected: class Name { public:...

Author: Eric Lippert Date: 05/04/2004

When Are You Required To Set Objects To Nothing?

A quick follow up on my earlier entry on the semantics of Nothing in VBScript. I see code like this...

Author: Eric Lippert Date: 04/28/2004

SimpleScript Part Five: Named Items and Modules

Named Items "Named items" are what we call the "top level" objects of the host provided object...

Author: Eric Lippert Date: 04/22/2004

You Are Thrilled To Read Today's Blog Entry

No tech today. Too busy. But this was too precious to pass up: The Greenlake neighbourhood in the...

Author: Eric Lippert Date: 04/20/2004

nameditemlist.h

#ifndef NAMEDITEMLIST_H // {#define NAMEDITEMLIST_Hclass NamedItemList{private: class NamedItem {...

Author: Eric Lippert Date: 04/19/2004

nameditemlist.cpp

#include "headers.h"NamedItemList::NamedItemList(){ this->m_cBuckets = 0; this->m_Buckets =...

Author: Eric Lippert Date: 04/19/2004

mutex.h

#ifndef MUTEX_H // {#define MUTEX_Hclass Mutex{ private: CRITICAL_SECTION m_criticalsection; BOOL...

Author: Eric Lippert Date: 04/19/2004

mutex.cpp

#include "headers.h"Mutex::Mutex(){ m_fInitialized = FALSE;}HRESULT Mutex::Create(Mutex * *...

Author: Eric Lippert Date: 04/19/2004

hash.h

#ifndef HASH_H // {#define HASH_Hextern ULONG ComputeHash(const WCHAR * psz);#endif // HASH_H }

Author: Eric Lippert Date: 04/19/2004

hash.cpp

#include "headers.h"ULONG ComputeHash(const WCHAR * psz){ AssertReadString(psz); ULONG hash = 0;...

Author: Eric Lippert Date: 04/19/2004

Runtime Typing in VBScript

A few short takes today: SimpleScript I wrote the name table logic over the weekend but it is not...

Author: Eric Lippert Date: 04/19/2004

Quotable Quotations, Part Two

I'm tremendously excited to learn that Joel Silver is producing a sequel to "Dungeons and Dragons"....

Author: Eric Lippert Date: 04/13/2004

SimpleScript Part Four: Finite State Machines and Script Engines

Last time I said that I'd discuss finite state machines (also sometimes called finite state...

Author: Eric Lippert Date: 04/10/2004

A Face Made For Email

A few weeks ago, Charles Torre and The Scobelizer showed up in my office with a hand-held camera,...

Author: Eric Lippert Date: 04/06/2004

SimpleScript Part Three: Engine Skeleton

Before I get into today's topic I want to quickly address a minor defect that Raymond Chen (who...

Author: Eric Lippert Date: 04/05/2004

engine.h

#ifndef ENGINE_H // {#define ENGINE_Hconst DWORD threadNone = 0xFFFFFFFF;// The error has been...

Author: Eric Lippert Date: 04/05/2004

engine.cpp

#include "headers.h"ScriptEngine::ScriptEngine(){ DLLAddRef(); this->m_cref = 1;...

Author: Eric Lippert Date: 04/05/2004

SimpleScript Part Two: Class Factories Are Also Boring

Before I get into it, a Lambda poster pointed me at the NullScript project, which is a very...

Author: Eric Lippert Date: 04/01/2004

Gretchen and Zoe are cool

Mike pointed me at Gretchen and Zoe's blog about how we recruit people at Microsoft. I'm really...

Author: Eric Lippert Date: 04/01/2004

dllmain.h

#ifndef DLLMAIN_H // {#define DLLMAIN_Hextern void DLLAddRef(void);extern void...

Author: Eric Lippert Date: 04/01/2004

classfac.h

#ifndef CLASSFAC_H#define CLASSFAC_Hclass ClassFactory : public IClassFactory{private: long m_cref;...

Author: Eric Lippert Date: 04/01/2004

classfac.cpp

#include "headers.h"// ClassFactoryClassFactory::ClassFactory(){ m_cref =...

Author: Eric Lippert Date: 04/01/2004

dllmain.cpp

#include "headers.h"//// Helper methods//static long g_cReferences = 0;static long g_cLocks =...

Author: Eric Lippert Date: 03/31/2004

assert.cpp

#include "headers.h"static BOOL IsGoodPtr(void * pv, ULONG cb, DWORD dwFlags){ DWORD dwSize;...

Author: Eric Lippert Date: 03/31/2004

guids.cpp

#include <initguid.h>#include <activscp.h>#include "guids.h"

Author: Eric Lippert Date: 03/31/2004

assert.h

#ifndef ASSERT_H // {#define ASSERT_Hextern BOOL Debugger();extern BOOL AssertProc(const char...

Author: Eric Lippert Date: 03/31/2004

guids.h

#ifndef GUIDS_H // {#define GUIDS_HDEFINE_GUID(CLSID_SimpleScript, 0x5ff86f82, 0x18fb, 0x4aff, 0x98,...

Author: Eric Lippert Date: 03/31/2004

headers.h

#ifndef HEADERS_H // {#define HEADERS_H// InitializeCriticalSectionAndSpinCount requires WinNT 4.0...

Author: Eric Lippert Date: 03/31/2004

SimpleScript.def

LIBRARY SIMPLESCRIPTEXPORTS DllGetClassObject PRIVATE DllRegisterServer PRIVATE DllUnregisterServer...

Author: Eric Lippert Date: 03/31/2004

Aargh, Part Four: There is no part four

I've got all these little rants queued up for days when I'm too busy to post. And Raymond has all...

Author: Eric Lippert Date: 03/29/2004

Strolling Around VSLive

Yesterday I was taking a break from manning the Visual Studio booth down here at VSLive, and kind of...

Author: Eric Lippert Date: 03/26/2004

Aaargh! Part Three

I'm still at VSLive. Both my talks are done, so its just booth duty from here on in. The talks...

Author: Eric Lippert Date: 03/25/2004

I'm A Travelin' Man

I'm off to VSLive! in San Francisco, where I'll be giving a talk on Wednesday introducing VSTO2 and...

Author: Eric Lippert Date: 03/23/2004

<Previous Next>