Author Topic: [C++] Pixel Toaster - Visual Studio 2008 Express  (Read 9701 times)

0 Members and 1 Guest are viewing this topic.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Completely struggling with this.

Have downloaded Pixel Toaster, the new name for TinyPTC. But have no idea what is supposed to go where, in a directory similar fashion to Freebasic with inc and win32 folders.

I do hope that its possible to have them in one place, and I havent got to have all the Pixel Toaster stuff in every new project. Hope this also applies to any other libraries.

And it also goes on about a makefile whatever that is.
« Last Edit: March 04, 2009 by Clyde »
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
I can remember having some trouble with PixelToaster too
when I first tried it.
I'll see if I can find the whole project on my harddrive - if so
I can send it to you, maybe that helps. Although I changed
the computer 2 times since then - so I hope I will find it on
any backup device.

Personally however, it wasnt that much fun to work with
PixelToaster - I liked libraries like SDL much more to achieve
fast some simple effects.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Thanks mate, I have the download allready - if thats any consollation.

Just don't know where to store the files; I am hoping that its like the same method with Freebasic with putting them in one place for the compiler to look for them.

Cheers.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Haven't looked at it, but in general it will build and produce a .lib file.  That file is taken and renamed to a .a file and put in the FB lib directory.  There'll be a .bi file hanging around too which you stick in the inc folder.  You won't need any of the other files in your other projects.

No idea why you'd want to use PixelToaster though - what's missing from our PTC_EXT?

Jim
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Im using PixelToaster 4.0 ( or trying to ) as it's for C++ NOT Freebasic.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
OK, it'll create a .lib file which you'll be able to link with in the Additional Libraries in the Linker Options in Project Properties - add the .lib to the list.  There'll be an .h file somewhere which you will need to copy over to your project.

Jim
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Thanks will have a fiddle this afternoon.

Im still not 100% what I am supposed to do with the files included in the zip, the readme didnt tell me a busting lot, apart from that I need to install the DX SDK, which I knew about allready. Where do I extract them too? Is there like a main resource libraries folder(s) like the freebasic setup of putting a's in your win 32 and includes ( headers ) in an lib\includes ?

And I think im with you now, about the use of TinyPTC_Ext, i think you are getting at that Its possible to port this into use for C++.

Many thanks,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Quote
what I am supposed to do with the files
Put them wherever you like and add the additional include- and library-path in your project-settings:

(library-path is in "linker")

Alternatively add the paths globally in the visual-studio options:

(images are randomly taken from google)
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Nice one and cheers for that Hell Fire dude, and everyone else on this beginners CPP quest.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
I would suspect the package contains a pre-built .lib and .h file.  There's no need to install the dxsdk unless you want to re-build the library from the source, or you want to write your own code that calls directx itself in your own cpp files.

Jim
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: [C++] Pixel Toaster - Visual Studio 2008 Express
« Reply #10 on: March 08, 2009 »
So, for every single program I attempt I must include the .h file for that library into the same place as my code? Or are you saying, it just needs to go into the VC++ Directories?

Still a little Fuzzy Wuzzy,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Re: [C++] Pixel Toaster - Visual Studio 2008 Express
« Reply #11 on: March 09, 2009 »
Quote
I must include the .h file for that library into the same place as my code?
When you put all required files into your project-directory, VisualStudio will find the files without adding additional paths.
However, that will completely mess up your project when using many external libraries and makes it difficult to keep track of the relevant parts of your code.
It's much cleaner to put each lib (including headers and such) to its' own directory and add the required paths as shown above.
For example you don't want to copy the complete directx-sdk into every project you start...
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: [C++] Pixel Toaster - Visual Studio 2008 Express
« Reply #12 on: March 12, 2009 »
Slowly getting chances to dabble with the express version of Visual Studio 08.

I was under the impression that the DX SDK came included in the installation? But I used pixel toaster again, and this time it told me it couldnt find the dx9 includes. Perhaps they have been put in a different place.

If I do need it, im not entirely sure what version of the Platform SDK I need ( that is briefly mentioned in the small readme file ), or were to find it.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Re: [C++] Pixel Toaster - Visual Studio 2008 Express
« Reply #13 on: March 12, 2009 »
The platform-SDK is included in VS Express 2008, the DirectX-SDK is not.
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: [C++] Pixel Toaster - Visual Studio 2008 Express
« Reply #14 on: March 12, 2009 »
Ah ok thanks man.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won: