|
|
A short one.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Agreed; no longer than 65 cm. Anything longer causes data-loss due to dem bits starving on the way.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Dear all,
I'm a new C# learner, I want to control "Chameleon3, CM3-U3-13Y3M" CCD by WinForm now.
The SDK example "FlyCapture2SimpleGUI_CSharp" could be compile and run on VS2017 system. So I created a new project and coded it by following example. I add the reference about "FlyCap2CameraControld_v140" & "FlyCapture2Managedd_v140" dll files in project. But it showed error message when it compiled. Does anyone know how to control it by C# in winform mode?
Thank you.
-------------------------------------------Error Message----------------------------------
System.BadImageFormatException
HResult=0x8007000B
Message=無法載入檔案或組件 'FlyCapture2Managedd_v140, Version=2.12.3.2, Culture=neutral, PublicKeyToken=76c6583b4a4585f4' 或其相依性的其中之一。 試圖載入格式錯誤的程式。
|
|
|
|
|
We have no idea where you got the SDK from, or the example, or even what the example is supposed to do.
Your first place to start is with the manufacturer, who you presumably got the SDK from - they will know a lot more about it and the example code than we will.
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hi, thanks for your reply firstly.
I got the SDK from "PointGrey's Support" download, I also send a mail to search help.
One question, does there have other way to control the CCD camera?
|
|
|
|
|
As I said, you'd have to talk to the manufacturer! There are a huge number of cameras out there, and they don't have to obey any standards ... assuming there is a standard to start with ...
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Bad Image Format usually means you're trying to use a 32-bit DLL in a 64-bit app or the other way around.
Go into your project properties and change your Platform Type from AnyCPU to x86, then recompile and see what happens.
|
|
|
|
|
Hi Dave,
Thanks for your answer, it solve the problem!!
I changed x64 to x86 and compiled pass, I could control CCD now.
Thank you.
|
|
|
|
|
Dears,
I have a C# windows form application which has an image of the world map. When the user clicks on any position on the map, I need to covert that point to Longitude and Latitude. How can I do this? Please help.
Vinu
|
|
|
|
|
Find the boundaries (x, y - topleft and x1, y2 bottomright) in the coordinate system. Make sure where you know where 0,0 is.
if your height in pixels is eg 1200 pixels you know that 1200 pixels have a range of -90 to +90 degrees (latitude). if the width is eg 1600 pixels you know that 1600 pixels have a range of -180 to +180 degrees (longitude). From there you can calculate the value of degrees 1 pixel has for the X and Y axis.
Hope this gets you started.
|
|
|
|
|
This is true only for the specific case of the Equirectangular projection[^], which is not a commonly used projection. The calculation varies per projection.
modified 13-Sep-18 21:01pm.
|
|
|
|
|
Ah, I see your point.
You're right, of course, but I do think my solution is probably the best and easiest to start out with.
He can take it from there
|
|
|
|
|
I had to play with this a bit for a map application, and gained a whole new respect for cartographers.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
I need to get a collection of files that can be selected with a openfiledialog and saved into a List or Array. Then. When The form loads, the files inside that List/Array should open into textboxes. Thanks.
|
|
|
|
|
So what have you tried, what have you got so far and what are the issues stopping you?
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Suppose my MVC controller method takes 3 parameters as input but I send a fourth parameter as an extraparam to my controller method from jqGrid, how do I access this fourth parameter in the MVC controller?
|
|
|
|
|
If a method accepts only 3 parameters then you must send exactly three. Send fewer and it may crash the application, send more and the extras will be ignored.
|
|
|
|
|
I have written a code. But don't know where is the error. Please help.
<pre lang="c#"><pre>using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace GridView
{
public partial class practise : System.Web.UI.Page
{
public static List<User> listuser = new List<User>()
{
new User() {ID = 1, UserName = "Dhruv", Password = "hello"},
new User() {ID = 2, UserName = "Gaurav", Password = "12345"},
new User() {ID = 3, UserName = "Rahul", Password = "asdfg"},
new User() {ID = 4, UserName = "Guru", Password = "qwerty"}
};
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
listuser = new List<User>();
GRIDDATA.DataSource = listuser;
GRIDDATA.DataBind();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
User data = new User();
data.UserName = TextBox1.Text;
data.Password = TextBox2.Text;
bool UserExists(string userName, string password)
{
return listuser.Any(a => a.UserName.Equals(userName, StringComparison.CurrentCultureIgnoreCase) && a.Password.Equals(password));
}
if(UserExists(data.UserName, data.Password))
{
Response.Redirect("https://www.googel.com");
}
}
}
public class User
{
public int ID { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
}
}
|
|
|
|
|
Dhruv Nunia wrote: googel.com There it is.
If you had an exception, please paste the entire exception. Also, if you create the list anew, you have to fill it again too, otherwise you're binding to an empty list.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
You'll get an "insecure connection" error, but Google have actually registered googel.com and set it to redirect to google.com .
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I forgot to foofle that first, sorry. But technically it is an error and it was pointed to
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Wildlife around the planet has started to act really strangely, but I never expected to see it extend to CP...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Wildlife, by definition, acts naturally. I have no clue what you are trying to say, and Google isn't being helpfull either.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|