How can i see the dump messages on the output window ?

Post here your questions about the C++ API for SFS2X

Moderators: Lapo, Bax, MBagnati

scofy
Posts: 79
Joined: 08 Apr 2012, 09:04

How can i see the dump messages on the output window ?

Postby scofy » 21 May 2013, 13:11

How can i see the dump messages on the output window of VS2010,just like XCode dump message.

Code: Select all

2013-05-21 20:13:44.706 iGame[4900:c07] onDebugMessage
2013-05-21 20:13:44.707 iGame[4900:c07] [SFS - INFO]{ Message id: 13 }
{Dump: }

   (utf_string) c: sys.getbuff
   (sfs_object) p:
      (bool) repu: 0
      (bool) shop: 0
      (bool) exp: 0
      (bool) iap: 0
MBagnati
Posts: 126
Joined: 12 Feb 2013, 10:57

Re: How can i see the dump messages on the output window ?

Postby MBagnati » 23 May 2013, 06:01

We will send you a couple of updated files: SFSArray.cpp and SFSObject.cpp
Please update your API with these files.

After that you can print SFS objects into VisualStudio in this way:

Code: Select all

             string* dump = params->GetDump();

             #ifdef UNICODE
                    wstring unicodeDump = wstring(dump->begin(), dump->end());
                     OutputDebugString(unicodeDump.c_str());
                    OutputDebugString(L"\n");
             #else
                    OutputDebugString(dump->c_str());
                     OutputDebugString("\n");
             #endif


where params has been declared as SFSObject* params

Updated files will be included into next API version.
bqlf1907
Posts: 25
Joined: 13 May 2013, 10:28

Re: How can i see the dump messages on the output window ?

Postby bqlf1907 » 28 May 2013, 14:34

updated files: SFSArray.cpp and SFSObject.cpp
Output SFSObject contains Basic data types is normal;

but OutPut SFSObject contains many objects(SFSArray,SFSObject and so on);

error on

Code: Select all

string* SFSArray::Dump()


Out Put "Run-Time Check Failure #3 - The variable 'type' is being used without being initialized."
MBagnati
Posts: 126
Joined: 12 Feb 2013, 10:57

Re: How can i see the dump messages on the output window ?

Postby MBagnati » 29 May 2013, 09:17

We have sent you by email a couple of updated files to solve the problem.
Please update your API with these files and try again.
Updated files will be included into next API version.

Please give me a feedback about the resolution of the item.
Thanks for your collaboration
bqlf1907
Posts: 25
Joined: 13 May 2013, 10:28

Re: How can i see the dump messages on the output window ?

Postby bqlf1907 » 29 May 2013, 15:24

i updated files.
but it not work too,
error on

Code: Select all

string* SFSObject::Dump()
MBagnati
Posts: 126
Joined: 12 Feb 2013, 10:57

Re: How can i see the dump messages on the output window ?

Postby MBagnati » 03 Jun 2013, 05:59

i'll try again to investigate the issue

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 20 guests