Can anyone help me because I'm currently upgrading my projects to support for NativeAOT.
I'm using IDManLib to send links directly to IDM (Internet Download Manager)
有人能帮我吗?因为我目前正在升级我的项目以支持NativeAOT。我正在使用IDManLib将链接直接发送到IDM(Internet下载管理器)
using IDManLib;
public static class IDMNew
{
public static void SendLinks(IdmParam param)
{
new IDManLib.CIDMLinkTransmitterClass().SendLinkToIDM(
bstrUrl: param.Url,
bstrLocalPath: param.OutputFolder,
bstrLocalFileName: param.OutputFileName,
lFlags: param.Flag,
bstrReferer: null,
bstrCookies: null,
bstrData: null,
bstrUser: null,
bstrPassword: null
);
}
}
However, I'm getting this error and I don't know what to do to fix this because I don't understand the documentation here: https://learn.microsoft.com/en-us/dotnet/framework/interop/how-to-create-com-wrappers?redirectedfrom=MSDN
但是,我收到了这个错误,我不知道如何修复它,因为我不理解这里的文档:https://learn.microsoft.com/en-us/dotnet/framework/interop/how-to-create-com-wrappers?redirectedfrom=MSDN
I'm asking maybe somebody can give me the correct implementation as I am not yet good in reading the documentation especially for complex process.
我在问,也许有人能给我正确的实现,因为我还不擅长阅读文档,特别是复杂的过程。
Built-in COM has been disabled via a feature switch. See https://aka.ms/dotnet-illink/com for more information.
System.NotSupportedException: Built-in COM has been disabled via a feature switch. See https://aka.ms/dotnet-illink/com for more information.
at IDMNew.SendLinks(IdmParam param)
更多回答
优秀答案推荐
我是一名优秀的程序员,十分优秀!