...So I would count the number of posts in the news forum for that topic by placing this inside the while() loop:
-------
$query="select count(*) from posts where forumid=1 and topicid='$row[1]'";
$result=mysql_query($query);
$numofreplies=mysql_fetch_array($result)...
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...
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.
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...
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...
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?
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...
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?
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.