什么是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
最满意答案
是的,使用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)
.
相关问答
更多-
计划中的时间(Timing in Scheme)[2021-10-02]
只需将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 ... -
时间重复效果(Repeat effect with timing)[2024-01-10]
是的,使用setInterval函数。 var interval = setInterval(code, 4000); 这将每 4000毫秒执行一次代码。 代码也可以是匿名函数。 var interval = setInterval(function() { .... }, 4000); 经过一段时间后, setTimeout只执行一次代码。 var timeout = setTimeout(function() { ... }, 4000); 您的代码 ... -
约束应用的时间安排(timing of constraints application)[2022-10-06]
听起来你在观看之前已经使用了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 ... -
Flex流式超时(Flex streaming timing out)[2023-07-19]
也许您可以使用Consumer.channelDisconnect事件然后重新连接? Perhaps you can use the Consumer.channelDisconnect event and then reconnect? -
CSS / SVG动画效果 - 三个弹跳方块 - 正确的时间(CSS/SVG Animation Effect - Three Bouncing Squares - Correct Timing)[2023-09-23]
假设您只想同时“在空中”使用一个圆圈。 然后,应用过渡的关键帧必须仅覆盖33%。 这给出了: @keyframes jump { 0% { transform: translateY(0px); } 16.5% { transform: translateY(-12px); } 33%, 100% { transform: translateY(0px); } } .square-1 { animation: jump 2s e ... -
Raycast或时间或滞后?(Raycast or timing or lag?)[2022-06-23]
正如评论所证实的,我的怀疑是真实的: 您在Update()中运行此代码而不是FixedUpdate() ,因此它不与物理引擎同步。 这种差异(在更新间隔时间内)导致Update循环的代码执行得太早,造成了太多的力量,所以等到物理仿真运行时(在FixedUpdate的调度上),对象仍然过高并且重力再次接管。 唯一的解决方案是将您的代码移动到FixedUpdate() As comments confirmed, my suspicion was true: You are running this code ... -
Doubble强调效果CSS(Double underline effect CSS)[2023-02-21]
您可以使用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 ...
-
时间与“假设”规则相对应(Timing vs the “as-if” rule)[2023-05-13]
对于要应用的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