home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
UK Digital Interactive - Red Button (MHEGPlugin)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="PMKnecht" data-source="post: 228506" data-attributes="member: 53841"><p>C# seems to be way cooler than i thought <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Can you please add something like:</p><p></p><p>using System.Runtime.InteropServices;</p><p>...</p><p></p><p>namespace MHEG</p><p>{</p><p> public interface ICreateFactory</p><p> {</p><p> IMHEG CreateEngine(IMHContext context);</p><p> }</p><p></p><p> [ClassInterface(ClassInterfaceType.None)]</p><p> public class MHEGEngineFactory : ICreateFactory</p><p> {</p><p> public IMHEG CreateEngine(IMHContext context)</p><p> {</p><p> return new MHEngine(context);</p><p> }</p><p> }</p><p>}</p><p></p><p>in your application? It tooked a while to understand how this works <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Maybe just a suggestion: The graphics class are not available on other languages. Could you either use an interface which requires all canvas actions (PutPixel, DrawLine etc.) instead? If not a simple render all in a HBITMAP would also work.</p></blockquote><p></p>
[QUOTE="PMKnecht, post: 228506, member: 53841"] C# seems to be way cooler than i thought :) Can you please add something like: using System.Runtime.InteropServices; ... namespace MHEG { public interface ICreateFactory { IMHEG CreateEngine(IMHContext context); } [ClassInterface(ClassInterfaceType.None)] public class MHEGEngineFactory : ICreateFactory { public IMHEG CreateEngine(IMHContext context) { return new MHEngine(context); } } } in your application? It tooked a while to understand how this works :) Maybe just a suggestion: The graphics class are not available on other languages. Could you either use an interface which requires all canvas actions (PutPixel, DrawLine etc.) instead? If not a simple render all in a HBITMAP would also work. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
UK Digital Interactive - Red Button (MHEGPlugin)
Contact us
RSS
Top
Bottom