Add Vbsedit Embedded to your C++ application

1. Add the following lines in your stdafx.h file:

#import "vbsedit_embedded.tlb" raw_native_types  
using namespace VbseditEmbeddedLib;



2. Add the following lines of code to start Vbsedit Embedded:

CComPtr scr;
HRESULT hr = ::CoCreateInstance(__uuidof(VbseditEmbeddedClass),
                                NULL, 
                                CLSCTX_LOCAL_SERVER,
                                __uuidof(IVbseditEmbedded),
                                (void**)&scr);
scr->SetMacroCode(::SysAllocString(L"Macro1"),::SysAllocString(L""));
scr->EditMacro(::SysAllocString(L"Macro1"));



3. Add the following code to enable Intellisense for your objects:

CString typeLibPath="C:\\mytypelib.tlb";
scr->AddObject(SysAllocString(L"MyObject"),GetIDispatch(TRUE),typeLibPath.AllocSysString());





Download Vbsedit Embedded



This package includes VbsEdit Embedded 32-bit and VbsEdit Embedded 64-bit


Home 

Copyright © 2001-2024 adersοft