Jump to content
Tuts 4 You
Sign in to follow this  
Freefall63

Listen .v2m module music in VB .NET?

Recommended Posts

hmi222

I think there is a linker option problem. But i doesn't know about that moment... :cry:

Share this post


Link to post
Freefall63

I think there is a linker option problem. But i doesn't know about that moment... :cry:

What do you mean? You said you did compile it.. Just show me in a little video pls :)

Share this post


Link to post
hmi222

What do you mean? You said you did compile it.. Just show me in a little video pls :)

what do yu mean? i thought its not running for yu?

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...

What is to do to avoid this?

or are we talking here against each other?

for me its running. did yu test on another pc?

Im using win7 ultimate.

Share this post


Link to post
Freefall63

It IS running, but only on my system or any windows 7 lol

Share this post


Link to post
MaxENC

201211271754.png

I don't make Play Resource Stream

Please Help Me :(

Share this post


Link to post
Kurapica

Sorry ! I really don't understand your english !

Share this post


Link to post
Freefall63

Well I´ll take a look into this.

Share this post


Link to post
Freefall63

Try this:


Dim Bytes() As Byte = {SB.Length - 1}

I just saw that the magic dll was used, but I can´t find it in this package. You´ll need to include and set a reference to it to get it working.

Edited by Freefall63 (see edit history)

Share this post


Link to post
Kurapica

1- Use the right root namespace to identify the resource not the assembly name

2- Change target cpu to 0x86

3- change build type of the "chip.v2m" to "Embedded resource" , It was "none" in your case !

v2m Player_fixed.rar

Share this post


Link to post
MaxENC

Kurapica : Thank you brother :)

but different v2m music not play :(

201211280156.png

??? :cry:

Share this post


Link to post
Kurapica

I mentioned that some V2M tracks are not supported by this DLL, you have to contact the Author or use a compatible track.

Share this post


Link to post
Kurapica

Some V2M tracks compatible with Magic DLL

V2M.rar

Share this post


Link to post
Freefall63

You can find more on my ftp above :P

Share this post


Link to post
Freefall63

Well these are all native C++ Solutions. I would prefer an full managed way so I´ve started a codeplex Project here:


 


http://nv2.codeplex.com/


 


I tried to convert the C++ Project into vb .net with a tool and could Need further help now. If you´re interested in that


you are welcome to join the Project Team. Without help I won´t be able to get it working alone.


Edited by Freefall63 (see edit history)

Share this post


Link to post
Kurapica

Hi


 


I have few suggestions


 


1 - Why insist on a Managed DLL to play the V2M tracks ? in the end the same sound will come out of the speakers.


2 - You can embed the native DLL into the managed exe as I have posted an example earlier.


3 - VB.NET is not the correct choice to port the C++ code, the original C++ code will definitely contain pointers and some other Memory functions which will be a nightmare if even possible with VB.NET.


4 - Try to use C# if you still insist on the managed DLL, C# supports a feature called "Unsafe Code", It will be easier when you port C++ code.


5 - The managed exe relies on Native DLLs to run in Windows so don't believe any one who tells that using native DLLs in managed exes is a bad practice,


 


Good luck.


Share this post


Link to post
Freefall63

:D Well you are right, but:


 


- dmex doesn´t work because of dep issue


- molebox is too expensive and I hate the nag of the demo version


- C# is  more or less the same as vb .net. So this really doesn´t matter. (only different Syntax...)


- False, VB supports unsafe code.


- I don´t like to extract it from ressource, because this is noobish and fills temp with waste... even if you clean it up afterwards.


- I don´t know a packer that packs mixed mode assemblies, so the netmodules are no Option. (Tried to make one today, didn´t even get it linked lol)


- Sure it is a nightmare, that´s why I Need help dude... I thought there would be somebody who has the skill and the will to help me, since kb and ryg don´t answer -.-


- I know that the V1.5 uses direct Sound (dsound.dll, which is native coded in C++ 8 or 9 and not available on old OS but gives quite nice effect possibilities),


  but it is definately possible as you can see e.g. at NVorbis, NAudio, .NET FLAC, Sharpmod ...  VB is not that strong, but also able.


 


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


 


 


:P I know I´m hard to satisfy :D


 


--> So if you could help me compiling a valid netmodule I would stop working on that, although it wouldn´t make me completely happy.


 


See attached the object files of the C++ Player we will Need for the netmodule,


libv2_1.5 WOKRING with dsound & C++ 2008.rar

Edited by Freefall63 (see edit history)

Share this post


Link to post
MaxENC

 Newbie : How play v2m1.5 not dll use vb.net projcet ? :( please help  me brother :S


Share this post


Link to post
Kurapica

- molebox is too expensive and I hate the nag of the demo version

 

Maybe you can use the cracked version as long as your stuff is not commercial ?

 

 

- False, VB supports unsafe code.

 

 

VB.NET is more restrictive than C# in this respect. It does not permit the use of unsafe code under any circumstances.

 

http://msdn.microsoft.com/en-US/library/vstudio/t2yzs44b.aspx

http://msdn.microsoft.com/en-US/library/vstudio/chfa2zb8.aspx

 

 

- I don´t like to extract it from ressource, because this is noobish and fills temp with waste... even if you clean it up afterwards.

 

I think you have no idea what resource means ?

we usually refer to internal PE resources and not any other binaries needed by the program and placed in a nearby folder.

 

 

I wish I could help but I have no time these days...

 

good luck

Share this post


Link to post
Freefall63
Maybe you can use the cracked version as long as your stuff is not commercial ?

 

 

That is not a real solution for me.

 

 

VB.NET is more restrictive than C# in this respect. It does not permit the use of unsafe code under any circumstances.

 

 

Ok you are right, just looked it up, sry for that. It seems in fact to be the main difference, lol.

 

 

 

I think you have no idea what resource means ?

we usually refer to internal PE resources and not any other binaries needed by the program and placed in a nearby Folder.

 

 

Of course I know what Resources are -.- It´s a fact that you can use any dll from ressource by extracting it from there to the harddisk at runtime.

 

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

I´ll see what I can do and how far I can get alone with NV2. But I would be glad to know you in my team when you have the time and motivation. Perhaps there are some other People interested, too.

 

 

Cheers mate.

Edited by Freefall63 (see edit history)

Share this post


Link to post
Freefall63

Well, I tried to work without dmex with hmi222´s dll, but wasn´t successful. Is there a way to get the dll Export arguments? Or could you help me to fix it?

thx
 

V2m 1.5 Player.rar

Edited by Freefall63 (see edit history)

Share this post


Link to post
hmi222

Ok, here's a test for VB.net and the new V2M V1.5 replayer WITHOUT DLL,


It uses STATIC LIB. 


What a fu.... that .net 


 


@Freefall63:


I converted yur sound to V2M V1.5, it was built with before 1.5 (Wrong VSTI).


 


@everybody:


Please test the attachment. 


If it runs i'll comment the code for usage and then i'll post here.


 


 


 


For_Freefall63_V2M_V15 with StaticLib.zip

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×
×
  • Create New...