Re: another COM-Question: how to inject a type-lib into a dll?



Axel Bock <axel.bock.news@xxxxxxxxxxxxxx> wrote:
> so ... about the idl file. I had a problem with one once: in another
> project I wanted to "serialize" an enumeration (so, basically use an
> int) to call a COM function, and the midl-compiler complained about
> not knowing how to serialize this.
> so let's assume I have about 200 of these, so how do I make them known
> to the midl compiler? I assume I don't have to re-write all of them
> .... right? :)

I don't quite understand the question. Can you show a small code sample
demonstrating what you are trying to achieve?
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Problem with serialization
    ... // This should call the serialize method of a class T ... void serialize ...
    (comp.lang.cpp)
  • Re: int not serializable?
    ... members, properties are serialized & deserialized later. ... bool and an int Member. ... I Serialize this ... > Regards Alexander ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: XML serialization of an Hashtable 2
    ... Why can't I serialize hashtables? ... > public int EventId ... > When I run the webservice, the Event object is being XML serialized> automatically by the run time and then I did not implement any specific> method in the Event object to manually XML serialize my object. ...
    (microsoft.public.dotnet.languages.csharp)
  • serialize a struct
    ... I need to serialize an instance of this struct into a stream of bytes ... SetPrivateData(unsigned char *pData, int nSize); ...
    (comp.lang.c)
  • Re: Newbie serialization question
    ... However, this is the issue (I'm using Delphi, btw), Delphi supports subranges of enumerated types. ... The serialization that I get when I return from the function the object breaks the enumeration due to the fact that the frameworks adds metadata to the subrange enumeration. ... When invoked as a web service, ASP.NET will serialize your return value and embed the return value as a response in a SOAP enveloped which is returned to the client. ...
    (microsoft.public.dotnet.framework.webservices)