Freefall63 Posted October 20, 2012 Posted October 20, 2012 (edited) Hey guys,I made some .v2m music on my own and would like to play them statically in vb 2008 .NET,because this is my favourite language. All I could find on the net was a c++ project, a delphi .dll anda vb 6 native project with a modified linker to link a v2m lib. Now I need to ask, is there any way?Greetz,Freefall- Attachment: My v2m music file and the magicv2m.dll delphi sound engine and some other useful stuff.V2.rarV2m plugins & projects.rar Edited October 20, 2012 by Freefall63
Freefall63 Posted October 21, 2012 Author Posted October 21, 2012 Is there really nobody that wants to help me?
hmi222 Posted October 22, 2012 Posted October 22, 2012 (edited) Hey guys,I made some .v2m music on my own and would like to play them statically in vb 2008 .NET,because this is my favourite language. All I could find on the net was a c++ project, a delphi .dll anda vb 6 native project with a modified linker to link a v2m lib. Now I need to ask, is there any way?Greetz,Freefall- Attachment: My v2m music file and the magicv2m.dll delphi sound engine and some other useful stuff.This lib is a bit older. Farbrausch released V1.5 some time ago.Grab the source code of the V2 Lib here and try to interface to .nethttps://github.com/f.../tree/master/v2Have fun... Edited October 22, 2012 by hmi222
Freefall63 Posted October 22, 2012 Author Posted October 22, 2012 Ah thx dude for remind me theyĀ“ve already published their sources. Well IĀ“ve still no idea how to start...
hmi222 Posted November 20, 2012 Posted November 20, 2012 (edited) Try this fast test, not all V2M funktions are implemented.Its C# and im not a .net coder.I think yu can easily convert to vb.net.Its based on Ufo-Pussys dmex.codedmex_V2M_v15.zip Edited November 20, 2012 by hmi222 1
Kurapica Posted November 21, 2012 Posted November 21, 2012 chech out this topic : http://forum.tuts4yo...al-dlls-from-c/I also added an old example with "MagicV2mEngine.dll"you can also embed this dll into your final EXE using a recent version of MoleBox and there will be no external Dlls.V2M Music.rar 1
Freefall63 Posted November 21, 2012 Author Posted November 21, 2012 Great, thank you guys! IĀ“ll take a look into that. @Kurapica: I also need to thank you for the c# ufmod netmodule tutorial, it was great! Is there also a batch script for VB .NET?
Freefall63 Posted November 21, 2012 Author Posted November 21, 2012 @hmi222: Woher hast du diese V2_DLL.dll??? Das ist C++, sag bloĆ du hast diesen behinderten scheiĆhaufen von farbrausch quellcode kompilieren kƶnnen Ćbrigens funzt das anscheinend bei mir nicht, beim start gibts gleich mal ne dmex fehlermeldung "Entrypoint not valid or not found." und daraufhin sofort diese exception "Could not map v2m!". Hab die plattform jetzt auf x86 konfiguriert aber es hat sich nix geƤndert. Dein code muss soweit auch stimmen, kompilieren kann ich das ja auch...
Freefall63 Posted November 21, 2012 Author Posted November 21, 2012 (edited) Sry forgot to switch back to English^^ Well KurapicaĀ“s project didnĀ“t work either, IĀ“ve uploaded the error screen. Never saw that error lol Edited November 21, 2012 by Freefall63
Kurapica Posted November 21, 2012 Posted November 21, 2012 of course It won't work, because I'm sure you have a 64 bit OS and as you can see, the exe doesn't have the 32bit required flag set ...Open the Project and change the Target CPU to 0x86 and It should work .. this is necessary because the external DLL is a 32 bit module.
Kurapica Posted November 21, 2012 Posted November 21, 2012 @Freefall : the same topic , http://forum.tuts4you.com/topic/27912-play-xm-chips-without-additional-dlls-from-ccontains the VB.NET version too, check the attachements.
Freefall63 Posted November 21, 2012 Author Posted November 21, 2012 (edited) I already set it to x86, and look at the picture, there is no HResult exception. the error came from this line: V2mPlayFile(CD.FileName, True) It seems to have problems with reading from memory o.Ć PS: Thanks for the link, finally I can use netmodules in vb now YEY! Edited November 21, 2012 by Freefall63
Kurapica Posted November 22, 2012 Posted November 22, 2012 sorry I don't understand german or that language, but I remember that the DLL fails playing some V2M modules, could be a format problem or something like that.
Freefall63 Posted November 22, 2012 Author Posted November 22, 2012 ItĀ“s an old v2m file, so thatĀ“s not the case. I already know of this issue What else may be the problem?
Kurapica Posted November 22, 2012 Posted November 22, 2012 send me your Project if possible otherwise I can't guess in the dark ! It will be an opportunity to install Visual Studio again after all this time
Freefall63 Posted November 23, 2012 Author Posted November 23, 2012 Ok let me see, do you have some time this evening? It would be much faster if we work together on that with teamviewer.
hmi222 Posted November 24, 2012 Posted November 24, 2012 @Freefall63 Woher hast du diese V2_DLL.dll??? Das ist C++, sag bloĆ du hast diesen behinderten scheiĆhaufen von farbrausch quellcode kompilieren kƶnnen Ćbrigens funzt das anscheinend bei mir nicht, beim start gibts gleich mal ne dmex fehlermeldung "Entrypoint not valid or not found." und daraufhin sofort diese exception "Could not map v2m!". Hab die plattform jetzt auf x86 konfiguriert aber es hat sich nix geƤndert. Dein code muss soweit auch stimmen, kompilieren kann ich das ja auch... Is your OS 64bit? So i think thats a problem to replay that way. If so, try to test on 32bit. all examples in this post are working for me, also Kurapica's too!
Kurapica Posted November 24, 2012 Posted November 24, 2012 1 - start a "cmd.exe" as an administrator 2 - Type "bcdedit.exe/set {current} nx AlwaysOff" + Enter 3 - Restart Windows Not my fault, I didn't code that DLL or add that silly DEP crap feature to windows
Freefall63 Posted November 25, 2012 Author Posted November 25, 2012 1 - start a "cmd.exe" as an administrator 2 - Type "bcdedit.exe/set {current} nx AlwaysOff" + Enter 3 - Restart Windows Not my fault, I didn't code that DLL or add that silly DEP crap feature to windows Yes! ItĀ“s working now, great! I only have two questions left: 1. Where do you have these v2m c++ playback dlls / projects from 2. Do I need to repeat these steps when I want to run my app on another computer?
Kurapica Posted November 25, 2012 Posted November 25, 2012 Q1 : I made these forms with Visual studio 2008Q2 : most probably it will work on Windows XP without these steps, but on Windows Vista or 7 there is no guarantee, maybe you should find another DLL that doesn't mess with DEP ?another solution that I didn't test and to avoid turning off DEP, use a recent version of MoleBox, Create an executable pack and make sure to add the V2M DLL to the package, It may work normally on any PC. 1
hmi222 Posted November 25, 2012 Posted November 25, 2012 (edited) Freefall63:Yes! ItĀ“s working now, great! I only have two questions left:1. Where do you have these v2m c++ playback dlls / projects from2. Do I need to repeat these steps when I want to run my app on another computer?Which examples (dll's) are working now?Could yu please detail something more?to nr 1:The V2_DLL.dll was compiled by me, based on the sources of the new V2M Format Version 1.5 by kb/Farbrausch. http://1337haxorz.de/products.html#v2So there could be made more modifications.The MagicV2mEngine.dll was done by magic_h2001 ( http://magic.shabgard.org/) based on the V2M format before V1.5. I think yu can find magic_h2001 here on the forum. Edited November 25, 2012 by hmi222
Freefall63 Posted November 25, 2012 Author Posted November 25, 2012 (edited) Which examples (dll's) are working now?Could yu please detail something more?to nr 1:The V2_DLL.dll was compiled by me, based on the sources of the new V2M Format Version 1.5 by kb/Farbrausch. http://1337haxorz.de/products.html#v2So there could be made more modifications.Your example works for me when I disable DEP. F*** this DEP s*** - it doesnĀ“t work on any other pc because of this dep issue...How exactly did you compile a dll out of that example on http://1337haxorz.de ? I couldnĀ“t even compile the example project xDPerhaps you could make a little tutorial for me to learn from you? Edited November 25, 2012 by Freefall63
Freefall63 Posted November 25, 2012 Author Posted November 25, 2012 Q1 : I made these forms with Visual studio 2008Q2 : most probably it will work on Windows XP without these steps, but on Windows Vista or 7 there is no guarantee, maybe you should find another DLL that doesn't mess with DEP ?another solution that I didn't test and to avoid turning off DEP, use a recent version of MoleBox, Create an executable pack and make sure to add the V2M DLL to the package, It may work normally on any PC.Q1 : Of course you made the forms with VS 2008, but how did you compile the dll?Q2 : I tried molebox some time ago to include the bass.dll, however that didnĀ“t really work...
Kurapica Posted November 25, 2012 Posted November 25, 2012 Freefall63 : Why don't you calm down ? we all can use the F language skillfully so please keep the tone down.I didn't compile the DLL myself but I found it in a package made by mudlord If I remember correctly.Maybe you should try a recent version of Molebox again and make sure It works before jumping to false conclusions. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now