Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MSDN example code generates hard-coded brekapoint.

MSDN example code generates hard-coded brekapoint.

Scheduled Pinned Locked Moved C / C++ / MFC
debugginghelptutorialquestion
7 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    redeemer
    wrote on last edited by
    #1

    I just tried to run some code i got directly from MSDN, non-modified, but at the acmFormatChoose line it gives me a message about a "breakpoint called from code at 0xXXXXXX", anyone have a clue what's wrong?

    MMRESULT mmr;
    ACMFORMATCHOOSE afc;
    WAVEFORMATEX wfxSelection;
    WAVEFORMATEX wfxEnum;

    // Initialize the ACMFORMATCHOOSE members.
    memset(&afc, 0, sizeof(afc));

    afc.cbStruct = sizeof(afc);
    afc.fdwStyle = 0L; // no special style flags
    afc.hwndOwner = ghWnd; // hwnd of parent window
    afc.pwfx = &wfxSelection; // wfx to receive selection
    afc.cbwfx = sizeof(wfxSelection);
    afc.pszTitle = TEXT("16 Bit PCM Selection");

    // Request that all 16-bit PCM formats be displayed for the user
    // to select from.
    memset(&wfxEnum, 0, sizeof(wfxEnum));

    wfxEnum.wFormatTag = WAVE_FORMAT_PCM;
    wfxEnum.wBitsPerSample = 16;

    afc.fdwEnum = ACM_FORMATENUMF_WFORMATTAG | ACM_FORMATENUMF_WBITSPERSAMPLE;
    afc.pwfxEnum = &wfxEnum;

    mmr = acmFormatChoose(&afc);
    if ((MMSYSERR_NOERROR != mmr) && (ACMERR_CANCELED != mmr))
    {
    // There was a fatal error in bringing up the list
    // dialog box (probably invalid input parameters).
    }

    Thankyou in advance. -Rune Svendsen

    T 1 Reply Last reply
    0
    • R redeemer

      I just tried to run some code i got directly from MSDN, non-modified, but at the acmFormatChoose line it gives me a message about a "breakpoint called from code at 0xXXXXXX", anyone have a clue what's wrong?

      MMRESULT mmr;
      ACMFORMATCHOOSE afc;
      WAVEFORMATEX wfxSelection;
      WAVEFORMATEX wfxEnum;

      // Initialize the ACMFORMATCHOOSE members.
      memset(&afc, 0, sizeof(afc));

      afc.cbStruct = sizeof(afc);
      afc.fdwStyle = 0L; // no special style flags
      afc.hwndOwner = ghWnd; // hwnd of parent window
      afc.pwfx = &wfxSelection; // wfx to receive selection
      afc.cbwfx = sizeof(wfxSelection);
      afc.pszTitle = TEXT("16 Bit PCM Selection");

      // Request that all 16-bit PCM formats be displayed for the user
      // to select from.
      memset(&wfxEnum, 0, sizeof(wfxEnum));

      wfxEnum.wFormatTag = WAVE_FORMAT_PCM;
      wfxEnum.wBitsPerSample = 16;

      afc.fdwEnum = ACM_FORMATENUMF_WFORMATTAG | ACM_FORMATENUMF_WBITSPERSAMPLE;
      afc.pwfxEnum = &wfxEnum;

      mmr = acmFormatChoose(&afc);
      if ((MMSYSERR_NOERROR != mmr) && (ACMERR_CANCELED != mmr))
      {
      // There was a fatal error in bringing up the list
      // dialog box (probably invalid input parameters).
      }

      Thankyou in advance. -Rune Svendsen

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      What is wfxEnum? Tomasz Sowinski -- http://www.shooltz.com

      Never argue with an idiot, he'll bring you to his level and beat you with experience.

      R 1 Reply Last reply
      0
      • T Tomasz Sowinski

        What is wfxEnum? Tomasz Sowinski -- http://www.shooltz.com

        Never argue with an idiot, he'll bring you to his level and beat you with experience.

        R Offline
        R Offline
        redeemer
        wrote on last edited by
        #3

        It's a WAVEFORMATEX structure used to restrict the formats showed, so only 16-bits per sample formats are showed in the list.

        T 1 Reply Last reply
        0
        • R redeemer

          It's a WAVEFORMATEX structure used to restrict the formats showed, so only 16-bits per sample formats are showed in the list.

          T Offline
          T Offline
          Tomasz Sowinski
          wrote on last edited by
          #4

          Sorry - I haven't noticed the declaration and was sure that this is your callback. If you want, send me your sources, I'll try to compile/run. Tomasz Sowinski -- http://www.shooltz.com

          Never argue with an idiot, he'll bring you to his level and beat you with experience.

          R 1 Reply Last reply
          0
          • T Tomasz Sowinski

            Sorry - I haven't noticed the declaration and was sure that this is your callback. If you want, send me your sources, I'll try to compile/run. Tomasz Sowinski -- http://www.shooltz.com

            Never argue with an idiot, he'll bring you to his level and beat you with experience.

            R Offline
            R Offline
            redeemer
            wrote on last edited by
            #5

            Sure, can i get your email address?

            T 1 Reply Last reply
            0
            • R redeemer

              Sure, can i get your email address?

              T Offline
              T Offline
              Tomasz Sowinski
              wrote on last edited by
              #6

              Its in the notification messages sent to you by CP server. Tomasz Sowinski -- http://www.shooltz.com

              Never argue with an idiot, he'll bring you to his level and beat you with experience.

              R 1 Reply Last reply
              0
              • T Tomasz Sowinski

                Its in the notification messages sent to you by CP server. Tomasz Sowinski -- http://www.shooltz.com

                Never argue with an idiot, he'll bring you to his level and beat you with experience.

                R Offline
                R Offline
                redeemer
                wrote on last edited by
                #7

                Are they sent to my email or what? cause my email address is runes@hotpop.com

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups