|
|
Has anyone had to get the chart1 gif from an xsl file? I know if you manually perform a SaveAs and choose Webpage, you will create a directory whether you choose "Entire Workbook" or "Republish:chart". From there you can just access the gif. I need to know how to grab that COM object and perform the SaveAs. Or am I making this more difficult than it has to be?
Thanks,
Lilian
|
|
|
|
|
Hi Hello any one can send me how to use dom in xml
|
|
|
|
|
|
dom in XML?
can u be a bit more specific?
bryce
|
|
|
|
|
Hi Hello any one can send me how to use dom in xml
|
|
|
|
|
Hi Hello any one can send me how to use dom in xml
|
|
|
|
|
http://www.codeproject.com/useritems/msxmlcpp.asp
#define MOSTLY_LEAN_AND_MEAN
|
|
|
|
|
How to register com component
|
|
|
|
|
In command prompt:
regsvr32 filepath
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
from the command line
regsvr32 yourdll.dll
do unregister
regsvr32 yourdll.dll /u
though i like to have a batch file in my project which is run as a post link command
Bryce
sounds like we need a tool to do it from windows ?
|
|
|
|
|
Testing message
|
|
|
|
|
testing worked...isn't it great when that happens?
bryce
|
|
|
|
|
I have created a MSXML object as following C++ code shows:
CComPtr<ixmldomdocument> spXMLDOM;
HRESULT hr = spXMLDOM.CoCreateInstance(__uuidof(DOMDocument));
if ( FAILED(hr) ) throw "Unable to create XML parser object";
if ( spXMLDOM.p == NULL ) throw "Unable to create XML parser object";
CComBSTR str(L"<xmldata><xmlnode><xmltext>Hello, World!");
hr = spXMLDOM->loadXML(str, &bSuccess);
But it doesn't load the str and the value of bSuccess is FALSE
Please help.
Thanks in advance.
|
|
|
|
|
I want to output a recordset to client in COM, I did as following:
[id(7), helpstring("method GetStudentInfo")] HRESULT GetStudentInfo([in] BSTR bstrStudentID, [out,retval] _Recordset *pRs);
But error report that
error MIDL2025 : syntax error : expecting a type specification near "_Recordset"
But here i think _Recordset is a type specification
|
|
|
|
|
You can pass _RecordsetPtr also as a IDispatch*. For the _RecordsetPtr problem, lookup http://www.codeproject.com/atl/atl_ado.asp.
#define MOSTLY_LEAN_AND_MEAN
|
|
|
|
|
Hi
I want to run the sample "Simple" on remote machine.We can run as a local server or remote server.I am able to run as a local server but not able to run as remote machine.How to accomplish this?How to register the exe in DCOM?
plase help?
Thank you
Pathi
|
|
|
|
|
i do mine as an NT service
then run the exe with "/service"
eg. fromthe command line
"mynewdcom.exe /service"
bryce
|
|
|
|
|
Hi
I wrote a component and wanted to access it on remote machine.how to accomplish this?How can I register that component?Do I need to register that exe on both machines?Then How to register and call that component?(using DCOM)
Please help me
Thank you
Sai
|
|
|
|
|
run the exe as with "/service" onthe machine which you want to use as the server
you can connect to it (assuming you have the permissions set etc)
by using CoCreateInstanceEx
see the dcom articles here on codeproject
bryce
|
|
|
|
|
Hello all,
I'm using BeforeNavigate2 event to get the Post data as per MSDN article:
HOWTO: Handle Data from a Post Form When Hosting WebBrowser Control (Q256195)
But I'm unable to get the the BSTRs from the Post Data SAFEARRAY.
Here's my BHO's Invoke implementation:
if (dispidMember ==DISPID_BEFORENAVIGATE2)
{
if(pDispParams->rgvarg[1].vt==(VT_BYREF|VT_VARIANT) && pDispParams->rgvarg[2].vt ==(VT_BYREF|VT_VARIANT) && pDispParams->rgvarg[2].pvarVal->vt!=VT_EMPTY)
{
ATLTRACE("\nGetting POST Info");
CComBSTR szTemp,szPostData;
long plLbound, plUbound;
CComVariant varHeaders(*pDispParams->rgvarg[1].pvarVal);
varHeaders.ChangeType(VT_BSTR);
CString strHeaders(OLE2T(varHeaders.bstrVal));
//got the header data
CComVariant var(*pDispParams->rgvarg[2].pvarVal);
SAFEARRAY *psa=NULL;
psa= var.parray;
SafeArrayAccessData(psa , (LPVOID*)&szTemp);
//next two lines yields an Unhandled
//Exception when there is valid Post data??
// SafeArrayGetLBound(psa , 1, &plLbound);
// SafeArrayGetUBound(psa , 1, &plUbound);
CComBSTR str;
szTemp.CopyTo(&szPostData);
SafeArrayUnaccessData(psa);
ATLTRACE(OLE2T(szPostData));
//output always ""
}
}
Dunno what is going wrong. DO I need to preallocate a SAFEARRAY?
My Postdata html pages are nothing out-of-the-ordinary.Just a simple textbox that passes a string thru HTTP POST.
Any help will be great.
TIA.
#define MOSTLY_LEAN_AND_MEAN
|
|
|
|
|
Can anyone point me towards the part of the Outlook object model, where I can find the number of new emails in a folder-
Regards
Ben
Vacancy for signature; Apply within.
|
|
|
|
|
Ben,
the microsoft knowledge base article Q171603 shows an example on how to get
the unread message count of an outlook folder. Hope this helps.
Alwin
|
|
|
|
|
I'm trying to return a COM object, example:
Object *po;
CreateInstance(&po);
void getObject(IUnknown *pVal)
{
pVal = po;
// OR I even tried this, but it does not work.
po->QueryInstance(pVal);
}
I get a NULL pointer at the calling method.
Thanks in advance.
Ken
|
|
|
|
|
I do not have enough information to answer your question. I don't really know what your question is.
Is Object *po; a global variable?
What is CreateInstance? Where is it called.
When you mention po->QueryInstance , do you mean QueryInterface?
If you can give me a little more information, I will try to help you.
Checkout my Guide to Win32 Paint for Intermediates
|
|
|
|