|
Saridakis Manolis wrote: How can I solve this ?
Disable the hook when debugging. It's not even related to the error you are reporting.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Why are you using AppDomain.GetCurrentThreadId() ?? That's been obsolate since .NET 2.0 because it doesn't return the correct ID in all cases.
Any why are you setting this hook at all??
|
|
|
|
|
Hi, i'm trying to get OpenCvSharp runing and i couldn't manage to make it work. Google tutorials haven't help, or i just can't get it right. Anyone that can help me installing and a basic tutorial?
I'm trying to make my program recognize a PS3 Eye (hopefull could choose in the differents resolutions settings), and show live video.
|
|
|
|
|
Daniel Heinsohn wrote: Google tutorials haven't help, or i just can't get it right. Anyone that can help me installing and a basic tutorial?
What makes you think my tutorials are better than those of Google? What does "couldn't manage to make it work" mean? Did you get an exception, some kind of error? Did the library not compile?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
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....
Maybe i got a wrong OpenCvSharp.dll
|
|
|
|
|
Daniel Heinsohn wrote: 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.
The problem with other tutorials is that they'll use a comparable technique, and you'd be running into the same wall.
If the PC is 64 bits, might be a conflict with incompatible versions. What did the P/Invoke exception say?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
i want to use 1 page in C#.. when we use MDI. like as web page... can it possible....?
|
|
|
|
|
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.
|
|
|
|
|
Hello all!
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?
Thnx.
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.
modified 13-Oct-12 11:39am.
|
|
|
|
|
I highly suggest picking up a book on 3D graphics. You're not going to get all the information you need from a couple of forum posts.
|
|
|
|
|
Yes, i can imagine that. I thought some directons would help me from people who are already familiar with such things.
The thing was told to be 'easy' to make.
Any help given, will be apreciated, like your reply. Thnx.
Greets, Tom
|
|
|
|
|
tokano wrote: The thing was told to be 'easy' to make.
"Easy" is a term relative to the skill level of the person doing it, not the task itself.
|
|
|
|
|
How to Display fingerprint images from fingerprint Device?
|
|
|
|
|
By consulting the SDK documentation for the device.
|
|
|
|
|
namespace NecRoutines
{
public class Invoke
{
private System.Windows.Forms.Timer TrzTimer = new System.Windows.Forms.Timer();
private void TrzInitialize()
{
this.TrzTimer.Tick += new System.EventHandler(this.TrzTimer_Tick);
TrzTimer.Interval = 1000;
TrzTimer.Enabled = true;
TrzTimer.Start();
}
private void TrzTimer_Tick(object sender, EventArgs e)
{
}
public static void TrzStart()
{
TrzInitialize();
}
}
}
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
public static void TrzStart(Invoke instance)
{
instace.TrzInitialize();
}
No more Mister Nice Guy... >: |
|
|
|
|
|
thanks, it works properly I appreciate your knowledge. So I am still a novice.
|
|
|
|
|
Everybody was at some point. Don't worry about that.
Glad that could help.
No more Mister Nice Guy... >: |
|
|
|
|
|
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.
modified 13-Oct-12 2:23am.
|
|
|
|
|
|
Iterate through the array and do a match yourself:
for(int i=0; i < myArray.Length; i++) {
if (myArray[i] == valueToCheck) {
break;
}
}
|
|
|
|
|
Hi, thanks for replying. That is exactly what I'm looking for.
|
|
|
|
|
Glad to be of help. Mark it as answer if that helped.
|
|
|
|
|
Dear,
You can use below function to check if Value exist in array or not..
Function CheckIfValueExistInArray(ByVal strString As String) As Boolean
Dim animals() As String = {"lion", "turtle", "ostrich"}
If Array.IndexOf(animals, strString) <> -1 Then
Return True
Else
Return False
End If
End Function
Thanks
KiranKumar Roy
|
|
|
|
|
KiranKumar Roy wrote: You can use below function to check if Value exist in array or not
Not really. This is the C# forum, you have posted VB code. You are checking for a string, the OP could be searching for any type of data. You are searching an array that is created inside the method, typically he would be searching a class level variable or passing an array to a static method.
Array.IndexOf or Array.IndexOf<T> are a good call though, but no need to wrap in another method.
If you really want a separate method then extensions such as these would be better IMO:
public static class Extensions
{
public static bool Contains(this object[] array, object value)
{
bool result = false;
if (array != null)
result = Array.IndexOf(array, value) > -1;
return result;
}
public static bool Contains<T>(this T[] array, T value)
{
bool result = false;
if (array != null)
result = Array.IndexOf<T>(array, value) > -1;
return result;
}
}
modified 14-Oct-12 16:01pm.
|
|
|
|