gpt4 book ai didi

Using IDManLib in C# with NativeAOT Support(在具有NativeAOT支持的C#中使用IDManLib)

转载 作者:bug小助手 更新时间:2023-10-24 23:54:03 29 4
gpt4 key购买 nike



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)

更多回答
优秀答案推荐
更多回答

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com