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. emperorevil

    Combining queries to increase efficiency

    Here's the situation: It's a simple news script, which is based off of a forum, all in one table. The first column is forumid, which is always 1. The next is topicid, which is different for each news post. The postid is 1 for each topicid for the main message, and continues on for each reply to...
  2. emperorevil

    MySQL probelm with PHP

    HOW ABOUT running actual queries? $query="DROP TABLE IF EXISTS guestbook_display"; mysql_query($query); CREATE TABLE guestbook_display ( displayid int(1) unsigned NOT NULL default '1', status varchar(6) NOT NULL default '', email varchar(150) NOT NULL default '', name...
  3. emperorevil

    Executing included file with command line parameter

    Thanks a lot! But, what I meant to say is how would I do it if it was all going to be one file. Like including file.exe within the application and running it with TestPlay. That's what I meant by minimal space.
  4. emperorevil

    File "description"

    ...and found nothing. Does this have any significance whatsoever?
  5. emperorevil

    Executing included file with command line parameter

    Here's what I need to do: There's this program that runs differently from executing it regularly and when you run it from a command line with the parameter TestPlay. What I want to do is make another application that will automatically run file.exe as if it were executed with the TestPlay...
  6. emperorevil

    Drawing in Dialogs Windows

    why not make it a bitmap and use that
  7. emperorevil

    File "description"

    i checked there
  8. emperorevil

    getting certain filenames in directory

    How can I get a list of filenames in a directory that fit a "template." Example (this is the actual program): The user types in some text in a text box on a dialog box. He/she types in "Map####.lmu". And now I want to get a list of all the files that start with...
  9. emperorevil

    File "description"

    Ever notice how when a server displays a directory in your browser, it shows a column called "description" but its never filled in? Is there a way I can edit and read file descriptions?
  10. emperorevil

    Searching for a string in a file

    NEVERMIND again, I forgot that I don't think I need special code to read and write files -_-
  11. emperorevil

    Searching for a string in a file

    Okay, now, how would I go about reading and writing(overwriting) within a specific location this way?
  12. emperorevil

    Searching for a string in a file

    nevermind I was able to make it work by changing DWORD FindStringInFile( char *pFileName... to LPCTSTR pFileName, and then converting the CString variable, m_dir, which holds the directory of the file being searching that was inputted by the user, into a LPCTSTR. LPCTSTR...
  13. emperorevil

    Searching for a string in a file

    HURRAY! It works! Just one more problem though.. Since my program is on a dialog box, and the text the user inputs is in a text box, and that data is stored as a CString.. How do I convert a CString into a character array and in vice versa?
  14. emperorevil

    Searching for a string in a file

    Would you mind giving me some code i can work with? I'm a beginning Visual C++ Programmer..:(
  15. emperorevil

    Searching for a string in a file

    no.. that all works.. its something wrong with the actual file. The actual file is a .exe and i tested it with a regular text file with the contents "fdjstringkj" and it came out true, but when i try the exe file, which has the string, it doesnt come up! It must be when the char...
  16. emperorevil

    Searching for a string in a file

    so how would i go about changing a char[] into a CString?
  17. emperorevil

    Searching for a string in a file

    The problem must be in converting the contents of the file into a CString
  18. emperorevil

    Searching for a string in a file

    How would I go about seeing if a certain string is in a file? I tried reading the file, turning it into a CString by doing: CString file2(file); then trying check=file2.Find("string"); the file has the string "string" in it, but it always comes up as not finding it.. can...
  19. emperorevil

    Opening Default Browser

    Thanks!

Part and Inventory Search

Back
Top