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 gkittelson 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
  • Order by date
  1. juhaka

    Retreiving data from a DataSet

    Thanks, Thomas I will familiarize with DataView, and I will affect you again, if it does not fit to my purpose. ;O) br. Juha Ka
  2. 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...
  3. juhaka

    Transaction problem (Open DataReader exception)

    Hi, again! I solved the problem by myself. The SqlDataReader object has to be closed before executing commit() -command. So, I made a wrapper class, to where the data from SqlDataReader object is copied. Then I close SqlDataReader object, then commit the database and then the wrapper class...
  4. 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 {...
  5. juhaka

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

    Hi! I found one solution for this problem by myself...I'm not sure is it the rigth (and only) one.... This is an example...please send yuor comments, if here is fatal errors. The wrapper class The header. // StringConverter.h #pragma once #include "Converter.h" using namespace System...
  6. 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
  7. juhaka

    How cai I change font color in text?

    Thanks, Chip, once again! I will try it with RichText box.... Juha Ka
  8. 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...
  9. juhaka

    Indenting xml document

    Hip hey hurrah! I found a one way to indent the data of XmlDocument -object! I don't is there any risks to do so, but it seems to work. XmlDocument doc = new XmlDocument(); doc.LoadXml(&quot;<?xml version=\&quot;1.0\&quot; encoding=\&quot;utf-8\&quot; standalone=\&quot;yes\&quot;?>&quot; +...
  10. juhaka

    Indenting xml document

    Thanks, Chip There is no need to read XML data 'manually', but only for debugging purpose. Maybe, I will write the indenting code myself later, maybe... But now, I can (have to) live with this XmlDocument -object ;O)! Thanks again! br. Juha Ka
  11. 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...
  12. juhaka

    structures in structure

    I never resolved this error. I gave up with structs and did it with classes. public class MSettings_def { public byte MFormat = 0; public byte[] MObjects = new byte[4]; public byte[] ONumber = new byte[4]; public byte Brightness = 0; } public class Rparam_def { public byte UpperPoint = 0...
  13. juhaka

    Seconds since 1.1.1970 to DateTime

    Thanks,Chiph I just found the same way to do it, but thanks anyway for your time! br. Juha Ka
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. juhaka

    WebRequest and threads cause problems

    Thanks, Alex. If I understood right your message, I have no errors in my code and this is further a recourse problem, isn't it. Or is there still a bug somewhere, like WebRequest -object? (I have installed ServicePack 2) I have watch the process with netstat and Task manager. Task Manager...
  19. 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...
  20. juhaka

    Creating an instance with given name?

    Thanks to all, now I know two ways to do that dynamically! But using reflection is easier way, I think. (Add two namespaces: using System.Reflection; using System.Runtime.Remoting; and, of course, the namespace of CFoo... .... (in the code) ObjectHandle objHand =...

Part and Inventory Search

Back
Top