Re: Question about loading external image
Re: Question about loading external image
- Subject: Re: Question about loading external image
- From: man lee <email@hidden>
- Date: Tue, 25 Sep 2007 10:16:42 +0800 (CST)
Sorry for any inconvinience cause, that's my first
time using such "mailing list" system. Actually, the
question is bothering me for months. I'll try to
figure out the problem myself at the same time. I know
this maybe a stupid Xcode question but I still hope
any gentlemen here could give me a helping hand.
> Please post your questions to the list. Apple
> engineers don't offer
> one-on-one technical support via email. If you need
> such support, you
> can use Support Incidents with the Apple Developer
> Connection to
> receive it, however your queries seem basic enough
> that the community
> list should be able to address them.
>
> Chris
>
> Top-posted from my iPhone
>
>
> > Hi Chris,
> >
> > Thx for your reply! I 've attached two
> source
> > file to
> > you. One is the C++ OpenGL file I mentioned
> before.
> > The other is a c++ file which will read/save text
> > file. I think their problem may be the same.
> >
> > For OpenGL one, it will load the "test.tga" as
> > texture data, but it could only be loaded when I
> put
> > it into the "Resources" folder in Xcode.
> Actually,
> > my original attempt is to put the image next to
> the
> > standalone executable in order to read it
> externally.
> >
> > For the C++ file processing one, it will
> read a
> > file named "input.txt" and then save it to
> > "output.txt"(all things will be inside the debug
> > folder). All stuffs run smoothly when I am in the
> > Xcode. But when I execute the standalone
> executable,
> > it fails. It seems that it put the output file to
> my
> > "/Users/myName " directory automatically. Also,
> it
> > can only read the "input.txt" when I put it into
> > the
> > "/Users/myName " directory. Are there any
> settings in
> > Xcode wrong?
> >
> > Beg your pardon, I am very new to Xcode. I
> > used VC++ previously. But after using Xcode, I
> think
> > I could not turn back...... Thank you!
> >
> >
> > Sam
> >
> > > >
> > > > On Sep 20, 2007, at 6:02 AM, man lee wrote:
> > > >
> > > > > I am currently using Xcode to write
> c++
> > > > openGL
> > > > > codes. I wrote a programe that loads
> external
> > > > image as
> > > > > texture. But I found that the image file can
> > > just
> > > > be
> > > > > read when I import it into the "Resources"
> > > folder
> > > > of
> > > > > my Xcode. It could not be read by just
> placing
> > > it
> > > > next
> > > > > to the executable or any other place else.
> Could
> > > > > someone help? Thx.
> > > >
> > > > Without seeing your code that finds and loads
> the
> > > > image
> > file, no.
> > > >
> > > > Chris
Yahoo! 全新升級網上相簿,讓你由相片中分享生活點滴,請前往http://hk.photos.yahoo.com 了解更多!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden