Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Reading and writing .ini files on a remote computer.

AdjumaAdjuma Member Posts: 2
I'm trying to make a database application meant for smaller company (most as a project to test my programming skills), where you could look up a product in a catalogue, and get it's name, a brief description, price and the number of products in stock. Through this program you can also change this information. The program is working perfectly when being run on one single computer. All the data is stored in .ini files. So simply, it's all about reading and writing strings in .ini files.

Now I want to take this project one step further. I want to place my database on a server so that multiple clients on remote computers can access the data. I've been experimenting a lot with WinSock and read a bunch of articles, but I just don't seem to get it. I don't know if this is because I'm a slow learner or because I'm not a native English speaker. It might be both. I would be really thankful if anyone could bother try to explain this WinSock thing to me or maybe give me a code example of how this could be done. What I don't really understand is how you could actually send the strings from the server to the client and how you would get this working with multiple clients (if that's even possible with WinSock).

Comments

  • dokken2dokken2 Member Posts: 532
    : I'm trying to make a database application meant for smaller company
    : (most as a project to test my programming skills), where you could
    : look up a product in a catalogue, and get it's name, a brief
    : description, price and the number of products in stock. Through this
    : program you can also change this information. The program is working
    : perfectly when being run on one single computer. All the data is
    : stored in .ini files. So simply, it's all about reading and writing
    : strings in .ini files.
    :
    : Now I want to take this project one step further. I want to place my
    : database on a server so that multiple clients on remote computers
    : can access the data. I've been experimenting a lot with WinSock and
    : read a bunch of articles, but I just don't seem to get it. I don't
    : know if this is because I'm a slow learner or because I'm not a
    : native English speaker. It might be both. I would be really thankful
    : if anyone could bother try to explain this WinSock thing to me or
    : maybe give me a code example of how this could be done. What I don't
    : really understand is how you could actually send the strings from
    : the server to the client and how you would get this working with
    : multiple clients (if that's even possible with WinSock).
    :

    In my opinion, using ini files is not the best platform for a multiuser database. how would handle record file locking, what if two users try to access/write to the same file/record? you should be using a database, either ms access or sql server (there is a free express edition). then use access, vb, or asp to build the client to connect to the data.
  • AdjumaAdjuma Member Posts: 2
    : : I'm trying to make a database application meant for smaller company
    : : (most as a project to test my programming skills), where you could
    : : look up a product in a catalogue, and get it's name, a brief
    : : description, price and the number of products in stock. Through this
    : : program you can also change this information. The program is working
    : : perfectly when being run on one single computer. All the data is
    : : stored in .ini files. So simply, it's all about reading and writing
    : : strings in .ini files.
    : :
    : : Now I want to take this project one step further. I want to place my
    : : database on a server so that multiple clients on remote computers
    : : can access the data. I've been experimenting a lot with WinSock and
    : : read a bunch of articles, but I just don't seem to get it. I don't
    : : know if this is because I'm a slow learner or because I'm not a
    : : native English speaker. It might be both. I would be really thankful
    : : if anyone could bother try to explain this WinSock thing to me or
    : : maybe give me a code example of how this could be done. What I don't
    : : really understand is how you could actually send the strings from
    : : the server to the client and how you would get this working with
    : : multiple clients (if that's even possible with WinSock).
    : :
    :
    : In my opinion, using ini files is not the best platform for a
    : multiuser database. how would handle record file locking, what if
    : two users try to access/write to the same file/record? you should
    : be using a database, either ms access or sql server (there is a free
    : express edition). then use access, vb, or asp to build the client
    : to connect to the data.

    Ok, thanks for the tip. I'll look things up.
Sign In or Register to comment.