#30 Fixes to compile with Visual Studio 2005

closed
Spacy
Generic (7)
5
2006-05-08
2006-04-22
Spacy
No

I recommend using Yasm
(http://www.tortall.net/projects/yasm/wiki) to assemble
"2xSaImmx.asm". Use the following settings:
Command Line: yasm -D __DJGPP__ --oformat=win32
--arch=x86 --dformat=cv8 --machine=x86 -X vc
--objfile="$(OutDir)\$(InputName).obj" "$(InputPath)"
Description: Assembling $(InputFileName)...
Outputs: "$(OutDir)\$(InputName).obj"
Yasm is great, because it also supports 64 bit.

Fixes to compile with Visual Studio 2005 final:
file: VBA.cpp
function: BOOL VBA::InitInstance()
old line(s): #ifdef _AFXDLL
Enable3dControls();
// Call this when using MFC in a
shared DLL
#else
Enable3dControlsStatic(); // Call
this when linking to MFC statically
#endif
new line(s): [REMOVED]

file: GBA.cpp
function: bool CPUIsZipFile(const char * file)
old line(s): char * p = strrchr(file,'.');
new line(s): const char * p = strrchr(file,'.');
function: bool CPUIsGBAImage(const char * file)
old line(s): char * p = strrchr(file,'.');
new line(s): const char * p = strrchr(file,'.');
function: bool CPUIsGBABios(const char * file)
old line(s): char * p = strrchr(file,'.');
new line(s): const char * p = strrchr(file,'.');
function: bool CPUIsELF(const char *file)
old line(s): char * p = strrchr(file,'.');
new line(s): const char * p = strrchr(file,'.');

file: AccelEditor.cpp
function: void AccelEditor::OnAssign()
old line(s): for (int index = 0; index < count;
index++) {
new line(s): int index;
for (index = 0; index < count; index++) {

file: Util.cpp
function: bool utilIsGBAImage(const char * file)
old line(s): char * p = strrchr(file,'.');
new line(s): const char * p = strrchr(file,'.');
function: bool utilIsGBImage(const char * file)
old line(s): char * p = strrchr(file,'.');
new line(s): const char * p = strrchr(file,'.');
function: bool utilIsZipFile(const char *file)
old line(s): char * p = strrchr(file,'.');
new line(s): const char * p = strrchr(file,'.');
function: bool utilIsGzipFile(const char *file)
old line(s): char * p = strrchr(file,'.');
new line(s): const char * p = strrchr(file,'.');

file: DirectInput.cpp
function: bool DirectInput::initialize()
old line(s): for(int i = 1; i < numDevices; i++) {
new line(s): int i;
for(i = 1; i < numDevices; i++) {

file: CmdAccelOb.cpp
function: void CAccelsOb::GetString(CString&
szBuffer)
old line(s): for (int i = 0; i <
sizetable(mapVirtSysKeys); i++) {
new line(s): int i;
for (i = 0; i <
sizetable(mapVirtSysKeys); i++) {

Discussion

  • Spacy
    Spacy
    2006-04-22

    • assigned_to: kxu --> pokemonhacker
     
  • Spacy
    Spacy
    2006-04-22

    The fixes as a text file (better readability)

     
    Attachments
  • Spacy
    Spacy
    2006-04-22

    Logged In: YES
    user_id=1355343

    SEE THE ATTACHMENT FOR BETTER READABILITY OF THE CHANGES ;)

     
  • Spacy
    Spacy
    2006-04-23

    • assigned_to: pokemonhacker --> spacy51
    • status: open --> pending
     
  • Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending --> closed