微软MCAD 70-310 实战百题
题目内容

You are developing a Windows-based application that requires the use of a calculation function named CalculateValue. This function includes the following signature:CalculateValue (int As Integer) As IntegerCalculateValue is located in an unmanaged DLL named UsefulFunc- tions.dll, and is not part of a COM interface. You need to be able to use CalculateValue in your application. Your project directory contains a copy of UsefulFunctions.dll.While you are working in Debug mode, you attempt to run your application. However, a System.DllNotFoundException is thrown.You verify that you are using the correct function named. You also verify that the code in the DLL exposes CalculateValue. You have not modified the project assembly, and you have not modified machine-level security. You need to test your application immediately .What should you do?

2021-12-25

A.Move UsefulFunctions.dll to your project's bin directory

B.Move UsefulFunctions.dll to your project's Debug directory

C.Immediately before the declaration of CalculateValue, add the following code segment:

D.Immediately before the call to CalculateValue, add the following code segment:Dim perm As New SecurityPermission(_SecurityPermissionFlag.UnmanagedCode)perm.Assert()

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端