What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Interop.Call windows shell help

Interop.Call windows shell help
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Interop.Call windows shell help
quote:
Originally posted by wincy

But debug says something like:
CallDll failed collocation of function "EstimateFileRiskLevel"...

What should i do? How should i read the result?
Thanks
The correct error you get is:
"Interop.Call failed to locate function "EstimateFileRiskLevel""
Remember it is absolutely very important to always paste errors correctly and exactly when you're seeking help. <- EDIT: sorry, it didn't occured to me you translated it yourself. It's best to post the original error, in your own language though.

Anyways, the error says it can not locate the function you are trying to execute in the library you told to seek in. In other words, you are using either the wrong name of the function, or you tell it to seek it in the wrong library, or both...

In this case, if you read the documentation on MSDN, it is both. The function name is wrong and the library is wrong:
quote:
Remarks
This function is not declared in a public header or included in a library file. To use it you must load it directly from Winshfhc.dll by ordinal 101.
So, the library is 'Winshfhc.dll', not 'Shell32.dll'.
But it also means that you can't use Interop.Call to call this function as it does not have a public name and Interop.Call can not work with ordinal numbers.

In other words: you can not use this Windows API in this way.

This post was edited on 11-10-2009 at 07:55 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-09-2009 01:22 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Interop.Call windows shell help - by wincy on 11-08-2009 at 08:19 PM
RE: Interop.Call windows shell help - by Spunky on 11-08-2009 at 08:24 PM
RE: Interop.Call windows shell help - by wincy on 11-09-2009 at 12:10 AM
RE: RE: Interop.Call windows shell help - by CookieRevised on 11-09-2009 at 01:22 AM
RE: RE: RE: Interop.Call windows shell help - by wincy on 11-09-2009 at 03:26 PM
RE: Interop.Call windows shell help - by Ezra on 11-09-2009 at 04:15 PM
RE: Interop.Call windows shell help - by matty on 11-09-2009 at 05:32 PM
RE: Interop.Call windows shell help - by CookieRevised on 11-10-2009 at 07:51 AM
RE: Interop.Call windows shell help - by Ezra on 11-11-2009 at 10:55 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On