首页 \ 问答 \ 什么是interop dll?(What is the interop dll?)

什么是interop dll?(What is the interop dll?)

我需要一些澄清。 我有一个Reportwriter dll使用Crystal Reports。 它是用VB6编写的。 我必须将这个dll添加到我的asp.net项目中,在那里它创建一个互操作的dll。

据我了解,interop dll是作为一个中间人,所以我的.net代码可以与报告撰写者dll说话。

那么请注册interop dll,还是注册原始的dll?


I need some clarification. I have a Reportwriter dll that uses Crystal Reports. It is written in VB6. I have to add this dll to my asp.net project, where it creates an interop dll.

To my understanding, the interop dll is there as an intermediary so that my .net code can speak to the Reportwriter dll.

So do I register the interop dll or do I register the original dll?


原文:https://stackoverflow.com/questions/1670940
更新时间:2023-12-22 09:12

最满意答案

是的,使用setInterval函数。

var interval = setInterval(code, 4000);

这将 4000毫秒执行一次代码。

代码也可以是匿名函数。

var interval = setInterval(function() {
        ....
    }, 4000);

经过一段时间后, setTimeout只执行一次代码。

var timeout = setTimeout(function() {
        ...
    }, 4000);

您的代码将在4000毫秒后调用。

最后,您可以使用clearTimeout(interval)取消这些计时器。


Yes, use the setInterval function.

var interval = setInterval(code, 4000);

This will execute code every 4000 milliseconds.

Code could also be an anonymous function.

var interval = setInterval(function() {
        ....
    }, 4000);

setTimeout instead executes your code just once, after some time.

var timeout = setTimeout(function() {
        ...
    }, 4000);

You code will be called after 4000 milliseconds.

Finally, you can cancel these timers with clearTimeout(interval).

相关问答

更多
  • 只需将time表达的整个部分放在time表达式中(这适用于绝大多数实现,包括Racket): (time (rest-of-program)) 如果你在Linux / OSX / BSD / etc下,你也可以使用Unix命令time ,例如 time ./my_program Just enclose the whole part you want to time in the time expression (this works in most implementations, including ...
  • 是的,使用setInterval函数。 var interval = setInterval(code, 4000); 这将每 4000毫秒执行一次代码。 代码也可以是匿名函数。 var interval = setInterval(function() { .... }, 4000); 经过一段时间后, setTimeout只执行一次代码。 var timeout = setTimeout(function() { ... }, 4000); 您的代码 ...
  • 听起来你在观看之前已经使用了bounds 。 在没有实际看到你的代码的情况下,我建议在viewDidLayoutSubViews()执行你描述的代码。 It sounds like you're using bounds before your views have been lain out. Without actually seeing your code, I would suggest executing your described code inside of viewDidLayoutSub ...
  • 也许您可以使用Consumer.channelDisconnect事件然后重新连接? Perhaps you can use the Consumer.channelDisconnect event and then reconnect?
  • 假设您只想同时“在空中”使用一个圆圈。 然后,应用过渡的关键帧必须仅覆盖33%。 这给出了: @keyframes jump { 0% { transform: translateY(0px); } 16.5% { transform: translateY(-12px); } 33%, 100% { transform: translateY(0px); } } .square-1 { animation: jump 2s e ...
  • 正如评论所证实的,我的怀疑是真实的: 您在Update()中运行此代码而不是FixedUpdate() ,因此它不与物理引擎同步。 这种差异(在更新间隔时间内)导致Update循环的代码执行得太早,造成了太多的力量,所以等到物理仿真运行时(在FixedUpdate的调度上),对象仍然过高并且重力再次接管。 唯一的解决方案是将您的代码移动到FixedUpdate() As comments confirmed, my suspicion was true: You are running this code ...
  • 您可以使用after伪类来获得双下划线效果。 //same as before class except for transition delay and bottom position you can adjust that as needed .hvr-underline-from-left::after { content: ""; position: absolute; z-index: -1; left: 0; ...
  • 您只能使用命令行客户端psql使用\timing ,因为这是一个psql命令。 它是一个开关,可以打开和关闭执行时间报告: test=> \timing Timing is on. test=> SELECT 42; ┌──────────┐ │ ?column? │ ├──────────┤ │ 42 │ └──────────┘ (1 row) Time: 0.745 ms test=> \timing Timing is off. You can use \timing only wi ...
  • 对于要应用的As-If规则,编译器必须证明建议的更改对可观察行为没有影响。 你是正确的,时间的流逝不是一个可观察的行为。 但是,在重新排序函数的情况下,必须证明调用函数的顺序不会影响可观察行为。 使用时序特征总是会涉及一些测量时间的机制,编译器将无法证明这种机制可以安全地重新排序。 例如,它可能涉及调用不能检查的不透明系统API函数或驱动程序函数。 如果我们采用最透明的例子,一个单调的软件时钟,每次采取状态时只需前进一个单位时间,就无法证明呼叫顺序无关紧要,因为它确实很重要。 For the As-If r ...
  • 检查事务和连接超时是否设置超过30秒... 希望这可以帮助, 再见 cghersi Check that the Transaction and Connection timeouts are set with more than 30 seconds... Hope this can helps, Bye cghersi

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。