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 Shaun E 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. areric

    Office Chart Web Component & Dynamic Data Source

    Hey All, I have no idea if this is the right forumn for this buy im trying to use the Office Chart Web Compnent to make a graph. The catch is when you define the component in frontpage it makes you tell it the table or query you want it to pull data from. I was wondering if its possible for me...
  2. areric

    Fornatted Date

    ok.... so how do i fix it. Ive been looking at all the documentation i can find on this Format function and it deffinatly returns a string even when i use to variables MyDate = Now() and TheDate = Format(MyDate, "mmyy") it still type mismatches. I need to be able to append whatever the...
  3. areric

    Fornatted Date

    im getting a type mismatch on this Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: 'Format' /pcorder/ShoppingCart/checkout.asp, line 99 DO i need to generate MyDate somehow maybe i tried Dim MyDate MyDate = date() MyDate=Format(MyDate, "mmyy") i also tried just...
  4. areric

    Fornatted Date

    Hey all, Im trying to get a date in the format "MMYY" I NEED leading 0's so for july of 2004 i need it to report 0704. Can i do this in ASP and if so how? thanks
  5. areric

    Scan File System without opening Files

    ...<string> dirs; string dirName; string pathToScan; HANDLE searchHandle; string acctName; string filename; pathToScan = combinePath(path, "*"); //cout<<path<<endl; searchHandle = FindFirstFile(pathToScan.c_str(), &fileData); //cout<<"after search handle"<<endl; while...
  6. areric

    Owner of File

    ...the lastaccessdate. I need that to stay in tact if possible. p.s. my current function is below. Thanks. CODE: int getOwnerName(const char* filename, string &rAcctName){ DWORD dwRtnCode = 0; PSID pSidOwner; BOOL bRtnBool = TRUE; LPTSTR AcctName, DomainName; DWORD dwAcctName = 1...
  7. areric

    Opening Files

    ...Sorry everyone. For those of you that are interested though my GetOwnerName function is off MSDN and looks like this: int getOwnerName(const char* filename, string &rAcctName){ DWORD dwRtnCode = 0; PSID pSidOwner; BOOL bRtnBool = TRUE; LPTSTR AcctName, DomainName; DWORD dwAcctName =...
  8. areric

    Opening Files

    ...string dirName; string pathToScan; HANDLE searchHandle; string acctName; string filename; pathToScan = combinePath(path, "*"); //cout<<path<<endl; searchHandle = FindFirstFile(pathToScan.c_str(), &fileData); //cout<<"after search handle"<<endl; while...
  9. areric

    Too Many Files Open using FindNextFile and FindFirstFile

    ...that makes the recursive calls int FindFile::scanPath(string path) { WIN32_FIND_DATA fileData; FileInformation fi; int success=0; char* acctName; string filename; int sum = 0; int filesum = 0; _ConnectionPtr conn; HANDLE searchHandle = NULL; if (m_opts.extendedInsert ==...
  10. areric

    Too Many Files Open using FindNextFile and FindFirstFile

    ...string path) { int nValid; if (searchHandle == NULL) { string pathToSearch = combinePath(path, "*"); searchHandle = FindFirstFile(pathToSearch.c_str(), &fileData); if (searchHandle == INVALID_HANDLE_VALUE) { cout<<"FindFirstFile"<<endl...
  11. areric

    Top 20%

    Awesome, that worked perfectly thanks alot.
  12. areric

    Top 20%

    ...For them i need their total filesize, count of their files, and their owner name I was trying this query but it wasnt working. Select Count(*), Sum(FileSize) as Total, Owner, completesum=(select Sum(FileSize) from FileScanner.dbo.FileInformation) from FileScanner.dbo.FileInformation...
  13. areric

    Triggers / Events

    Hey everyone, I was wondering is anyone knew how i can set up some sort of job or trigger based on an event that occurs in my db. Basically i have a db that takes periodic entrys. I want to make a script that will fire off an email to a list of people whenever an entry is made. I could write...
  14. areric

    C++ SQL connection

    hmm i cant edit my previous post apparently so just change one thing. In the connection function the line that reads sTempConn += "FileScanner"; should read sTempConn += "DATABASE_NAME";
  15. areric

    C++ SQL connection

    i took a very similar Faq and broke it down into functions. I dont have the select statement function done yet but the following two are a connection function and a function to support linear queries (update, insert, delete) void DbConnect(_ConnectionPtr& conn){ string sTempConn; string...
  16. areric

    Regular Expressions (Pattern Matching)

    thanks alot everyone, ill try out regex++ and see what its like. I ported that function above to string class strings and it works pretty well so thanks.
  17. areric

    Regular Expressions (Pattern Matching)

    Hey all, Im trying to do a C++ program that checks a string to match a pattern. Namely im looking for it to record the string if it matches AA###### where A is any alphabetic char (a-z, A-Z) and # os any number 0-9. I know i can do this in regular expressions as a web based front end im...
  18. areric

    Delete a File

    Hey everyone, I have a database which is storing some information about files. Amoung that information is the full path to the file in the format \\servername\directory If i have a file in that format that i want to delete how can i do this? Do i use some sort of system call or is there an...
  19. areric

    Listbox, ID's, and Selecting an Item

    Hey everyone, Im trying to make a listbox that will list an id, subject, and content for a group of items. Id prefer for content and ID to be hidden but accessable. I.E. I can use id for passing to other functions. That said i know this was easier in VB 6 but how do i make a listbox and then...
  20. areric

    Strip Whitespace

    thanks everyone

Part and Inventory Search

Back
Top