Blog - Title

  • Fabulous Adventures In Coding

    engine.h

    • 0 Comments
    #ifndef ENGINE_H // { #define ENGINE_H const DWORD threadNone = 0xFFFFFFFF; // The error has been reported to the host via IActiveScriptSite::OnScriptError const HRESULT SCRIPT_E_REPORTED = 0x80020101L; class ScriptEngine : public IActiveScript...
  • Fabulous Adventures In Coding

    engine.cpp

    • 1 Comments
    #include "headers.h" ScriptEngine::ScriptEngine() { DLLAddRef(); this->m_cref = 1; this->m_thread = threadNone; this->m_state = SCRIPTSTATE_UNINITIALIZED; this->m_psite = NULL; this->m_pNamedItemList = NULL; } ScriptEngine::~ScriptEngine...
  • Fabulous Adventures In Coding

    Customer Service Is Not Rocket Science

    • 26 Comments
    (This post has nothing to do with technical matters except insofar as this story happened in geek paradise.) I was down at Fry's Electronics yesterday -- huge electronics warehouse. Geek paradise. Everything from DVD boxed sets to multimeters. Why...
  • Fabulous Adventures In Coding

    SimpleScript Part Two: Class Factories Are Also Boring

    • 7 Comments
    Before I get into it, a Lambda poster pointed me at the NullScript project, which is a very interesting illustration of how reverse engineering works. It's an implementation of a "null" script engine -- an engine with no language -- in ATL, which the...
  • Fabulous Adventures In Coding

    Gretchen and Zoe are cool

    • 1 Comments
    Mike pointed me at Gretchen and Zoe's blog about how we recruit people at Microsoft. I'm really enjoying reading it, both because it is engagingly written and because I'm fascinated by the whole process of hiring people. I only ever see the technical...
  • Fabulous Adventures In Coding

    classfac.h

    • 0 Comments
    #ifndef CLASSFAC_H #define CLASSFAC_H class ClassFactory : public IClassFactory { private: long m_cref; ClassFactory(); ~ClassFactory(); public: static HRESULT Create(ClassFactory * * ppFactory); // IUnknown STDMETHODIMP QueryInterface...
  • Fabulous Adventures In Coding

    dllmain.h

    • 1 Comments
    #ifndef DLLMAIN_H // { #define DLLMAIN_H extern void DLLAddRef(void); extern void DLLRelease(void); extern void DLLAddLock(void); extern void DLLReleaseLock(void); #endif // DLLMAIN_H }
  • Fabulous Adventures In Coding

    classfac.cpp

    • 0 Comments
    #include "headers.h" // ClassFactory ClassFactory::ClassFactory() { m_cref = 1; } ClassFactory::~ClassFactory() { } HRESULT ClassFactory::Create(ClassFactory * * ppFactory) { AssertOutPtr(ppFactory); *ppFactory = new ClassFactory(); if (NULL...
  • Fabulous Adventures In Coding

    SimpleScript Part One: DllMain is Boring

    • 21 Comments
    In talking with our support engineer it's just become more muddled. I'm pretty sure now actually that the customer does not want to build a script engine, but whether they want to build a script editor, a script host or a script debugger is unclear. ...
  • Fabulous Adventures In Coding

    dllmain.cpp

    • 3 Comments
    #include "headers.h" // // Helper methods // static long g_cReferences = 0; static long g_cLocks = 0; static HMODULE g_hmodule = NULL; static const WCHAR * pszEngineName = L"SimpleScript"; static const WCHAR * pszOLEScript = L"OLEScript"; static...
  • Fabulous Adventures In Coding

    assert.cpp

    • 5 Comments
    #include "headers.h" static BOOL IsGoodPtr(void * pv, ULONG cb, DWORD dwFlags) { DWORD dwSize; MEMORY_BASIC_INFORMATION meminfo; if (NULL == pv) return FALSE; memset(&meminfo, 0x00, sizeof meminfo); dwSize = VirtualQuery(pv, &meminfo...
  • Fabulous Adventures In Coding

    assert.h

    • 0 Comments
    #ifndef ASSERT_H // { #define ASSERT_H extern BOOL Debugger(); extern BOOL AssertProc(const char *pszFile, long lwLine, const char *pszMsg); extern BOOL IsValidReadString(const WCHAR * psz); extern BOOL IsValidReadStringN(const WCHAR * psz); extern BOOL...
  • Fabulous Adventures In Coding

    guids.cpp

    • 1 Comments
    #include <initguid.h> #include <activscp.h> #include "guids.h"
  • Fabulous Adventures In Coding

    guids.h

    • 1 Comments
    #ifndef GUIDS_H // { #define GUIDS_H DEFINE_GUID(CLSID_SimpleScript, 0x5ff86f82, 0x18fb, 0x4aff, 0x98, 0xba, 0x20, 0xfd, 0xf2, 0x48, 0xa9, 0x24); #endif // GUIDS_H }
  • Fabulous Adventures In Coding

    headers.h

    • 0 Comments
    #ifndef HEADERS_H // { #define HEADERS_H // InitializeCriticalSectionAndSpinCount requires WinNT 4.0 SP3 or better. // UNDONE: Add code to registration, etc, that verifies that we are on the // UNDONE: right OS. #define _WIN32_WINNT 0x0403 #include...
  • Fabulous Adventures In Coding

    SimpleScript.def

    • 1 Comments
    LIBRARY SIMPLESCRIPT EXPORTS DllGetClassObject PRIVATE DllRegisterServer PRIVATE DllUnregisterServer PRIVATE DllCanUnloadNow PRIVATE
  • Fabulous Adventures In Coding

    SimpleScript, Part Zero

    • 10 Comments
    I'm going to embark upon something ambitious here. I got an email from Mike, our friendly support engineer on the east coast with the subject line " Need lots of info ". Apparently he was contacted by a customer who wants to implement a new script engine...
  • Fabulous Adventures In Coding

    Aargh, Part Four: There is no part four

    • 0 Comments
    I've got all these little rants queued up for days when I'm too busy to post. And Raymond has all these little articles queued up while he's on vacation. And in one of those weird Brouwer Fixed Point Theorem moments of synchronicity, Raymond just beat...
  • Fabulous Adventures In Coding

    Strolling Around VSLive

    • 4 Comments
    Yesterday I was taking a break from manning the Visual Studio booth down here at VSLive, and kind of wandering around saying hi to people. Had a nice chat with Mike , talked to some customers, checked out what the latest crop of productivity tools looks...
  • Fabulous Adventures In Coding

    Aaargh! Part Three

    • 8 Comments
    I'm still at VSLive. Both my talks are done, so its just booth duty from here on in. The talks went... OK. Running VSTO on top of Virtual PC on a laptop was too slow; we'll have to devirtualize that for the next time. Unfortunately they put me in the...
  • Fabulous Adventures In Coding

    I'm A Travelin' Man

    • 1 Comments
    I'm off to VSLive! in San Francisco , where I'll be giving a talk on Wednesday introducing VSTO2 and a talk on Thursday about security issues involving Office documents and managed code. I'll also be manning the Visual Studio portion of the Microsoft...
  • Fabulous Adventures In Coding

    Aaargh! Part Two

    • 12 Comments
    I'm insanely busy prepping for VSLive! today, so, once more, I complain about coding practice that are drivin' me nuts . But first: why do pirates dislike Johnny Depp's Oscar-nominated performance in "Pirates of the Caribbean"? Because it wasn't...
  • Fabulous Adventures In Coding

    Revenge of The Cycle Detector

    • 3 Comments
    Mike Schinkel takes even longer to get to the point than I do, and that's saying something! Mike tells a long story about another application of partial order sorts , and asks how to modify the partial order sort algorithm so that it has a new property...
  • Fabulous Adventures In Coding

    School days, part two

    • 1 Comments
    Well that got quite a few lengthy and high quality comments in a short time. To briefly follow up on some of them: Professor Ragde queries: Erstwhile professor? I am still a professor. English has ambiguous lexical scoping. When...
  • Fabulous Adventures In Coding

    School Days, School Days

    • 15 Comments
    Just a couple random notes today, following up on a few threads and reminiscing about school days. My old friend and erstwhile professor Prabhakar Ragde has some good comments and related links on my recent posting about trends in Computer...
Page 26 of 32 (783 items) «2425262728»