J
Joey Oravec
Hi, I'm trying to write a webbot to provide "breadcrumbs navigation" in
frontpage 2003. Since the output string will be calculated at design time
(static) based upon the navigation view, a client-side webbot seems like the
perfect solution.
Using Visual C++ 2005 beta 2, I can already make a webbot. Am I able to
access the Frontpage web object model from within this webbot? I can't figure
out how.
I've included my code below. The example files with the 2002 SDK are useless
with Visual C++ 2005, since the interfaces have changed. I get a non-NULL
value for myapp but I get an HRESULT 0x80010001 "call rejected by callee".
Why??
#include "webbot.h"
#import <MSO.DLL>
#import <VBE6EXT.OLB>
#import <fpeditax.dll> rename("namespace", "my_namespace")
#import <frontpg.exe>
using namespace FrontPage;
BeginWebBotExpand(crumbs,ret,bot,cgi,form)
{
HRESULT hRes;
//CoInitialize(NULL); // Since I'm in a webbot, should I do this?
_ApplicationPtr myapp(__uuidof(Application));
_variant_t versionVar;
versionVar = myapp->Version;
//CoUninitialize(); // Since I'm in a webbot, should I do this?
} EndWebBotExpand
Any ideas? I considered a FrontPage design time control but it looks that
DTCs are totally dead, and they're poorly documented. Am I wrong, and they
might work better?
Thanks!
-joey
frontpage 2003. Since the output string will be calculated at design time
(static) based upon the navigation view, a client-side webbot seems like the
perfect solution.
Using Visual C++ 2005 beta 2, I can already make a webbot. Am I able to
access the Frontpage web object model from within this webbot? I can't figure
out how.
I've included my code below. The example files with the 2002 SDK are useless
with Visual C++ 2005, since the interfaces have changed. I get a non-NULL
value for myapp but I get an HRESULT 0x80010001 "call rejected by callee".
Why??
#include "webbot.h"
#import <MSO.DLL>
#import <VBE6EXT.OLB>
#import <fpeditax.dll> rename("namespace", "my_namespace")
#import <frontpg.exe>
using namespace FrontPage;
BeginWebBotExpand(crumbs,ret,bot,cgi,form)
{
HRESULT hRes;
//CoInitialize(NULL); // Since I'm in a webbot, should I do this?
_ApplicationPtr myapp(__uuidof(Application));
_variant_t versionVar;
versionVar = myapp->Version;
//CoUninitialize(); // Since I'm in a webbot, should I do this?
} EndWebBotExpand
Any ideas? I considered a FrontPage design time control but it looks that
DTCs are totally dead, and they're poorly documented. Am I wrong, and they
might work better?
Thanks!
-joey