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: *

  • Users: PSkYiClHlOeDrIC
  • Order by date
  1. PSkYiClHlOeDrIC

    RIAD 1 vs RAID 5 Which Should I choose?

    Can't you go RAID 5+1 with hardware, have 3 disks in a RAID 5 configuration and 3 others mirrored off the first three. This way if 2 disks fail you can use the mirror set. (that is, if RAID 5+1 is possible) Best Regards, Nathan Martini Advanced Computer Solutions
  2. PSkYiClHlOeDrIC

    I want to do something like: [code

    Try this code. The function InStr searches one string for the existance of another. If (InStr(1, stuff, "http://")) Then MsgBox stuff & " is a website" Else MsgBox stuff & " is not a website" End If This should do the trick for ya. This...
  3. PSkYiClHlOeDrIC

    How to find a Number In a String

    Try this function, there's no need for loops, or brute force! Private Function FindNumber(ByVal Msg As String, ByVal Search As Long) As Long Dim Found As Long Found = InStr(1, Msg, CStr(Search)) If (Found <> 0) Then FindNumber =...
  4. PSkYiClHlOeDrIC

    XP Password char

    Well, I don't see any difference from this password char than the XP version, except that the textbox itself is rounded on the edges! The characters are the same, I've checked it both on 98 and XP. 98's is * and XP's is a dot. Place a textbox on a form and make the font Symbol and bold, maybe...
  5. PSkYiClHlOeDrIC

    XP Password char

    Try setting the text box's font to Symbol and Bold. Then put your password routine in the keypress event and make sure you make KeyAscii = 183 (183 is the ascii number for the dot). Try this and let me know if it works for ya. Best Regards, Nathan Martini Advanced Computer Solutions
  6. PSkYiClHlOeDrIC

    kernel32.dll

    Well, I'm not sure if this is what you're talking about but here goes, the functions are actually called Process32Next and Process32First. Visual Basic API Declareation: Private Declare Function Process32Next Lib &quot;KERNEL32.DLL&quot; (ByVal hSnapshot As Long, ByRef lppe As LPPROCESSENTRY32)...
  7. PSkYiClHlOeDrIC

    Hot CPU

    Why don't you try a program called BurnIn Test made by Passmark, it tests all hardware from memory to hard drives in an infinate loop. It does tests like 2d graphics, 3d graphics, memory reading and writing, hard drive reading and writing, math functions and various CPU functions. That should...
  8. PSkYiClHlOeDrIC

    Unresolved external 'DirectDrawCreate'

    make sure you are including the ddraw.lib as well as the ddraw.h and initguid.h files. Make sure these are included in your source file: #include <initguid.h> #include <ddraw.h> Make sure this is included in the Project > Settings > Link tab: Where it says this half way down the properties...
  9. PSkYiClHlOeDrIC

    bits

    Bits are used to hold information... a bit is either 1 or 0, a byte holds 8 bits, for example: 1 byte = 11111111 So, for speed and size sake, lets say we have a game with 2 enemies and we want to store their states (ie. dead, rest, visible etc..) we would normally need 3 boolean or int values...
  10. PSkYiClHlOeDrIC

    how to count words in a text file?

    I'm at work so I need to be quick about this... Set up a variable for a count, set up a while..do loop to read each byte until the EOF. for each byte it reads compare it with the bytes stored in a char array. if the first byte in the array matches the byte in the file, then read the next char...
  11. PSkYiClHlOeDrIC

    Control over each pin of the printer port

    I'm not sure if this is what you are looking for, but it is possible to control the stream of data going to the port in, I believe, 8 byte packets. In this case you can control each bit in the packet. As far as controlling each individual &quot;pin&quot;, I'm not quite sure that is possible...
  12. PSkYiClHlOeDrIC

    Fast way to trim trailing whitespace

    I'm working on something for that right now, but in the mean time let me get some more information from you. Are you getting the string from user input, where there would automatically be a '\0' appended or from elsewhere that a '\0' would not be appended? Is it possible that you can append a...
  13. PSkYiClHlOeDrIC

    How do I read and write integers to a file from an array?

    Here is just some code I'm going to throw at ya, just to give you an idea of what you could do. #include <fstream.h> fstream *File; struct foobar { char character; int x, y; }; int main(void) { foobar *fubar; fubar->character = 'A'; fubar->x = 1; fubar->y = 2...
  14. PSkYiClHlOeDrIC

    Flashing Screen Display

    OK!!! This is where your problem is... I don't know how to correct the problem, but I can give you a quick &quot;fix&quot;. The icon (shortcut) that you or whoever made, is set to automatically go into fullcreen mode. This is the mistake because Windows NT doesn't like this. This is what you...
  15. PSkYiClHlOeDrIC

    Flashing Screen Display

    When you run your program does it show this Excuse my sloppy ASCII drawing |----------------------| | [COLOR=red]_____ _____ [COLOR=white]| | [COLOR=red]| |--- \ / | [COLOR=white]| | [COLOR=red]| |--- | | [COLOR=white]| | [COLOR=red]| |--- / \ |...
  16. PSkYiClHlOeDrIC

    Flashing Screen Display

    Cut and Paste your code here so I can take a look at it.
  17. PSkYiClHlOeDrIC

    dice game

    It depends on what exactly you want... Your question is very vague and can have a whole slu of answers. But, here's my stab at it. You need a variable for the total amount won, and a variable for the wager. Roll the dice and if the user won, add the wager*2 to the total won. Without specifics...
  18. PSkYiClHlOeDrIC

    printf in a WinMain?

    This is kind of a cheap... really cheap and not recommended work around for this. Keep in mind that there probably is some way to do this from within WinMain. However, I don't have my compiler here and can't test anything so I'm just giving an example of something to try. Create 1 MS-DOS based...
  19. PSkYiClHlOeDrIC

    Flashing Screen Display

    Are you using cprintf() instead of printf()?
  20. PSkYiClHlOeDrIC

    Flashing Screen Display

    Make sure you are in fullscreen, not just maximized! I've tested your code and the code I posted on both my Windows 98 machine and my Windows NT machine at work. Both worked in fullscreen, but did not in maximized or windowed mode. To get to fullscreen you need to run the MS-DOS prompt or Psuedo...

Part and Inventory Search

Back
Top