Hi everybody This is the first time I write on the list, hope my topic is accepted. I have been looking in the list archive for answers on this question but no luck and hope that one of you wise people can guide me in the right direction. I have tried to add the DLL in the references list under VB.NET but its not accepted as a NET DLL or COM DLL, and I cant find out how to call it from within VB.NET, could one of you help me with this ?. With best regards and thanks Morten Nielsen
On 2004-12-01 at 11:45:35 Morten Nielsen wrote:> I have tried to add the DLL in the references list under VB.NET but its not > accepted as a > NET DLL or COM DLL, and I cant find out how to call it from within VB.NET, > could one of you help me with this ?.If Ogg_d.dll is what I think it is, it's probably not a .NET or COM library at all, but a normal DLL. So you'll have to import them manually by using a Declare statement. At least, that's how it used to work in VB6: http://msdn.microsoft.com/library/en-us/vbcon98/html/vbconusingdllprocedureinyourapplication.asp I don't know if you can do this at all with .NET, I wouldn't touch that with a 10 foot pole. ;) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 183 bytes Desc: not available Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20041201/bf8cde1b/attachment.pgp
It is indeed a normal DLL. Using declare's, imports, marshalling types and so on in .NET is one way to do it and I've done it months ago. But let me tell you a secret... there's another way which is much faster and more reliable. Using C++ .NET to build a .NET assembly! With C++ .NET you can import the static ogg/vorbis libs directly into your .NET C++ projects and wrap the static lib calls into one-liner functions. I've wrapped Vorbiscomment reading into one-liner functions in a Vorbis.dll of mine just to see if it was possible. I'm sure i've still got the sourcecodeproject somewhere but only if requested i'll try to find it :o) Jacob -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20041201/1e7b4ae7/attachment.html