Click here to Skip to main content
15,888,000 members
Home / Discussions / C#
   

C#

 
GeneralRe: vehicle tracking Pin
Eddy Vluggen13-Mar-09 1:33
professionalEddy Vluggen13-Mar-09 1:33 
AnswerRe: vehicle tracking Pin
Michael Bookatz13-Mar-09 0:30
Michael Bookatz13-Mar-09 0:30 
AnswerRe: vehicle tracking Pin
#realJSOP13-Mar-09 2:28
mve#realJSOP13-Mar-09 2:28 
QuestionRunning process under another user account Pin
Paddy Boyd12-Mar-09 23:12
Paddy Boyd12-Mar-09 23:12 
QuestionNeed Help in Developing Basic biometric software using C# and VERILOOK SDK 3.2 for a diploma level student Pin
RogerLum12-Mar-09 21:40
RogerLum12-Mar-09 21:40 
AnswerRe: Need Help in Developing Basic biometric software using C# and VERILOOK SDK 3.2 for a diploma level student Pin
0x3c012-Mar-09 21:45
0x3c012-Mar-09 21:45 
AnswerRe: Need Help in Developing Basic biometric software using C# and VERILOOK SDK 3.2 for a diploma level student Pin
Pete O'Hanlon12-Mar-09 23:38
mvePete O'Hanlon12-Mar-09 23:38 
QuestionMicrosoft.VisualBasic missing namespace Pin
Speedular12-Mar-09 21:33
Speedular12-Mar-09 21:33 
Dear All
I've been trying to code a code that record the users' voice from the mic but I seem to get stuck in some portion in which it keep showing me the error that the Microsoft.visualbasic.devices is missing? any help

here is my code incase the problem is on my code

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.VisualBasic.Devices;  //My problem is here
using Microsoft.VisualBasic;
using System.Runtime.InteropServices;

namespace WindowsApplication1
{
   
    public partial class Form1 : Form
    {

        [DllImport("winmm.dll", EntryPoint = "mciSendStringA", CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true)]
        private static extern int mciSendString(string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback);
    
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void Record_Click(object sender, EventArgs e)
        {
            // record from microphone
            mciSendString("open new Type waveaudio Alias recsound", "", 0, 0);
            mciSendString("record recsound", "", 0, 0);
        }

        private void SaveStop_Click(object sender, EventArgs e)
        {
            // stop and save
            mciSendString("save recsound c:\\record.wav", "", 0, 0);
            mciSendString("close recsound ", "", 0, 0);
            Computer c = new Computer();
            c.Audio.Stop();
        }

        private void Read_Click(object sender, EventArgs e)
        {
            Computer computer = new Computer();
            computer.Audio.Play("c:\\record.wav", AudioPlayMode.Background);
        }

        
    }
}

AnswerRe: Microsoft.VisualBasic missing namespace Pin
0x3c012-Mar-09 21:39
0x3c012-Mar-09 21:39 
GeneralRe: Microsoft.VisualBasic missing namespace Pin
Speedular13-Mar-09 1:39
Speedular13-Mar-09 1:39 
GeneralRe: Microsoft.VisualBasic missing namespace Pin
0x3c013-Mar-09 3:37
0x3c013-Mar-09 3:37 
AnswerRe: Microsoft.VisualBasic missing namespace Pin
sohighthesky12-Mar-09 22:08
sohighthesky12-Mar-09 22:08 
Questionrollover image Pin
karthii2612-Mar-09 21:32
karthii2612-Mar-09 21:32 
AnswerRe: rollover image Pin
Mycroft Holmes12-Mar-09 21:53
professionalMycroft Holmes12-Mar-09 21:53 
AnswerRe: rollover image Pin
0x3c012-Mar-09 21:53
0x3c012-Mar-09 21:53 
AnswerRe: rollover image Pin
Xmen Real 12-Mar-09 23:34
professional Xmen Real 12-Mar-09 23:34 
GeneralRe: rollover image Pin
Michael Bookatz13-Mar-09 0:20
Michael Bookatz13-Mar-09 0:20 
QuestionHow to run C# application as a web service? Pin
ADIDADPU12-Mar-09 21:16
ADIDADPU12-Mar-09 21:16 
AnswerRe: How to run C# application as a web service? Pin
Ashfield12-Mar-09 21:53
Ashfield12-Mar-09 21:53 
QuestionHOW TO FOCUS PARTICULAR CHILD CONTROL OF MULTIPLE USER CONTROL Pin
Member 183966212-Mar-09 21:13
Member 183966212-Mar-09 21:13 
Questionhow to generate a unique name to my application instance? Pin
abhiram_nayan12-Mar-09 21:01
abhiram_nayan12-Mar-09 21:01 
AnswerRe: how to generate a unique name to my application instance? Pin
stancrm12-Mar-09 21:06
stancrm12-Mar-09 21:06 
GeneralRe: how to generate a unique name to my application instance? Pin
abhiram_nayan12-Mar-09 21:35
abhiram_nayan12-Mar-09 21:35 
GeneralRe: how to generate a unique name to my application instance? Pin
stancrm12-Mar-09 21:52
stancrm12-Mar-09 21:52 
GeneralRe: how to generate a unique name to my application instance? Pin
abhiram_nayan12-Mar-09 22:05
abhiram_nayan12-Mar-09 22:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.