Help with Sending Files with messenger api activity
Hello Everyone,
I'm at witts ending trying to figure out how to do this in my javascript and/or vbscript. I was told in my previous post "Issue with SendFile...." that i cannot use the ActiveXObject("Scripting.FileSystemObject") because it doesn't return the right type of object. I need to create an IFileInfo object and i cannot find any documentation on how to do this. If anyone knows how to do this in COM or any other way....please let me know.
Thank you,
The Captain
Captain,
The SendFile functionality is not supported for the Activity App building contest. Sending files is one of the major ways that people spread IM worms, etc. So, we decided not to enable it for the contest.
I am getting a TypeInfo error when calling SendFile(). My ActiveX object is implemented in ATL/C++ and the FileInfo is defined as this:
Any suggestions?
Michael S. Scherotter
Product Manager, Solution Platform
Mindjet Corporation
[
object, uuid(8D1ADDF7-5736-4E3E-A681-E28EDC2C158E), dual, nonextensible, helpstring("IMindjetFileInfo Interface"), pointer_default(unique) ]
interface
IMindjetFileInfo : IDispatch{ [
propget, id(1), helpstring("Absolute path to the file.")] HRESULT Path([out, retval] BSTR* pVal); [
propput, id(1), helpstring("Absolute path to the file.")] HRESULT Path([in] BSTR newVal); [
propget, id(2), helpstring("Total size of the file, in bytes.")] HRESULT Size([out, retval] LONG* pVal); [
propget, id(3), helpstring("Bytes transferred so far.")] HRESULT Progress([out, retval] LONG* pVal); [
propput, id(3), helpstring("Bytes transferred so far.")] HRESULT Progress([in] LONG newVal); [
propget, id(4), helpstring("True if file is incoming, False if outgoing.")] HRESULT Incoming([out, retval] VARIANT_BOOL* pVal); [
propput, id(4), helpstring("True if file is incoming, False if outgoing.")] HRESULT Incoming([in] VARIANT_BOOL newVal); [
propget, id(5), helpstring("FileStatus enumeration of file transfer.")] HRESULT Status([out, retval] LONG* pVal); [
propput, id(5), helpstring("FileStatus enumeration of file transfer.")] HRESULT Status([in] LONG newVal); };