Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: juhaka
  • Content: Threads
  • Order by date
  1. juhaka

    Retreiving data from a DataSet

    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...
  2. juhaka

    Transaction problem (Open DataReader exception)

    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 {...
  3. juhaka

    How to pass byte array parameter from C# to C++

    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
  4. juhaka

    How cai I change font color in text?

    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...
  5. juhaka

    Indenting xml document

    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...
  6. juhaka

    Seconds since 1.1.1970 to DateTime

    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...
  7. juhaka

    structures in structure

    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...
  8. juhaka

    Number of page faults is raising!

    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...
  9. juhaka

    How a XmlNode is added to the file?

    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...
  10. juhaka

    WebRequest and threads cause problems

    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...
  11. juhaka

    Creating an instance with given name?

    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(&quot;xxx&quot;)' -thing or that... br. Juha Ka
  12. juhaka

    Adding a new XmlNode to a file???

    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...
  13. juhaka

    How to connect to MQSeries

    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

Part and Inventory Search

Back
Top