Hello everbody, I created a hashtable in a file to search the contents of some database. I use the standard operations (fseek, fread etc) to access the file. Everything works ok, as long as my indexfile is read from harddisk. (There are more then 200000 entry in it and it takes less then a second to search for an specific entry). However, if i put this on cd-rom its about 2800% !!! slower. Especially if my search returns more then one result. Is there anyone around here who knows how to optimize a file for cd-rom access? Sorry for my english, what i am trying to say is: How has i file to be constructed so that it can be read from cd-rom real fast? Any help would be highly appreciated.
Gunnar Matzler
Posts
-
File Access from CD-ROM -
Problem with ASP, ODBC and IIS6GREAT! This was the solution. I didn't even think about the "NETWORK_SERVICE" user until your mail and now everything is running fine. THANK YOU VERY MUCH FOR YOUR HELP!
-
Problem with ASP, ODBC and IIS6A few days ago i moved a asp-application i created to a new server. This application connects to an access-database by using odbc. Funny thing is, that is can connect to the database and read records without problems, but whenever i try to write data in to the database i get an internal server error. On the old server everything worked ok. The datase is writeenabled and there is no password on it. The difference is, on the new server runs IIS 6. So maybe some settings have to be changed to allow me to write to the database but i have no idea what to change. I have given writeaccess to every user of my application, but this didn't make any difference. Any idea would be highly appriciated, cause i am starting to get a little desperate by now!
-
Word and MailingLabel questionTo all the experts, i am writing a application which uses Microsoft Word to print mailing labels. The Microsoft Knowledge Base Article 278260 "Howto use MFC to Automate word to print Mailing Labels" was a big help so far. I would really like to give the user of my application a list of available labels to choose from prior to printing. But i can't figure out how to get the list of available labels from word. This seems to be possible for custom labels by using the CustomLabels - object. However the MailingLabel - object provides no way to get the count or names of the available predefined labels. The only thing you can get is the name of the "last used" label using GetDefaultLabelName(). I even tried to figure out in which file these labelnames are stored to retrieve them from there but without success. Can anybody help me on how to get this list of available labels out of word?
-
Office automation questionTo all specialists, i wrote a MFC programm which starts Microsoft Word, creates a document, adds a table to the document and saves the document. I used the msword9.olb to add the needed classes to my project. The only thing that bothers me is that i have to find out what values to pass to function by "try and error". For example i want to create a table with the autofitbehavior set to "FitToContent". The tables.add function is defined as: Tables::Add(LPDISPATCH Range, long NumRows, long NumColums, Variant* DefaultTableBehavior, Variant* AutoFitBehavior) What value does this function expect in "AutoFitBehavior" to set the table to "FitToContent"? As i said, i fond out by "Try and error". But there must be a better way because there are a lot of functions where this approach will definitely not work. If anybody knows where to find some documentation like: "Set AutoFitBehavior to '2' to get 'FitToContent'" i would be glad if he could let me know. Thanks in advance.
-
how to clear a listbox controltry yourlist.ResetContent(); :cool: gm
-
SMTP - ClientHi folks, i have an environment where the server is unix and the workstations are Windows NT. Now the admin wants to send smtp-messages to the workstations. (like "i will shutdown the server in 10 seconds") i think this means i have to write small smtp-servers on all workstations which do nothing more than listen on port 25 for incoming mails, recieve them and pop them up on the screen. Anyone out there who has ever done something like this? Any help would be appriciated!:)
-
Software SecurityThank you. I was already thinking about some kind of file located on a network server. The thing with the timestamp is a good idea. Would be even better if i could use server time. I will have to figure that out. What really troubles me is the installation of such a thing. i think the user has to be admin to install the application. And at which directory should that file be stored. It should be definitely a common directory because every workstation has to access it. Every workstation should have the writeaccess to this directory. i don't think it will be the system-directory because in most cases only admin has writeaccess to the system-directory. So how do i figure out which directory to use? I can't ask the user during installation "please tell me a common directory on the network-server where i can put the secret access control file". So as always the details are killing me. any further help would be appriciated. :confused:
-
Software SecurityWhat i have to do is to limit the amount of users able to access an application over the network at the same time. The application i am talking about ist not a client server app. It's just something like a calculator sitting on a network cd-rom drive. i have to find out, how many users started this application on their workstation. If the limit of users has been reached, the next user shall not be able to start it. i have not the slightest idea how to achieve this. Could someone please give me a hint? :((
-
Software SecurityWhat i have to do is to limit the amount of users able to access an application over the network at the same time. The application i am talking about ist not a client server app. It's just something like a calculator sitting on a network cd-rom drive. i have to find out, how many users started this application on their workstation. If the limit of users has been reached, the next user shall not be able to start it. i have not the slightest idea how to achieve this. Could someone please give me a hint?