x


I need to access the handle of the window for a dll ...

Hello, Been some time sense I have been on here last... Anyway, I have a way to play MIDI files on unity... I use a .dll... This dll requires a window handle though... How do I access the editor window handle or the executable handle? or if need be, create a new window form? I know I need to use using system.windows.forms but unity throws an error. also The dllimport thing looks kinda like this.

[Dllimport("midi.dll",CallingConvention= Callingconvention.cdecl)
public static extern double midi_init_ext(Double windowHandle, Double Device);

This is a very easy approach in C# alone but It is causing me a problem in unity... Thanks to all in advance

more ▼

asked May 18 '12 at 06:09 PM

RMsoftware1 gravatar image

RMsoftware1
31 4 7 9

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x231
x54
x7

asked: May 18 '12 at 06:09 PM

Seen: 476 times

Last Updated: May 18 '12 at 06:09 PM