Hi!
I got (in my software) a large DataSet object via a WebService. The DataSet contains many DataTables, and it is well structured with primary - and foreign keys and relations. It is like a virtual database (I think, this is the main idea of DataSet!).
But how can I retreive data from it...
Hi!
I have done a database handler class (named MyDBConnection). My base idea was, that via this class I could execute all my database jobs (INSERT, SELECT and UPDATE prosedures). (see code, this is very stripped version, but here should be all essential parts.)
class MyDBConnection
{...
Hi!
Now I have a need to pass byte array (byte[]) parameter from C# component to C++ component (and vice versa). So, I have an old C++ component, which have a function like unsigned char* encode(unsigned char* arrBytes). I thought, that I will do a wrapper class for it, but how...
JuhaKa
Hi!
I'm just writing a very simple XML editor. I have a TextBox instance as a editing panel. How can I change the color of tags? My goal is, that when I press '<' -key (in TextBox), this and the next characters would be blue, and when I press '>' -key, the next characters would be black again...
Hi!
Is there any way to indent xml in XmlDocument object?
I have a xml document in XmlDocument object, and there is no whitespaces. When I print it (to console), it is hard to read. I think, indenting the document makes it much more readable.
XmlTextWriter class has a property called...
Hi!
My program gets a timestamp (4 byte integer), which is seconds since 1.1.1970 00:00 UTC. What is the easiest way to convert the timestamp to DateTime -object? There must be some ready method for it!? But I haven't found any :O(...
Or must I do a DateTime -object for base time (1.1.1970) and...
Hi, again!
How can I make a new structure, which contains others structures?
I have two structures, which contains only native types (byte, uint) and I have a need for a new structure, which contains these my own datatypes (structures).
[ StructLayout( LayoutKind.Sequential )]
public struct...
Hi!
I'm running my program (actually Windows service) made by C#. I trace it with Task Manager, and I noticed an odd thing. Mem Usage, VM Size, Handles and Threads are static (without 'normal' raising and shrinking), but number of Page Faults is raising all the time. When I started the service...
Hi!
How can I add a single node to the end of an existing file? I have a log writing component, where a new log event(XmlNode) is added to the log(XmlDocument) and then the log is written to the file. But this is too heavy way, because the size of the log can raise up to MBs and new log events...
Hi again!
One problem solved, a new one occurs...
I have an application, which reads and writes to a website periodly every 5 seconds. I'm using (Http)WebRequest object. The application makes about 1200 successful read and write -process, but after that an error occurs. There were not enough...
Hi!
I have several classes, which inherited the same class and implemented the same interface. And now I want to define in runtime, which instance is created (the name of the class is given in a setting -file).
How I do it? Is there 'Class.forName("xxx")' -thing or that...
br.
Juha Ka
Hi!
How can I add a new node to a existing xml -file? XmlNode -class has a method, AppendChild(XmlNode node), but I can't create a new node (XmlNode newNode = new XmlNode()), because XmlNode is a abstract class. But there must be some way to create a new node...? How could I do it? Please, tell...
Hi!
I'm just a beginner with C# and Visual Studio. But now I'm starting my first 'project'...
How I could connect to MQSeries to specified queue? What components I need and how I do it in my code? Or where can I get samples?
br. Juha Ka
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.