|
Hi,
Can someone help me out to embedd an ocx as resource an actually use the code without registering it in the OS ?
a site, a doc, some tips or where to search, every hint is welcome.
Thx
Kurt
|
|
|
|
|
I don't think you can use an ocx without registering it.
|
|
|
|
|
Hi,
Don't you think it's possible to acces the code through the interface if you know the interface?
I thought the guid (registration) was needed to determine the interface and object location?
Thx.
|
|
|
|
|
the problem is that the desinger will look in the system for the OCX - implementation and I don't think that there is an easy way to change this
|
|
|
|
|
i don't need it in the designer only in runtime so a posibility could be using axhost or reflection to create it, but axhost still search the object using the guid, not on filename. And reflection uses filename but needs an assembly to load and create it. The ocx has no assembly info so i'm stuck there.
thx
|
|
|
|
|
I Have 2 classes and have some global variables i want to use those in both classes so what can i do..
shall i create a new class and inherit or need to define at both places...
and please reply for my earlier post also ...
Thanks alot...
T@SU
|
|
|
|
|
that depends on the situation.
Normaly if you can't solve the problem without "global" variables you define a static class with public variables and use this class in both of your classes.
Or you define an struct/class to hold the shared Data and pass a reference/instance of this data to both of your instances through the constructor.
Or you use public properties in your classes and link these (not recommendet - never do something like class1 calls class2.method and class2 calls class1.method - it's just not good design)
|
|
|
|
|
I think defining struct will help out me here... or i can define a static class that will hold my data ...
Thanks for your reply...
and i am stucked here ..in some VB code design can u help out me here...
as it is described in my earlier post
vikas da
|
|
|
|
|
hi, may i know what suppose to be the answer for the below code and its reason for it?
Int16 minValue=-32768;
Int16 maxValue=32767;
Int16 delta=2;
Int16 Value = (Int16)(minValue - delta)
Int16 Value = (Int16)(maxValue + delta)
Thanks in advance.
|
|
|
|
|
this looks like your homework - why don't you give a try?
|
|
|
|
|
it is not my homework, just something that i encounter while programming...i want to know how the adding and minus works....how can it be negative number when the delta is 1 and it is added to the max value?
|
|
|
|
|
ok, this is because the numbers are just a bunch of bits in memory (16 in your case) and the negative numbers are those starting (or ending with 1 - for example: (100101....) - so if you add a value and the result is bigger the max pos value the last 1 will be set and alas the value will be negative.
|
|
|
|
|
Hi, for most (if not all) data types MaxValue+1 and MinValue have the same bit representation.
If your code is not detecting overflows, incrementing MaxValue will just result in Minvalue;
if your code is organized to detect overflow, an OverflowException will be thrown.
|
|
|
|
|
HI,
i have created a User Control inheting from Button
when i add it to a from i'd like to see in the Properties Window my new Properties that i've added
to the user Control under anew catgory & not under The Miscellaneous Catgory
can anyone refer me to a good aritcle or Code Could be Fine
THANKS
Have Fun
Never forget it
|
|
|
|
|
Hi
There are Attributes to set the Description and Category of a Property. Take a look at this Article[^]
greets
m@u
|
|
|
|
|
THANKS
it's so easy
THANKS Again
Have Fun
Never forget it
|
|
|
|
|
Hello everybody,
I want to make a prog for to read and write RFID Card. Please somebody tell me what refrence to be set? OR please help me in more detail. If possible send me sample code for that in C#.
Thank You.
Dipak
|
|
|
|
|
There is no inbuilt RFID solution in C#/.NET. I implemented my own .NET classes based on my suppliers (poorly written) c API library.
Talk to your RFID supplier- they must provide an API for talking to the RFID reader.
Small angry dogs
|
|
|
|
|
|
Hi, I want details regarding Active directory Structure.
What is this Active directory Structure ?
Where can i found this in my system?
How to open this in my system?
I am using windows 2000 sp4 edition...
|
|
|
|
|
|
i have an xml file in the following format i want to read a node's text in the following manner in C# but it is not giving any thing why? and how to do that? Pls help me.
Here is my xml file ("withNsxml.xml")content:
<md_metadata xmlns="http://www.isotc211.org/2005/gmd">
<md_identification>fgdfgdfgjkfjdg</md_identification>
</md_metadata>
This is the code snippet i am using to read the text in "MD_Identification" node
XmlDocument XDom = new XmlDocument();
XDom.Load(@"F:\withNsxml.xml");
XmlNamespaceManager XMLNSMgr = new XmlNamespaceManager(XDom.NameTable);
XMLNSMgr.AddNamespace(string.Empty, "http://www.isotc211.org/2005/gmd");
XmlNodeList nodes1 = XDom.SelectNodes("md_metadata/md_identification", XMLNSMgr);
foreach (XmlNode node in nodes1)
{
MessageBox.Show(node.InnerText );
}
Thanks in advance.
|
|
|
|
|
Better if you used
Using System.XML
and use XMLReader to Read XMLElement !!!!
It will Solve your Problem !!!!
|
|
|
|
|
but i want to read the inner text of the any node specified(using xpath) in the xml file.
|
|
|
|
|
Use XMLDocument.GetElementsByTagName("md_identification") which returns XMLNodelist . Iterate through each node and print the InnerText .
|
|
|
|