User Profile

Collapse

Profile Sidebar

Collapse
claudio74
claudio74
Last Activity: Mar 5 '08, 04:21 PM
Joined: Oct 3 '06
Location: Switzerland
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi!

    I found the answer (at least a part) by myself:

    I need to declare the C# interface as follows:

    Code:
    public interface IMessageRouterInterface
    
    {
    
    void SendStruct([MarshalAs(UnmanagedType.Struct)]CSTestProperties oTestData);
    
    }

    and then I can pass the struct on the CPP side as:


    Code:
    MyInetrop::CSTestProperties oTestProperties;
    ...
    See more | Go to post

    Leave a comment:


  • claudio74
    started a topic How to pass a struct from C++ to C# COM objet?
    in .NET

    How to pass a struct from C++ to C# COM objet?

    Hi,
    this is a mixed C++/C# question, I hope this is the right forum.

    I program in VS2005 on Win2K3
    I need to pass a struct from a C++ application to a C# COM object.

    The interface in the C# COM object is declared as follows:


    Code:
    namespace MyInterop
    
    {
    
    public interface IMessageRouterInterface
    
    {
    
    void SendStruct(CSTestProperties
    ...
    See more | Go to post

  • claudio74
    started a topic How to clear/reset HttpRequest.ClientCertificate?
    in .NET

    How to clear/reset HttpRequest.ClientCertificate?

    Hi,
    once an https connection has been established with a web site, is it possible to clear/reset the HttpRequest.Cli entCertificate in order to prompt again the client to choose another certificate?
    I tried HttpRequest.Cli entCertificate. Clear() and other method but no one works.
    Thanks!
    Claudio
    See more | Go to post
No activity results to display
Show More
Working...