The problem is, when I run a method from other form (example: From form1 I call form2.mymethod) , it show me error in MessageBoxManager.cs
hHook = SetWindowsHookEx(WH_CALLWNDPROCRET, hookProc, IntPtr.Zero, AppDomain.GetCurrentThreadId());
Those from google are probably the same ones you or anyone here post, i just can make them work i think. Whenever i want to run a code for recognizing camera, an error pops about the P/invoke. Give me 3 possible solutions, but non of them of my understanding.
OpenCV's DLL files exist in the same directory as the executable file....
Visual C++ Redistributable Package has been installed....
The target platform(x86/x64) of OpenCV's DLL files and OpenCvSharp is the same as your project's....
Tehn you don't need MDI as it stands for MULTIPLE Document Interface. A single editor that let's you edit mulitple documents of the same type. That was it's intended design and you would be trying to make it do something it's NOT designed to do.
You don't need MDI for this and from the sounds of it, you don't even need a Windows Forms app.
I have to draw a 3D terain (polygon) using openGL and Tao Framework in C#. The problem is, i have never done such things before and i dont know how to start. I have my KML file and i wonder, how to read data or use coordinates, to draw a 3D terain of the path i've walked (or drove with a car).
Can anyoone give me any advice or help how to start making the 3D object of it?
The point of the program is, to create a 3D polygon which can rotate around, so i could see in 3D where i walked, if u can understand what i mean with that.
private System.Windows.Forms.Timer TrzTimer = new System.Windows.Forms.Timer();
this.TrzTimer.Tick += new System.EventHandler(this.TrzTimer_Tick);
TrzTimer.Interval = 1000;
TrzTimer.Enabled = true;
privatevoid TrzTimer_Tick(object sender, EventArgs e)
// do something when time elapses
//An object reference is required for the non-static field, method, or property
this is the error message that i get for calling TrzInitialize() during building this
DLL program. Consider that TrzInitialize() must be non static because of timer routine definition and TrzStart() must be static to be known for main program. thanks
You cannot call TrzInitialize from static method.
Its common sense. Since Invoke.TrzStart is static and you have 10 instances if Invoke class which of them you want to use to call TrzInitialize?
You have to explicilty set that instance like
Hello all, I've read that in dotnet framework 3.5 and above one can use the keyword Contains to check if an array has a particular value in one of it's elements. How do I check if an array contains a particular value in earlier versions of dotnet frameworks using C#? Thanks in advance.