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
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. :confused:
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...
Re: give path of logo with ~ sign in vc++ 6.0
Quote:
Originally Posted by
VictorN
I don't understand the purpose of adding the ~ sign in such a case. :confused:
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.