Results 1 to 2 of 2

Thread: Accessing and working on .c, .h files from VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    13

    Accessing and working on .c, .h files from VB

    Hi all,

    I need to find few strings in .c/.h files which are part of a VC++ workspace and replace those strings with my new strings. I've stored the "strings to be found in the files" in one column and "strings to be replaces in the files" in 2 adjacent columns in excel worksheet. Can anyone help me how to proceed with this.

    - Kavitha

  2. #2
    Frenzied Member
    Join Date
    Oct 2003
    Posts
    1,301

    Re: Accessing and working on .c, .h files from VB

    The .c and .h files are just ascii formatted files.
    You load them like any textfile and store them in a string variable.

    Be advised though, mindless use of the Replace function (or ctrl+c_ctrl+v) can seriously mess up your c code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width