-
January 18th, 2016, 01:07 AM
#1
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
-
January 18th, 2016, 03:35 AM
#2
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
-
January 18th, 2016, 04:13 PM
#3
Re: give path of logo with ~ sign in vc++ 6.0
Originally Posted by VictorN
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|