C# Sample
Demonstrates how to create a C# application using the VideoXpert SDK
SDKSampleApp.Source.Program Class Reference

The Program class More...

Static Public Member Functions

static void Main ()
 The main entry point for the application. More...
 

Detailed Description

The Program class

Definition at line 9 of file Program.cs.

Member Function Documentation

static void SDKSampleApp.Source.Program.Main ( )
inlinestatic

The main entry point for the application.

Definition at line 15 of file Program.cs.

16  {
17  // Build the path to GStreamer based on the current system settings.
18  var processType = Environment.Is64BitProcess ? "x64" : "x86";
19  var currentPath = new System.IO.DirectoryInfo(Application.ExecutablePath);
20  var rootSamplePath = currentPath.Parent.Parent.Parent.Parent.Parent.Parent.FullName;
21  const string PathFormat = "{0}\\MediaController\\ThirdParty\\GStreamer\\1.8.1\\{1}\\gstreamer_runtime\\bin";
22  var gstreamerPath = new System.IO.DirectoryInfo(string.Format(PathFormat, rootSamplePath, processType));
23 
24  // Add the GStreamer location to the path. It will use it to automatically find the needed files.
25  Environment.SetEnvironmentVariable("PATH", gstreamerPath.FullName);
26 
27  Application.EnableVisualStyles();
28  Application.SetCompatibleTextRenderingDefault(false);
29  Application.Run(new MainForm());
30  }

The documentation for this class was generated from the following file: