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 Chriss Miller 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. SmileeTiger

    Boost Tokenizer Question

    I have a file that has it's fields seperated by ^A characters (0x01) and want to use the boost tokenizer to split the fields. However, when I attempt to use 0x01 directly as the token I get a complaint about type mismatches. To get around that issue I created a char array to hold the token but...
  2. SmileeTiger

    Field Delimited Flat File Processing

    I have a flat file of the following format: field1: data1.1 field2: data2.1 field4: data4.1 field1: data1.2 field3: data3.2 field5: data5.2 That I want to convert to a delimited file so that I can import it into a spreadsheet with the following format: field1 field2 field3 field4...
  3. SmileeTiger

    Finding the name of the current node

    This is a really simple question: I have an xml file: <data> <foo>xxx</foo> <bar>yyy</bar> </data> How can I get the values foo and bar to print using an xslt. I assume it's something like: <xsl:for-each select="/data/*"> xxRule Title: <xsl:value-of select="SOMETHING"/><br/>...
  4. SmileeTiger

    Multi-Part MIME Messages in Outlook Express

    I am attempting to read a newsgroup using Outlook Express v. 6 however, many of the news postings show up with: This is a multi-part message in MIME format. ------_=_NextPart_001_01C52B2C.6AB4E95C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable At the...
  5. SmileeTiger

    gprof (Really Simple)

    How do I run gprof such that I can pass command line paramaters to my binary. ie. I want to run a.out -f file.txt -n 100 I tried gprof a.out -f file.txt -n 100 gmon.out > profile.txt But it didn't work! This HAS to be pretty simple.
  6. SmileeTiger

    Ints and std::string

    Can anyone think of a more readable way to convert an int to a std::string then what I have below: std::string FilePath; std::stringstream ss; std::string FileNum; for(int i=0 ; i < 5; i++) { ss << i; ss >> FileNum; FilePath = "/blah/blah/FileName" + FileNum + ".txt"; cout << "File to open:"...
  7. SmileeTiger

    ccache

    I am working on a fairly large project that takes 5 or so minutes for a complete compile and have been experimenting with using <a href="http://ccache.samba.org/">ccache</a> in order to speed up the build process. I know however, that there is no such thing as a free lunch and that there must...
  8. SmileeTiger

    Simple Subquery question

    Does anyone see anything wrong with: SELECT Notes FROM BT_Messages WHERE (Who = "USR_username1") OR (Who = "USR_ALL") OR (Who IN (SELECT GroupID FROM BT_Membership WHERE UserID = "username2")) GROUP BY UID,Notes ORDER BY UID
  9. SmileeTiger

    Starting an external program and get pid.

    I am running under unix and I want my program to start another program and print out the PID of the process that is started. ie. Prog1: int main(..) { int pid; pid=start(prog2, arg); printf(&quot;Prog 2 has been started and has a PID of: %d\n&quot;, pid); } Normally I would use system()...
  10. SmileeTiger

    Does a PID exist?

    Given a PID I want to check to see if a process exists with this PID under a linux system. Does anyone know of a way to do this? Smilee
  11. SmileeTiger

    Appenging to the start of a file.

    I have a text file that I want to append to the start of. I know how to write to the beginning of the text file but not overwrite the information that is already there. Any one have any idea how to do this? Smilee
  12. SmileeTiger

    Invalid Bookmark

    I have been writing some code to work around a Invalid Bookmark error I have been recieving when I access a MS Access database. Does anyone have any idea how to <b>create</b> this error in a database?
  13. SmileeTiger

    Path for a registered COM DLL

    Does anyone have any idea how to get the complete path of a registered COM DLL programmatically by just giving the name of the dll?
  14. SmileeTiger

    Getting the Version Number of a file

    How can you determine the version number of a file? I can see this version number by right clicking the file name in explorer and clicking on the version tab. Is there a way to do this programatically?
  15. SmileeTiger

    I am attempting to delete log files

    I am attempting to delete log files that are older then a specified dat in Visual Basic. I know I can do this doing something like: Dim DirName As String Dim FileDate As Date DirName = &quot;C:\RDS\rdsbox\boxdata\Temp\Backup&quot; ChDir DirName FileName = Dir$(&quot;*.*&quot;, ATTR_NORMAL)...
  16. SmileeTiger

    Calling a ANSI C DLL from VB

    Is it possible to call a ANSI C DLL from VB? If so how would I do it without using COM? SmileeTiger
  17. SmileeTiger

    DLL troubles VB/VC++

    I am working on a DLL that is build in VC++ using ANSI C calls and then accessing the DLL in VB using a public declare function: Public Declare Function GetTestDLLVersionNumber Lib &quot;TestDLL.dll&quot; Alias &quot;GetVersionNumber&quot; () As Long I compiled the code on a WinNT machine and...
  18. SmileeTiger

    Dll Troubles.. VB/VC++

    I am working on a DLL that is build in VC++ using ANSI C calls and then accessing the DLL in VB using a public declare function: Public Declare Function GetTestDLLVersionNumber Lib &quot;TestDLL.dll&quot; Alias &quot;GetVersionNumber&quot; () As Long I compile the code on a WinNT machine and...
  19. SmileeTiger

    Detecting if a DLL is not present

    I want my VB application to fail if a particular dll is not present in the system directory. Any ideas on how to do it? Smilee
  20. SmileeTiger

    WTF? Centering an Object?

    Ok I know this is stupid but how the heck do I center an object in Crystal Version 7?

Part and Inventory Search

Back
Top