469,904 Members | 1,898 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,904 developers. It's quick & easy.

can someone help convert this from c# to vb.net? (pocket pc voice recorder)

Can someone convert this code to vb.net?
it is a voice recorder for pocket pc.
many thanks !


the code:

using System;
using System.Data;
using System.Runtime.InteropServices;

/// <summary>
/// Creates an instance of the shell voice recorder
/// </summary>
public class VoiceRecorder
//API Declares

protected unsafe struct CM_VOICE_RECORDER
public int cb;
public uint dwStyle;
public int xPos, yPos;
public IntPtr hwndParent;
public int id;
public String lpszRecordFileName;

[DllImport("voicectl.dll", CallingConvention=CallingConvention.Cdecl)]
private static extern IntPtr VoiceRecorder_Create(ref CM_VOICE_RECORDER

//end api delcare

private CM_VOICE_RECORDER voicerec;
private IntPtr handle;

public unsafe VoiceRecorder()
voicerec = new CM_VOICE_RECORDER();
handle = new IntPtr();
voicerec.cb = (int)Marshal.SizeOf(voicerec);
voicerec.lpszRecordFileName = \\My Documents\\VoiceControl.wav;
voicerec.xPos = -1;
voicerec.yPos = -1;
//show the voice recorder
public void Show()
handle = VoiceRecorder_Create(ref voicerec);
Jul 21 '05 #1
2 1720
Hi Mad,

Will you be so kind not to multipost, nobody in the dotnet newsgroups has
problems with crossposting, sending one message to more dotnet newsgroup in
one time.

Than we can see if your question is answered.

Jul 21 '05 #2
you know, i just realized that my questions on this message board are
getting posting to USENET as well. had no idea...

sorry about that !

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by m.lahlouh | last post: by
1 post views Thread by Fab | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.