C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 4th, 2004, 05:58 PM
marmo marmo is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 37 marmo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 15 m 20 sec
Reputation Power: 4
DirectX: Help saving objects to files

I was wondering how I would go about saving an object in directx that has a bitmap for a data member aswell as other data.
For instance say I have a class Player:

class Player
{
public:
wstring name;
int level;
Bitmap portait;
};

Now I know I could store the name and level in a text file and I could even save the file path of the Bitmap, and have my application load the bitmap on creation(bitmap will be stored in a seperate directory). However I would like to save the file so all info is kept in the same file. I tried searching the mView tutorial from the Dx Sample Browser but that was all about saving meshes not bitmaps and text. Also tried searching msdn but only came up with saving text files with FileStream from the .NET SDK. Could someone tell me, or show me some code on saving bitmaps and text files together in DirectX?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > DirectX: Help saving objects to files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway