First, include the installation directory of Windows Live writer in your project, and then import "windowslivewriter. application. TLB"
In this way, you can call some sdks provided by Windows Live writer in the project! {
: Coinitialize (null );
Hresult hr;
Iwindowslivewriterapplicationptr pfun = NULL;
Iwindowslivewriterapplication * PF = NULL;
HR = Pfun. createinstance (_ uuidof (windowslivewriterapplication ));
If (Succeeded (HR ))
{
HR = Pfun. QueryInterface (iwindowslivewriterapplicationptr: getiid (), & PF );
If (Succeeded (HR ))
{
PF->Blogthisimageurl ("Test title","Http://www.baidu.com/img/logo.gif","Abcdefg");
}
}
Pfun. Release ();
: Couninitialize ();
}
In this way, although the content to be published can be added to Windows Live writer, you need to manually click Publish before you canArticleI have not found any other interface for posting my article to my personal space!