Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Rein Hillmann

@Rein Hillmann
About
Posts
118
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WEB services
    R Rein Hillmann

    Web services run in the IIS process and can only be executed within this process. What you're looking to do is called Remoting but it does not use Web Services.

    C# wcf sysadmin

  • Unicode question
    R Rein Hillmann

    Multiply the string's length value by 2. However, this is NOT indicitave of the amount of memory used by the string (length prefix etc). To get a C++ representation of what the unicode string, you will probably want to convert the string to an array of short and manipulate it like that. Use the System.Text.Encoding namespace to convert the string to and from a short array.

    C# tutorial question csharp c++

  • I realy need help
    R Rein Hillmann

    Having quickly looked at the code.. I changed the following: 1) You don't want to clone the dataset since you won't be updating the one that is linked to the control. Change the line this.DS= addRCDataSet.Clone(); to this.DS= addRCDataSet; 2) I modified the whole button1_click() method to: private void button1_Click(object sender, System.EventArgs e) { object[] values = new object[1]; values[0] = textBox1.Text; DS.Tables["test"].Rows.Add(values); } This just seemed a lot simpler to me - your earlier method was giving me problems.

    C# help graphics docker

  • Registry and Eventlog!!!
    R Rein Hillmann

    You can read and write to certain areas of the eventlog and registry even if you are not logged in as an administrator. For registry you can always read and write to HKEY-CURRENT-USER. With the event log only administrators have access to the Security Log. Does this help a little?

    C# windows-admin help question

  • I realy need help
    R Rein Hillmann

    There are two quick solutions: 1) Add the following line to AddRc(): test.TableName = "test"; 2) OR change the following line in button1_Click() DataTable Dtable = DS.Tables["test"].Copy(); to DataTable Dtable = DS.Tables[0].Copy(); Essentially you're trying to reference a table called test which does not exist (even though the object you created was called test - it does not mean the table name will be set to "test").

    C# help graphics docker

  • a FUNCTION 2 CALCULATE SECONDS since time struck 12
    R Rein Hillmann

    Assuming you're only using 12 hour clocks and not 24 hour: return (hour*60*60) + (minute*60) + second; If my assumption is incorrect then you simply need to subtract 12 from hour if hour >= 12. As for the second part - call the function twice and then take the absolute value of the difference of the two times.

    C# help tutorial

  • Fastest way to read entire file into memory
    R Rein Hillmann

    Are you doing ifstream::read()? What is the length of the data block you are reading? Try increasing the size of the chunks you read if it's reading too slowly. Reading 1 byte at a time is incredibly slow but reading 1MB at a time will be really fast.

    C / C++ / MFC performance

  • Concurrency
    R Rein Hillmann

    Do a search in SQL Books Online for "transactions". More specifically: begin transaction commit transaction and rollback transaction

    Database csharp question database help announcement

  • Inserting Rows...
    R Rein Hillmann

    It's not the insert that gets truncated, it's the select from the table. In Query Analyser set the following option: Tools->Options->Results->Maximum Characters Per Column=8000 By the way, you can see how much data is in the column by using the datalength() function.

    Database database json question

  • DataTable
    R Rein Hillmann

    Here's a statement that uses less overhead since it won't require any kind of table-scan or index lookup: SELECT * FROM Employees WHERE 1=2

    Database database question

  • Empty recordset
    R Rein Hillmann

    select * from tablename where 1=2

    Database question algorithms tutorial

  • best approach for storing login info
    R Rein Hillmann

    Storing (and ESPECIALLY retrieving) a password is never secure. Why would you want to retrieve the password from a file? You should never have to retrieve a password, it should always be given to you by the user.

    C# question database sysadmin xml json

  • Getting an intersect of a color
    R Rein Hillmann

    Yeah, it's pretty much the same thing. (Ra + Rb)/2 = Ri (Ba + Bb)/2 = Bi (Ga + Gb)/2 = Gi It makes sense since if you intersect a red line (255,0,0) with a black line (0,0,0) then the result should be a darker red line (128,0,0)

    C# tutorial

  • Getting an intersect of a color
    R Rein Hillmann

    Treat each color value as a percentage 0=0%, 255=100% So, a certain color might be (20%, 30%, 90%) in RGB if you want to intersect that with another color (100%, 60%, 0%) the intersection will be the averages: (60%, 45%, 45%) Make sense?

    C# tutorial

  • Noob sql
    R Rein Hillmann

    SQL is a generic term for a language used to comunicate with a database. That language can vary from various SQL databases. There is no "compiler" as there is in C++. Choose your database software and then learn the associated SQL syntax that goes with the database software. Some Free database software: ---------------------------- MSDE (Microsoft Data Engine) MySQL PostgreSQL Some Non-Free software: ----------------------- Microsoft SQL Server Oracle DB/2 Once you've chosen your database software that you'll need to search online for some SQL primers. There are tons of sites which will cover the basics of SQL programming.

    Database c++ database question learning

  • Copying data to bytes for sockets
    R Rein Hillmann

    Assuming you have a string: string dataToSend = "lotsandlotsandlotsofdata"; Byte[] buffer = System.Text.Encoding.ASCII.GetBytes(dataToSend);

    C# question c++

  • How do I use WSAStartup() in C# ??
    R Rein Hillmann

    Any reason why you're not using the System.Net.Socket class?

    C# question csharp help

  • Operator overloading with strings
    R Rein Hillmann

    I'm curious. Assuming you could overload this operator, what would you do with the following code: string1 = "12"; string2 = "10"; string3 = "abc"; string3 = string1 + string2 + string3; Would you want this to be "22abc" or "1210abc"? There's a good reason not to do this - it's confusing for developers maintaining your code. Personally, I think you should either create a new class and overload or you should just continue using the Add() method.

    C# help question

  • Thread doesn't start with VS .NET 2003
    R Rein Hillmann

    Please post some code.. It'll be easier for us to help you.

    C# linux csharp visual-studio question workspace

  • Changing a form's title
    R Rein Hillmann

    Form1 isn't an object. It's a class. asdf is an object (instance of a class). You need to change the text on asdf, not on Form1 and you can't do that unless you have a reference to asdf. You might need to enumerate all the forms until you find the one you want or you could pass a reference of the form to control.cs so that you can manipulate it later.

    C# question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups