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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
B

Bryster

@Bryster
About
Posts
9
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • re: Problems with Progress Bar
    B Bryster

    Unfortunately this has not solved the problem. Thanks for trying.

    C / C++ / MFC help question

  • re: Fast Searching...
    B Bryster

    Thank you, that sounds like a good idea.

    C / C++ / MFC algorithms regex help question

  • re: Fast Searching...
    B Bryster

    Thank you, I will have a look at these.:-D

    C / C++ / MFC algorithms regex help question

  • can not delete a file
    B Bryster

    Hi I was just looking at your problem and why not try someting completely different. You could create a batch file which deletes the files within a folder. 1. Create a new text file for writing to (say on your c:\) with the extension of ".BAT" 2. Write to that file the path of the directory you want to delete, fprintf(cfile,"del %s\*.*",pathname) 3. Close the file 4. Using the SPOOL command run the file. Just a quick solution to your problem. Bry.:-D

    C / C++ / MFC com help question

  • re: Fast Searching...
    B Bryster

    Hi Here is the Problem: To access a Datafile which contains 26 Million addresses and find a given address. The Datafile is an ascii text file and is fixed What I have come up with: 1. Sort the 26 Million addresses into Postcode order. (I have application for this) 2. Using FSEEK look at the MIDDLE of the file and compare using STRNCMP the POSTCODE for searching, against the POSTCODE within the Datafile. 3. Using the result move the file pointer backwards from the middle (half it) or forwards and keep checking until a match is found. This will loop for roughly 24-25 times and not 26 Million. Is there a better way?

    C / C++ / MFC algorithms regex help question

  • re: Problems with Progress Bar
    B Bryster

    Hi I have recently upgraded from Windows 2000 to Windows XP Professional and have noticed that when I run my applications the progress bar stops and the application looks as if it has crashed, but after a while finishes. I have Mcafee Virus protection running in the background, is this causing the problem? The code is a simple "UpdateData(FALSE)" instruction after setting the ProgressBar.SetPos() which is looping until an EOF instruction. Any Ideas? Thank you in advance Brian.:doh:

    C / C++ / MFC help question

  • SetTimer ?
    B Bryster

    I am not sure if this will help, but does this "lengthy process" have a DO/FOR/WHILE loop? If so the task is fairly straight forward. Here is an example of a ProgressBar function: void CMyDialog::ProgressBar() { int percentage=0; //variable initialisation char temp[100]; // //The following line will calculate the Progress bar percentage //The "Records" is a global UINT which increments each time through the loop //The "TotalRecords" is the total number of Records in the loop percentage=(int)(((float)Records/(float)TotalRecords)*100.0); //"m_Progress" is the variable attached to your dialog //This will set the position of the progress bar depending on the percentage m_Progress.SetPos(percentage); //This will update the "m_Progress" variable with the new position UpdateData(FALSE); } Call this function every time you wish to update the progress bar. Dont forget to update the "Records" variable before calling this function. Hope this helps. :)

    C / C++ / MFC help question

  • Drag and Drop Application
    B Bryster

    I am trying to create an application that will take an ascii text file when dropped onto its Icon. The application needs to be able to open this file for reading and then create a new ascii text file for writing. Can anyone help. Kind regards in advance.:sigh:

    C / C++ / MFC help

  • Mix casing a name field
    B Bryster

    I am currently writing a program to convert an ascii text file into upper/lower case text. The file contains names and addresses, the problem I am having is on the name field. I need to identify if the name is a "special case", ie MR JOHN O'BRIEN -> Mr John O'Brien. There are many examples where this sort of thing happens, can anyone suggest a way of identifying these cases? Brian Reffold Programmer Brown Knight & Truscott

    C / C++ / MFC help 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