C++ではVARIANTという構造体と共用体が入り乱れてネストした形になっています。 大きくわけると,どんな型の値が収められているかを示すvtメンバと,実際の値が納められている部分になります。 実際にはCOleVariant(MFC)やATL::CComVariant(ATL)そして_variant_tと言ったラッパークラスがあるので扱いはそんなに苦ではありません。 そしてOLEで配列はSAFEARRAY構造体を使います。 これもCOleSafeArray(MFC)やATL::CComSafeArray(ATL)などのラッパーが存在します。 さて問題のコードはどうなるかというとATLを使えばこうなります。 ATL::CComSafeArray<VARIANT> sa(2); //2は要素数 sa[0] = 1; sa[1] = 5; ATL::CComVariant ls(sa); Arr
Purpose Microsoft Windows HTTP Services (WinHTTP) provides developers with an HTTP client application programming interface (API) to send requests through the HTTP protocol to other HTTP servers. Where applicable WinHTTP supports desktop client applications, Windows services, and Windows server-based applications. For more information on how to use WinHTTP for applications built on the Microsoft .
This article describes OLE threading models. Original product version: OLE threading models Original KB number: 150777 Summary COM objects can be used in multiple threads of a process. The terms "Single- threaded Apartment" (STA) and "Multi-threaded Apartment" (MTA) are used to create a conceptual framework for describing the relationship between objects and threads, the concurrency relationsh
Let me begin my inaugural column for CodeGuru by stating that I’m on a crusade-a crusade to stamp out bugs related to COM concurrency. COM features a concurrency mechanism that’s capable of intercepting and serializing concurrent method calls to objects that were designed to process only one method call at a time. That mechanism centers around the notion of abstract boundaries called apartments. W
XPCOM is a cross platform component object model, similar to Microsoft COM. It has multiple language bindings, allowing XPCOM components to be used and implemented in JavaScript, Java, and Python in addition to C++. Interfaces in XPCOM are defined in a dialect of IDL called XPIDL. XPCOM itself provides a set of core components and classes, e.g. file and memory management, threads, basic data struc
//クリップボード文字列の取得 (V5.0より同等の機能がEmEditor本体に内蔵) //なぜか別のウィンドウがアクティブになってしまいます。(それ以外は正常に動作します) //また、インターネット オプションのセキュリティ設定のレベルのカスタマイズから、 //「スクリプトによる貼り付け処理の許可」を「有効にする」にしないとうまく動かないようです。 function Clipboard() { var ie = new ActiveXObject( "InternetExplorer.Application" ); ie.Navigate("about:blank"); var cbtext = ie.document.parentWindow.clipboardData.getData("text"); ie.Quit(); return cbtext; } alert(Clipboa
概要 指定されたCLSIDに対応する初期化されていない新しいオブジェクトを作成します。CoCreateInstanceは、ローカルシステムに1つだけオブジェクトを作成します。リモートシステム上にオブジェクトを作成する場合、CoCreateInstanceExを参照して下さい。また、1つのCLSIDから複数のオブジェクトを作成する場合、CoGetClassObjectを参照して下さい。 C/C++での宣言 HRESULT WINAPI CoCreateInstance( REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID riid, LPVOID *ppv ); VB.NETでの宣言 Public Declare Function CoCreateInstance Lib "OLE32.DLL" ( _ <[In]
Investment management; Investment services, namely, asset acquisition, consultation, development and management services; Fund investment consultation; Venture capital fund management; Venture capital advisory services; Venture capital financing; Management of a capital investment fund; Investment of funds for others; Financial management in the field of investment portfolios and private investmen
Purpose COM is a platform-independent, distributed, object-oriented system for creating binary software components that can interact. COM is the foundation technology for Microsoft's OLE (compound documents) and ActiveX (Internet-enabled components) technologies. Where applicable COM objects can be created with a variety of programming languages. Object-oriented languages, such as C++, provide pro
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く