Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. djones7936

    Program Memory usage problem

    Hi FloViel, I think you are right. There has to be a memory leak problem someplace. I ran a test program which, allocates about 100 MB of memory, then deallocates it. It does that 4 times. The memory monitor rose and fell as the program ran, as it was suppose to, and all of the memory was...
  2. djones7936

    Can anyone check this?

    I would probably have one main while loop. while(move<63) then use if statements to check to see if the piece is within the boundaries, and if the next space is available. Where each statement says break (the knight can't move to the given position), instead of exiting the while loop, you could...
  3. djones7936

    Can anyone check this?

    Hi, The program's not perfect, but it runs. When you access arrays, remember to start with 0 and not 1. If you make an array of size 2, then you access the elements 0 and 1. int testarray[2] = {16, 25}; testarray[0] is 16; testarray[1] is 25; testarray[2] is out of bounds (error). There...
  4. djones7936

    Issue with Classes

    What variables do you pass from the Winmain function to the constructor, and from the constructor to the private function? -Dave http://home.attbi.com/~djones7936/index.htm
  5. djones7936

    Program Memory usage problem

    Hi I have a weird problem. I have a program that loads about 20-30MB worth of arrays using the new operator, the program does some processing, then it uses the delete operator to release the all of the said memory that was allocated. My understanding is the delete operator unallocates memory...
  6. djones7936

    Really quick question: Templates

    I see, Correct me if I'm wrong, When I include <.h> (standard .h files), the .h file refers to already compiled code which is stored in a &quot;.lib&quot; file. When I include &quot;.h&quot; (my custom made .h files), it refers to already compiled code in an .obj file. (The corresponding...
  7. djones7936

    Really quick question: Templates

    Thank you Mongoose, The .cpp extension works. That's weird. When I deal with classes without templates, (and as with most cases in C++) files are #included with &quot;.h&quot; extension. The class's source code is in a .cpp file, but it is still accessible from other files (such as main.cpp)...
  8. djones7936

    Really quick question: Templates

    Does anybody know why template code will not compile unless the class declaration and actual class code is in the same file? In other words, if I separate the class into two files .h(header) and .cpp (source file), the code does not run. Here is an example of that I'm talking about. I've tried...
  9. djones7936

    Copying Files in C#

    Hi Kenny, I thought you might want that. I made a subroutine that does just that. Settle in, this will be a long one... ;-) Getting all the files in one directory is one thing, but getting all the files in all the subdirectories is another thing. There is a function called...
  10. djones7936

    Copying Files in C#

    I forgot to add string[] test; at the top of the code. It creates an array of strings with the name &quot;test&quot;. A filename is stored in each element of the array. -Dave http://home.attbi.com/~djones7936/index.htm
  11. djones7936

    Copying Files in C#

    Hello Kenny, I was able to copy an entire directory of files over to another directory using this code: test = System.IO.Directory.GetFiles(&quot;C:\\test1&quot;); foreach(string t in test) { System.IO.File.Copy(t, &quot;f:\\test2\\&quot; + System.IO.Path.GetFileName(t) ); //TextBox...
  12. djones7936

    Difference between SPAN and DIV tags?

    Here is an example: <html> <span style=&quot;background-color:lightblue&quot;> span </span> <span style=&quot;background-color:lightgreen&quot;> span </span> <span style=&quot;text-align:center;background-color:pink&quot;> span </span> <div style=&quot;background-color:yellow&quot;>...
  13. djones7936

    Monitor turns off after reboot &amp; does not come back

    Hi jabz, For the TV-out, I noticed the video card didn't detect my older monitor. My old monitor wasn't plug n play ready and didn't have any of the new monitor certifications. I used a newer monitor and never had the problem again. When you plug a plug n play monitor into a computer for the...
  14. djones7936

    Help! - problem with import random

    I figured it out! Your py project files can't have the same name as Python's module files! (Heavenly hymn) Ooops I tried running a code example from the Internet in the same folder that my random project (random.py) was residing. The example tried importing my project(random.py) rather than...
  15. djones7936

    Monitor turns off after reboot &amp; does not come back

    Does the video card have TV-Out or two monitor option? I had a video card that kept switching to TV-out rather than monitor-out at boot up for some reason. -Dave http://home.attbi.com/~djones7936/index.htm
  16. djones7936

    New system seems slow

    Since it has PC2100 RAM I assume it has 266mhz FSB speed. That is the most common speed that needs to be changed. Many mobos come with clock frequency with a default setting at 100mhz. Setting a jumper or BIOS setting can change it to 133mhz. (266mhz bus) Make sure your CPU multiplier is set...
  17. djones7936

    Hard Drive going out?

    I would goto http://www.ibm.com, go to their support section and find their hard drive diagnostic software. I believe it's called Drive Fitness Test (DFT). http://www.storage.ibm.com/hdd/support/download.htm After it downloads it, it will probably takes one floppy disk. You boot your computer...
  18. djones7936

    whats my soundcard?

    I have an EPOX with Avance on-board sound. If you have a card, then I would look for any information on the card: make, model number, chipset information. Maybe ALC### or ALS### on one of the chips, (# is a digit). If you can find that, I would goto http://www.avance.com/ - Drivers - Graphics...
  19. djones7936

    Help! - problem with import random

    Hello, I'm new to Python. When I open a fresh shell and type: >>> import random >>> print random.random() the code works. If I put those same two lines into a .py file and try to run the program (both from the command line or from a new window in Python's shell), I get an error message...
  20. djones7936

    Limitations of Microsoft .NET Framework

    Hi haroonkhalid, .NET runtime works with Windows 98/ME/2000/XP and NT4 SP6a. Windows 95 isn't supported. Here is a link to .NET Framework Frequently Asked Questions [http://www.eponymous.eclipse.co.uk/dotnetfaq.htm] where I got the information. Section 1.6 includes information about which...

Part and Inventory Search

Back
Top