|
You need to work out architecture you need for your situation. The WebAPI stuff I suggested will work. The problem is the synchronisation. Instant synchronisation is impossible, the latency introduced by the network sees to that. O
You need to decide whether you need updates in near-real time (e.g. at save or even edit) or when complete (e.g. when the user syncs). The first, fully collaborative approach is going to be hard: you could designate a server which holds the document and actually edits, and have the updates in near real-time so that the clients act as dumb-terminals in effect. The second approach is easier: you upload the doc and update a timestamp, the clients are either informed about this (better) or they get the document on a polling interval (a good half-way house approach is long-polling: you can Google for this) which sends documents newer than the last poll.
In either case either a web api or a WCF service could be of use, but you aren't going to have 100% instant sync and you will have concurrency problems. WCF has a bonus in that it can run peer-to-peer bu orchestrating across machines is going to be hard, so I think your client(s)/server approach seems good.
“Education is not the piling on of learning, information, data, facts, skills, or abilities - that's training or instruction - but is rather making visible what is hidden as a seed” “One of the greatest problems of our time is that many are schooled but few are educated”
Sir Thomas More (1478 – 1535)
|
|
|
|
|
Rares T wrote: After a change is done ( create,edit,delete) there must be a kind of synchronization between the clients through the server so that no matter what client we work on (the server could also have a client app installed) , the list of files would be the same at any time. If you're using the same database on the server, you'd have the same list of files. The server will not "inform" all clients that the list has changed though.
Rares T wrote: Provide a way to connect your mobile phone to the server and read all the data in the database if necessary + access all the documents. What type of documents? What does "access" mean in this context, is it just "displaying" a document, or would one need to be able to edit a PDF document on a phone?
Rares T wrote: I also had the idea to store everything in the database (data + files) but I don't think this is the best option because there can be almost 100 mb of new files created each day and database backups need to be done every day. I'm all in favour of putting files in the database; simply exclude the table from the backup, or put it in it's own database.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
How to Protect the dll or exe Code
|
|
|
|
|
Try an obfuscator - it will protect nothing, but may satisfy your requirements anyway.
|
|
|
|
|
harold aptroot wrote: it will protect nothing, but may satisfy your requirements anyway.
Oh you cynic you. But Yes.
“Education is not the piling on of learning, information, data, facts, skills, or abilities - that's training or instruction - but is rather making visible what is hidden as a seed” “One of the greatest problems of our time is that many are schooled but few are educated”
Sir Thomas More (1478 – 1535)
|
|
|
|
|
kalyanacvk wrote: How to Protect the dll or exe Code By not distributing it. Anything that's released, can be broken (given enough resources).
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I want to get the coordinate of the controls in the game ,is there any way except color detection.I want to make a simple bots please help me
|
|
|
|
|
Nope. You're essentially taking a screen shot of the flash game and going image manipulation and OCR to get the data you want.
Flash doesn't use controls that your code can get to.
|
|
|
|
|
Maybe it's not a good idea to simulate mouse_click by clicking the controls location ,right?
most web game bots using simulate data pack to make the bot ,yes?
|
|
|
|
|
|
Thank u very much,you helped a lot
|
|
|
|
|
Hi
I have an access database and i want to make this setup.
This setup will be install in a laptops or in a servers.
There are different ways to do this? and how can i make access database setup?
this database will be used from my c# project that i also make
setup.
I also understand that i must make database setup because when i try to run my project setup an error has occurred.
the error is :
---------------
Execute reader requires an open and available connection.The connection's current state is closed.
|
|
|
|
|
That error has nothing to do with creating a setup for the database. You don't have to make a seperate setup for the Access database. It's just a file.
That error means that you tried to use a connection to the database that you never opened. You have to open the connection and THEN you can read from it. It's a bug in your code...
|
|
|
|
|
i solve the error. i must include in my application folder the access file now it's ok ..
i have another question:
If i want to run my project access database from a server i have to make more work about it?
|
|
|
|
|
You can NOT put the database in the application folder under Program Files. Everything under Program Files is readonly by default. Admins don't like giving write permissions to anything under that folder.
Put your database in a more suitable location.
But, no matter where you put it, you'll have to change your applications connection string to tell it where to find the file.
If this is going to be a shared database used by more than one person, you really do NOT want to use an Access database.
|
|
|
|
|
the database will be use by minimum 3 person but this is not my decision i only follow instructions
from others.
because i don't make setup in previous times that must be in a server,
it is my first time.
Can you please tell me or give me some examples about how make setup access database that have to be save in a server??
thnx
|
|
|
|
|
There's nothing to setup for an Access database. You just copy the .MDB file to wherever it needs to go.
|
|
|
|
|
Let me add some reinforcement to Dave, DO NOT USE ACCESS AS A SERVER database, convert to SQL Server. Access is a single user database, Microsoft states this in the documentation. You should not be using for shared data. BTW SQL Server express is FREE, no charge unless you require more than 4gb at which point you need to get a server licence.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
It really depends how your application is connecting your .MDB?
If your application assumes the ms access database to be a specific folder like Application Installation folder, then you can follow below link <a href="http://vijirajkumar.blogspot.in/2010/03/create-setup-and-deployment-project.html">http://vijirajkumar.blogspot.in/2010/03/create-setup-and-deployment-project.html</a>[<a href="http://vijirajkumar.blogspot.in/2010/03/create-setup-and-deployment-project.html" target="_blank" title="New Window">^</a>] and to attach your 'Access' database: In the figure 4 of above tutorial -> right click on 'Application Folder' -> select 'File...' and then search the *.mdb file on your hard disk. When you compile (Debug or Release) it will copy the database to the App Folder.
While installation it will be copied to user’s application installation folder (i.e C:\Prog Files\xyz…)
|
|
|
|
|
zebra88 wrote: this database will be used from my c# project that
MS Access requires that the OS must have file level access to the database file.
So if you want 3 people (three different computers running the client app) to use it then all three of those must have the file viewable via Explorer.
|
|
|
|
|
Hi All
1. I have GridEX which bound to DataSet
2. One of the column is ceckbox cloumn
3. I fileter one of the column (not the ceckbox column) by the header column and I see the correct data in the Grid
4. I want to checked only the filtered record (the record which shown in the grid) how can I do it?
until now I Loop on all of the records in the dataset and checked all the records and finally refresh the grid
any advice
Thanks
|
|
|
|
|
I get the basic parts of incrementing and decrementing a variable by one.
Maybe because I'm not quite thinking like a programmer yet, is why I don't understand this code below.
"Console.WriteLine(y); // result = 99 — The value of y after" - this is what's confusing me. How do you get 99 when there is no loop?
And
doesn't 100 become 99 before you add it to 10?
Of course after compiling this, it worked. It came from a book from BrainMeasures dot com. They said the book was even for novices (PSSH)
Dummy it down for me quite a bit please. LOL
<pre lang="c#">using System;
class ArithmeticOperators
{
public static void Main()
}
int x = 10;
int y = 100;
int z = y-- + x;
Console.WriteLine(z); // result = 110
Console.WriteLine(y); // result = 99 — The value of y after
// decrementing
z = --z + x;
Console.WriteLine(z); // result = 119
}
}</pre>
<a href="http://www.widmarkrob.com">My Coding Journey</a>
|
|
|
|
|
WidmarkRob wrote: How do you get 99 when there is no loop
Why do you think that you would need a loop to add or subtract anything?
WidmarkRob wrote: y--
The '--' is a post decrement operator that is what is decrementing 100 to 99.
|
|
|
|
|
y = 100;
Also when the console.writeline(y);
that should be 100, shouldn't it?
It is declared at 100.
I would probably understand the answer if it was written like this "console.writeline(y--);
<a href="http://www.widmarkrob.com">My Coding Journey</a>
|
|
|
|
|
WidmarkRob wrote: It is declared at 100.
Yes the initial value is 100, did you see the y--? As you were told, the -- is the decrement
operator that makes y 99. The -- is short hand for y = y - 1.
|
|
|
|