
Machine Vision Camera SDK (DotNet) Developer Guide
Console.WriteLine("Destroy device failed!")
End If
Console.WriteLine("Destroy device succeed!")
End Sub
End Module
4.1.7 MvCamCtrl.NET::MyCamera::MV_CC_CreateDeviceWithoutLog_NET
Create handle without generating logs.
API Definition
int MV_CC_CreateDeviceWithoutLog_NET(
ref MyCamera.MV_CC_DEVICE_INFO stDevInfo
);
Parameters
stDevInfo
[IN] Device information, including device version, MAC address, transport layer type, and other
device information. See the structure MV_CC_DEVICE_INFO for details.
Return Values
Return MyCamera.MV_OK (0) on success; and return Error Code on failure.
Remarks
Create the required resources in the library and initialize the internal modules according to the
device information. By default, log files will not be generated if you call this API to create handle. If
you need logs, you can also call MvCamCtrl.NET::MyCamera::MV_CC_CreateDevice_NET to create
handle, and the generated log files are saved in the folder of MvSdkLog under the directory of
executable program.
Example
C#
using System;
using System.Runtime.InteropServices;
using System.IO;
using MvCamCtrl.NET;
namespace CreateDevice
{
class Program
{
static void Main(string[] args)
{
30






















































































































































































































































































































































































































































































































































































































