Profile for r.Q
Field | Value |
---|---|
Displayed name | r.Q |
Member number | 8808 |
Title | Apprentice |
Postcount | 5 |
Homepage | |
Registered | Sunday, May 27 2007 07:00 |
Recent posts
Author | Recent posts |
---|---|
Compiling BoE source code for Windows in Blades of Exile | |
Apprentice
Member # 8808
|
written Saturday, June 9 2007 05:22
Profile
quote:Hey Ormus ! I have something for You;) I've rewritten all sound engine. Now it reads sound data from external *.WAV files, uses 32-bit Windows Multimedia function, and locks global handles only when playing sound (in order to avoid memory fragmentation). Following archive indludes two files: EXLSOUND.CPP and EXLSOUND.H. I have added "delete_all_sounds" function, to release all allocated memory, so You should call this function in course of processing "WM_DESTROY" message. Archive: Download here I hope You find it useful. Regards ;) Posts: 5 | Registered: Sunday, May 27 2007 07:00 |
Compiling BoE source code for Windows in Blades of Exile | |
Apprentice
Member # 8808
|
written Thursday, June 7 2007 07:07
Profile
Hi;) I would like to share some of my observations resulting from my work on BoE open source code. I use Dev-C++ compiler and at this moment code is compiling and running, but it wasn't easy. During my work, I have found some strange errors, like unexpected program collapsions, or terminations. To find out, what's going wrong I have spent a lot of time on debugging. I hope this post will save some time to people who have found similar problems. First obstacle was an unexpected program collapsion while showing dialog box window. The reason of this situation is incorretly string formatting in "dummy_dialog_proc" (DLOGTOOL.CPP file) dialog window procedure. As we can see in line 616: 'type' and 'flag' variables has 'short' type, while formatting string ("%d_%d") describes 'long' types. Properly, formating string should be "%hd_%hd". Next thing is program terminiation, while closing dialog box windows. That was very frustrating, because everything seems to be OK. In this situation something is littering our application message queue with WM_QUIT message. Problem lies in implementation of "fry_dc" function (GRAPHUTL.CPP file, line 612). The solution is to rewrite this function to something like this: Ok, that's all what I have to say (now;)). Hope that anybody find it useful. Bye;) [ Thursday, June 07, 2007 09:13: Message edited by: r.Q ] Posts: 5 | Registered: Sunday, May 27 2007 07:00 |
Compiling BoE source code for Windows in Blades of Exile | |
Apprentice
Member # 8808
|
written Saturday, June 2 2007 07:26
Profile
quote:There is a way to turn off structure data align on the GCC based compiler (e.g Dev-C++). To do it, You have to add "__attribute__" instruction to a structure definition. For example: Anyway, this is not recommended but it's worth to know ;) Posts: 5 | Registered: Sunday, May 27 2007 07:00 |
Compiling BoE source code for Windows in Blades of Exile | |
Apprentice
Member # 8808
|
written Sunday, May 27 2007 07:21
Profile
Beeps... :rolleyes: I mean BoE od course :D Thanks! ;) Posts: 5 | Registered: Sunday, May 27 2007 07:00 |
Compiling BoE source code for Windows in Blades of Exile | |
Apprentice
Member # 8808
|
written Sunday, May 27 2007 03:36
Profile
Hi:) If You want to make code more compatible with Win32, You should rewrite all file I/O functions. You should use CreateFile instead of OpenFile functions, SetFilePointer instead of _llseek, etc. BTW there is no TINYOBJ.BMP file in Windows release of EoB source code. You can get it from shareware version of EoB. Posts: 5 | Registered: Sunday, May 27 2007 07:00 |