Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / dgk 2.0 / C++? FileExsist

Author
Message
Timidon
14
Years of Service
User Offline
Joined: 26th Jun 2005
Location: Bakersfield, Ca. USA.
Posted: 9th May 2013 00:47 Edited at: 9th May 2013 03:59
This more than likely boils down to a C++ question. I am using the MSVC 2008,

trying to check to see if a file exsist before trying to load it.

come across a bunch of different ways, doing something wrong. what kind of string prepration needs to be done.



basicly trying to check to see if a "png" file exsists before I use the dbLoadImage() command.

to get the directories I am looking for I use this



Do these function look solid? or is there something else I should worry about?

When I run the program, the file name and directories look fine, but I can never seem to beable to detect if the png file is there or not.

popped up a screen shot, I have one which is a false the (first) red, which is not valid file. and a the 2nd red line is the true file (which is still indicating that it is false).



Also I don't think the path is working write, I found the SetCurrentDirectory() command, intering the string into that does not change the directory.

If anybody gots a good peice of code or a link to point me to be happy to share.

There are many answers but just one question" ~ Jerilith the Mad

Attachments

Login to view attachments
Timidon
14
Years of Service
User Offline
Joined: 26th Jun 2005
Location: Bakersfield, Ca. USA.
Posted: 11th May 2013 07:03
Alright something happened not for sure, but he strings are now reading the file system and I can my files being called from the directories!.

I figure consider this thread closed.

There are many answers but just one question" ~ Jerilith the Mad

Login to post a reply

Server time is: 2019-09-19 20:14:11
Your offset time is: 2019-09-19 20:14:11