User Profile

Collapse

Profile Sidebar

Collapse
Flugeldorph
Flugeldorph
Last Activity: Dec 18 '08, 03:41 PM
Joined: Oct 1 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Flugeldorph
    replied to Reading from file without caring about \n
    in C
    You are reading the proper number of bytes. Don't forget that strlen terminates on a null which is represented as a binary 0. if the 5th byte of 1000 is a zero, strlen will terminate and return a value of 5. fread with the rb flag reads binary, anything, not just strings.
    See more | Go to post

    Leave a comment:


  • Flugeldorph
    replied to Passing parameter to a function
    in C
    Actually, this methodology is not difficult to use, and is extrenely powerful. An example is the best way to show how it works. The following routine is used as a graceful exit from a program when things don't go right. It is used like printf in that you can send a variable amount of data to the function

    1st the code:
    make sure that you include <stdarg.h>

    Code:
    #include <stdarg.h>
    ...
    See more | Go to post

    Leave a comment:


  • Flugeldorph
    replied to Hashing with collision resolution
    in C
    May,

    The following is rather lengthy, but is a complete system which contains a hashing algorithm that I cranked out in the past hour. Some code was borrowed from some previous software that I had written. At any rate, the code is written in C, as a console program, not in C++ but you should be able to use it directly from within C++.

    This shows a method of hashing where you never have to worry about running out...
    See more | Go to post

    Leave a comment:


  • Flugeldorph
    replied to Getting the IP address of the server
    in C
    Gupta,

    Check out: http://msdn.microsoft. com/en-us/library/system.net.ipho stentry.hostnam e.aspx

    Larry
    See more | Go to post

    Leave a comment:


  • Flugeldorph
    replied to Hierarchical Inheritance example in C++?
    in C
    Take a look at the following site
    http://publib.boulder. ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic =/com.ibm.xlcpp8l .doc/language/ref/inher.htm

    This contains a pretty basic explanation that can be grasped quickly.

    Larry
    See more | Go to post

    Leave a comment:


  • remync ,

    Give more details on the structure of 'I' I can probably help.

    Larry
    See more | Go to post

    Leave a comment:


  • Sashi,

    If you need a copy of the the data that I am using, you can download a copy with the following: The HD file is the one used in my example code

    Code:
       Dim CurrentDirectory As String = Application.StartupPath() + "\"
       Dim DestinationDirectory As String = CurrentDirectory + "DataFiles\"
       Dim FileName As String = "l_amat.zip"
       Private Sub GetFCCDataFile()
    ...
    See more | Go to post

    Leave a comment:


  • Sashi,

    Thank you for your reply, Here;s the detail:

    The following code is the tokenizer which works.
    the first call passes NewItem as True, followed by the string to be tokenized, followed by the delimiter All repeat calls (until the end of string) pass NewItem as false along with two empty strings. As soon as I learn how to overload, I will not require any parameters after the first call, unless a new string...
    See more | Go to post

    Leave a comment:


  • Hello,

    There is a scripting language available free from NIST (http://expect.nist.gov/) called Expect which is quite easy to learn, that would work well for what you are trying to do, if, on the other hand you already know the file that you want to download, the following would work in VB

    Code:
       Private Sub GetFCCDataFile()
          Dim CurrentDirectory As String = Application.StartupPath() + "\"
    ...
    See more | Go to post

    Leave a comment:


  • Hello Grace. I am new to VB, but just finished a routine that does an ftp of a file from the FCC server. It works. Here's the code that I used:
    Code:
       Private Sub GetFCCDataFile()
          Dim CurrentDirectory As String = Application.StartupPath() + "\"
          Dim DestinationDirectory As String = CurrentDirectory + "DataFiles\"
          Dim FileName As String = "l_amat.zip"
          Dim remoteUri
    ...
    See more | Go to post

    Leave a comment:


  • Loading database from flat file using ADO.net

    I am new to Visual Basic, my preferred languages is C or C++. I am trying to load a local database with data that I am reading from a delimited flat file. I have created the database tables and added all primary keys and a set of foreign keys. I have also created a Dataset for same. Now I was expecting that I could load the data set from the data that I am parsing from the flat file. Houever when I attempt to enter data into the dataset I can't...
    See more | Go to post
No activity results to display
Show More
Working...