Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

baker_tony

@baker_tony
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Return String array from C++ ATL Server Web Service
    B baker_tony

    Hi, I want to be able to pass back an array of CString's from an ATL Server Web Service to a C# web Form's application. Any ideas on how to do this? e.g. here is example code on returning a single string (a BSTR): namespace MyLabService { // all struct, enum, and typedefs for your webservice should go inside the namespace // IMyLabService - web service interface declaration // [ uuid("911E5A7B-194B-4070-B080-36234B341D15"), object ] __interface IMyLabService { // HelloWorld is a sample ATL Server web service method. It shows how to // declare a web service method and its in-parameters and out-parameters [id(1)] HRESULT HelloWorld([out, retval]BSTR *bstrOutput); }; // MyLabService - web service implementation // [ request_handler(name="Default", sdl="GenMyLabWSDL"), soap_handler( name="MyLabService", namespace="urn:MyLabService", protocol="soap" ) ] class CMyLabService : public IMyLabService { public: // This is a sample web service method that shows how to use the // soap_method attribute to expose a method as a web method [ soap_method ] HRESULT HelloWorld(/*[out, retval]*/ BSTR *bstrOutput) { CComBSTR bstrOut(L"Hello World"); *bstrOutput = bstrOut.Detach(); return S_OK; } }; // class CMyLabService } // namespace MyLabService Instead of: [id(1)] HRESULT HelloWorld([out, retval]BSTR *bstrOutput); I would like something like: [id(1)] HRESULT HelloWorld([out, retval]vector *Output); I would really appreciate help on this one!!!! Cheers, Tony.

    ATL / WTL / STL c++ tutorial csharp wcf graphics
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups