|
That will be hard unless you have some generic camera with a published SDK. Pretty much every camera out there is proprietary.
/\ |_ E X E GG
|
|
|
|
|
hi everyone..
does anyone know how to use ADOBC?? I just need a sample code of few lines if possible.. It does not seem to be working like OleDB
THanks
E.T.
|
|
|
|
|
Do you mean ODBC?
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
No - this is a special version of ADO developed for users in British Columbia (or was it the Stone Age ??).
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
Hey
I have connected a event to a serialport this way
serialPort.ReceivedEvent += new SerialReceivedEventHandler(serialPort_ReceivedEvent);
This event is sopose to be fired when data is written to the com port from a cellphone(or what ever).
this works fine on 3 of my computers, but not on my main computer?
All the computers is running Windows XP and Framework 2.0
How is this posible? and what may be the problem?
BestRegards
SnowJim
|
|
|
|
|
I have two classes, ClassA and ClassB:
public class ClassA<br />
{<br />
private int intProperty;<br />
<br />
public int Property<br />
{ <br />
get<br />
{<br />
return intProperty;<br />
} <br />
set<br />
{ <br />
intProperty = value; <br />
} <br />
}<br />
<br />
public ClassA()<br />
{<br />
ClassBTest = new ClassB();<br />
}<br />
}
My question is, how do I access and modify ClassA.Property from ClassB?
For example (understanding that this doesn't actually work):
<br />
public class ClassB()<br />
{<br />
private int Function()<br />
{<br />
int Temp = ClassA.Property;<br />
Temp++<br />
ClassA.Property = Temp;<br />
}<br />
}
There's got to be a fundamental way to do this, I'm just missing that piece of information.
Thanks for your help.
|
|
|
|
|
what use wrote in your code was the use of a static property.
if you use ClassA.Property
the property definition must be:
public static int Proprty {...}
But you can also use is this way you code it. But then you must create an instance of the class to use the property:
ClassA c = new ClassA();
int Temp = c.Property;
|
|
|
|
|
That's my dilemma: I need a solution more advanced than that. I cannot create the new class; that defeats the entire purpose of my program. I have to interact with the existing class.
I'm playing with static members; that may give me what I need. Thanks.
|
|
|
|
|
then you must use it as static like this:
class ClassA
{
private static int i;
public static int Property
{
get
{
return i;
}
set
{
i = value;
}
}
}
then you can use it via
int i = ClassA.Property;
|
|
|
|
|
Works great, thanks.
Isn't it amazing how it's always the simple stuff you end up researching for eight hours?
I appreciate your help.
|
|
|
|
|
Just as an aside - doing what the first reply suggested would not lead to creating a new class. It would lead to creating a new instance of an existing class. Either way (static or instance), you're taking up space on the heap. The difference is that with a static member, all clients in the AppDomain shares a single instance of the static member, and with non-static (instantiation), each call gets a new copy of the object.
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
Is there any way to make a property grid so that it is only GET, and does not give a SET option?
I've had some problems with enum's not being happy with a default 0 value. And although I know enums are supposed to work with this, here is the error message:
[quote]
An unhandled exception of type 'System.ArgumentException' occurred in system.dll
Additional information: The value '0' is not a valid value for the enum 'DepthFormat'.
[/quote]
As a note, some of these enums are Flags and some are used by unmanaged code. If possible i'd like to find a workaround.
Cheers
Cata
|
|
|
|
|
|
I read the article, but it seems to focus more on manipulating the property grid by modifying attributes on classes that are to be used in it.
Unforunately, this hasn't solved my problem, as I am exploring existing classes.
Although, i just had a thought, would it be possible to set NOT FlagsAttribute in a BrowsableAttributes class? I'll go exlore this.
Cata
|
|
|
|
|
Hai to all,
I want to create a simple TCP based network application, where client and server communicates with encryption. I tried to use streamwriter ans streamreader classes for non- encrypted application. I don't know how to use CryptoStream with the above streamwriter ans streamreader classes.
Early response is encouraged.
|
|
|
|
|
My article on YEnc encoding[^] has a sample of this. Just scroll down to the 2 highlighted pieces of code. You can substitute any encoder (implementation of ICryptoTransform), instead of my YEnc one.
my blog
|
|
|
|
|
Is there any way to make a property grid so that it is only GET, and does not give a SET option?
Cheers
Cata
|
|
|
|
|
Im trying to fill an array with the objects returned from the DTE method:
GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem")
I read through the documentation in VS.NET but am unsure how to properly reference the DTE class so that i can use the GetObject() method. I added a reference to envdte.dll and tried to create a new DTE object, but could not get it to work.
Any advice or code snippets on how to do this would be appriciated.
|
|
|
|
|
Uhhh...none of this is making any sense to me. What are your trying to accompish here? You posted code, VB code from the looks of it!, to get the Operating System parameters from WMI. What does this have to do with the Visual Studio IDE?
DTE.GetOject will return an object inside the IDE. As far as I know, it won't return an external object, like a WMI Provider.
If your trying to return the OS parameters from WMI, try using the System.Management namespace, specifically, the ObjectQuery[^] class.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ObjectQuery did what I wanted, thanks for the response.
|
|
|
|
|
Good morning.
In case it matters, I am using Windows XP SP2 and Visual Studio .NET 2003 Enterprise (VS2003).
I am just starting a new project and decided to use the XML-based documentation comments. I am currently using VS2003's built-in option to create HTML files (Tools | Build Comment Web Pages). After noticing the files weren't working in IE (due to the restricted zone problem in SP2), I created a virtual directory under IIS and loaded the files from there. Now the pages work fine in IE.
However, the files won't work correctly in Mozilla 1.7.5 or Firefox 1.0.1. I assume that the problem is that the HTML files written using document.all as opposed to document.getElementById().
Does anybody have a work-around to make cross-browser friendly HTML pages?
Thanks,
Jim.
|
|
|
|
|
|
|
I wanna send ASCII data to a specific IP, is there anyone know about this?
thx all...
|
|
|
|
|
the easiest way to do this should be to use the TcpClient object. This object can connect to an IP and open up a stream. Then you can use a StreamWriter to write the chars into the stream.
|
|
|
|