Inside3D!
     

sound issues
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming
View previous topic :: View next topic  
Author Message
reckless



Joined: 24 Jan 2008
Posts: 390
Location: inside tha debugger

PostPosted: Thu Apr 22, 2010 5:39 am    Post subject: Reply with quote

ok i fixed as much as possible in the source except for a function no longer provided by mfc namely InvertSysMenu();

i can compile it but it dies instantly it seems fun thing first time i started it it bitched about a missing pak file hmm ?
Back to top
View user's profile Send private message
reckless



Joined: 24 Jan 2008
Posts: 390
Location: inside tha debugger

PostPosted: Thu Apr 22, 2010 6:35 am    Post subject: Reply with quote

ah ok took the pak from the official build and i can start it but its a bit wonky executing qoole99.exe itself does absolutly nothing i need to drag the pakfile on it Shocked i suspect theres some needed registry entries to be done.

if i replace the official one with mine it works allthough it crashed when trying to save Laughing

if you want i can upload the fixed source code ?
Back to top
View user's profile Send private message
reckless



Joined: 24 Jan 2008
Posts: 390
Location: inside tha debugger

PostPosted: Thu Apr 22, 2010 7:53 am    Post subject: Reply with quote

ouch well most of the problems seem to originate from it using an ancient version of mfc.

to be blunt the exception handling uses something like a sigtrap system (unixy at its best) instead of try[] catch[] also the code does no cleanup so newer mfc dlls get quite pissy about it Twisted Evil

it compiles now but its far from stable i left the fixed source on my ftp under the name Qoole99.7z
Back to top
View user's profile Send private message
reckless



Joined: 24 Jan 2008
Posts: 390
Location: inside tha debugger

PostPosted: Thu Apr 22, 2010 2:44 pm    Post subject: Reply with quote

Code:
class LConfig {
public:
   LConfig(char *name);
   ~LConfig(void);

   void RegisterVar(char *name, void *ptr, int type);
   void SaveVars(void);

   static void Init(int curVer, int reqVer);
   static void Exit(void);

private:
   // heres where most of the problems begin ...
   static struct LVar {
      char   name[32];
      void   *ptr;
      int      type;
   };

   char      sectionName[32];
   int         numLVars;

   LVar      *lvars[256];

   static int currentVer, requiredVer, registryVer;
};


main bad guy of it all.

the LVar struct goes bonkers on us interresting thing is i can actually use a union instead and then it starts no problem but saving crashes us with the struct it newer starts and if i hook it into the debugger it tells me that LVar->whatever is a bad pointer
Back to top
View user's profile Send private message
frag.machine



Joined: 25 Nov 2006
Posts: 728

PostPosted: Thu Apr 22, 2010 4:40 pm    Post subject: Reply with quote

Sounds like a change in runtime behavior between versions to me. Have you already searched in MSDN for this ?
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/
Back to top
View user's profile Send private message Visit poster's website
reckless



Joined: 24 Jan 2008
Posts: 390
Location: inside tha debugger

PostPosted: Fri Apr 23, 2010 1:23 am    Post subject: Reply with quote

according to msn old mfc code except a few bits and pieces like InvertSysMenu () (now handled by os files) etc should work if compiled with managed extensions.

tried compiling the code with msvc6 and works there even with those codeparts removed. NET doesnt like it at all Laughing
Back to top
View user's profile Send private message
reckless



Joined: 24 Jan 2008
Posts: 390
Location: inside tha debugger

PostPosted: Fri Apr 23, 2010 7:04 am    Post subject: Reply with quote

something to maybe consider ?

porting it to wxwidgets (most of the mfc calls can be done with it allready just need to prefix the mfc calls with wx)

my ide has quite a nice wx editor builtin (think borlands delphi style) Wink

would be compatible with other compilers.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group