[mapguide-users] MgByteReader.ToString() Error!

Padungsak athellmott at hotmail.com
Sun Jan 21 06:48:07 EST 2007


This is my php code



    $resourceID = new  
MgResourceIdentifier('Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition');

    $map = new MgMap();
    $map->Create($resourceService, $resourceID, 'Calgary');

    $map_selection = new MgSelection($map);

    $bgcolor = new MgColor(128,128,128);
    $renderSrvc = 
$siteConnection->CreateService(MgServiceType::RenderingService);

    $envelop = new MgEnvelope(-87.75, 43.7, -87.71, 43.73);
    $byteReader = $renderSrvc->RenderMap( $map, $map_selection, $envelop, 
640, 480, $bgcolor, "png" );
    $byteSing = new MgByteSink($byteReader);
    echo $byteReader->ToString();



This is result after i used $byteReader->ToString();


ERROR: Invalid argument(s):
	[1] = "const string&"
The string is invalid and cannot be converted.<br>Invalid argument(s):
	[1] = "const string&amp;"
The string is invalid and cannot be converted.
Exception occurred in method MgUtil.WideCharToMultiByte at line 297 in file 
..\System\Util.cpp





can anybody help me?

Thanks.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



More information about the mapguide-users mailing list