CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: ch701builder

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    7,017

    Re: Setting char value

    Easy fix.
    Thanks for the response.

    Keith
  2. Replies
    3
    Views
    7,017

    Setting char value

    All, I have attached a snapshot of the issues I am dealing with.

    const char CR = '\13';
    const char LF = '\10';

    const char CR2 = '\15';
    const char LF2 = '\12';

    In the locals watch...
  3. Re: Run-time error '8020' Error reading comm device

    I have written a quick COM program that seems to be working ok. now.... quick question:

    What is the equivalent to VB 'unload'? This gets called when there are things you want done when the...
  4. Re: Run-time error '8020' Error reading comm device

    OK, I tried that, now... all my existing code doesn't load under VB2010. I can not expand my current VB5 programs into VB2010. Am I gonna have to re-write all my existing code to make it run under...
  5. Re: Run-time error '8020' Error reading comm device

    OK, I know this has been a long time ago. but.... I am using VB5 and have had very good luck with my past Serial comms to 10-20 different RS-232 devices (including USB CDC devices). NOW.. I have a...
  6. Replies
    15
    Views
    5,955

    Re: Direct Soundcard Control

    Thanks Gremmy, but.... even though the timer is set to 1ms, you only have accuracy to 10ms. but.... here is what I did to fix it.......

    I still use DSB(0).Play DSBPLAY_DEFAULT so it plays once....
  7. Replies
    15
    Views
    5,955

    Re: Direct Soundcard Control

    Hi Gremmy, Correct, I can get a nice constant tone out, but.... I need to have control of the amplitude (volume) to an accuracy of each cycle. Even putting the following:

    dsb(0).play...
  8. Replies
    15
    Views
    5,955

    Re: Direct Soundcard Control

    Gremmy,
    I found some code for what I think is DirectSound. The Sine...zip file is the original, and I have similified it to test4gremmy.zip

    (Sine...zip is VB6 & test4gremmy.zip is VB5) (I don't...
  9. Replies
    15
    Views
    5,955

    Re: Direct Soundcard Control

    OK, I can create the array with the correct values, but how do I pass it to playsound, when it is looking for a filename to play? Sorry for the illiteritcy (sp?) Keith
  10. Replies
    15
    Views
    5,955

    Re: Direct Soundcard Control

    Gremmy, You know, If I could figure out how to send just 1 cycle of a sine wave at 1KHz or (1ms) at different amplification levels, then the rest should be easy. What do you think?
    Keith
  11. Replies
    15
    Views
    5,955

    Re: Direct Soundcard Control

    Thanks, I understand the function calls, but I want to do more than play, stop, ff, rew, etc.....
    Keith
  12. Replies
    15
    Views
    5,955

    Re: Direct Soundcard Control

    Gremmy,
    Thanks for the reply, but..., the examples just show how to play a wav file. I want to be able to setup the attack, sustain, decay, and release of A single wave form and control the...
  13. Replies
    15
    Views
    5,955

    Direct Soundcard Control

    All, I am trying to directly control the built-in soundcard in my laptop. I know how to play MP3s and WAVs and such. I want to be about to directly control the soundcard and produce my own waveforms...
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured