Welcome to the Xceed Community | Help
Community Search  
More Search Options

In with .NET out with unmanaged C++

Sort Posts: Previous Next
  •  02-09-2010, 7:19 PM Post no. 25722

    In with .NET out with unmanaged C++

    I'm new to XCeed so maybe someone can help me.

    I am compressing an byte[] in C# using .NET and then passing that compressed buffer down through a web service into on C++ code.

    My C# code looks like this:

    Byte[] compressedRespBytes = Xceed.Compression.QuickCompression.Compress(data, Xceed.Compression.CompressionMethod.Deflated, Xceed.Compression.CompressionLevel.Normal);

    and my C++ code looks like this:

    int nCode = XcUncompress( hCompress, inputBytes, bytesLen, &uncompressedOut, &pdwUncompressedSize, bEndOfData );

    I'm getting an "Unknown Method Error".

    When I call this:

    UINT testVal = XcGetCompressionMethod( hCompress);

    testval comes back as "Deflated" so why doesn't UnCompress work?

     

    Can someone point me in the right direction to get this to work?

    Thanks,

    Jedk

     

  •  02-10-2010, 10:11 AM Post no. 25734 in reply to 25722

    Re: In with .NET out with unmanaged C++

    I've tested this with all kinds of scenerios.
    I've used all the compression methods.
    I tried "No Compression" also which gave me a 1004 error.
    I am convinced the .NET compression is not compatible with the ActiveX decompression.

     Can somebody confirm this?

    Thanks,

    JedK

  •  06-01-2010, 8:50 AM Post no. 27033 in reply to 25734

    Re: In with .NET out with unmanaged C++

    I have same problem too
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.