CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2016
    Posts
    61

    give path of logo with ~ sign in vc++ 6.0

    I am storing logo (Bitmap) path into database. By using File upload when I browse the Logo(bitmap) and select logo it's whole path is selected. can we use ~ sign by which just name of bitmap have to store and ~ sign get remain path automatically in vc++ 6.0

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,398

    Re: give path of logo with ~ sign in vc++ 6.0

    I don't understand the purpose of adding the ~ sign in such a case.
    Just save the file name only (without any additional path/sign. Then after reading it from a DB create the full path name using your saved somewhere else the path to the folder where you load the file from DB...
    Victor Nijegorodov

  3. #3
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: give path of logo with ~ sign in vc++ 6.0

    Quote Originally Posted by VictorN View Post
    I don't understand the purpose of adding the ~ sign in such a case.
    I'm guessing it's for website root path familiarity.

    At any rate, you're right, it doesn't add anything.

    @OP, just retrieve the path from the database and see if it exists, if it doesn't assume it's a relative path (i.e., ~), and use the root path of where the logos are stored to form the complete path as Victor suggested.

Tags for this Thread

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

Featured