Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6357459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:10:13+00:00 2026-05-24T23:10:13+00:00

I have an application where I have wave files embedded as resources. The wave

  • 0

I have an application where I have wave files embedded as resources. The wave files are added as Custom Resources under the type “WAVE”.

Now, I am trying to retrieve the embedded wave files using FindResource() and LoadResource().

Now here’s the problem: I am able to find the bitmap resource using FindResource() but NOT the Wave resources. I am using RT_RCDATA as ResourceType. Here’s the code snippet:

// Load the .EXE file that contains the dialog box you want to copy.
hExe = LoadLibrary(TEXT("C:\\ExternalResource.exe"));
if (hExe == NULL)
{
    //ErrorHandler(TEXT("Could not load exe."));
    return 0;
}

// Locate the Testsong200 resource in the .EXE file.
//hRes = FindResource(hExe, MAKEINTRESOURCE(104), RT_BITMAP);
hRes = FindResource(hExe, MAKEINTRESOURCE(105), RT_RCDATA);
if (hRes == NULL)
{
    //ErrorHandler(TEXT("Could not locate dialog box."));
    return 0;
}

The hRes returns NULL when I use RT_RCDATA.

Any pointers in the right direction will make my day 🙂

regards,
andy.

P.S I tried to upload the screenshot but realised that I need to have 10 rep points to upload one 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:10:14+00:00Added an answer on May 24, 2026 at 11:10 pm

    OK, Got it.

    I need to use FindResource in the following way:

    hRes = FindResource(hExe, MAKEINTRESOURCE(105), _T("WAVE"));
    

    regards,
    andy

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Building a python application that converts raw audio files into wave using sox on
I have Application settings stored under HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany branch. Settings must be same for different
I'm looking into building an IM-type application using Java stack (for the server at
i am building an music application in iphone which i have made using AVAudioPlayer,and
I have a DirectShow application written in Delphi 6 using the DSPACK component library.
I have application that produces files. I would like to connect those files with
I have application written in Java that is using EJB3 + Toplink. I'm using
I have users who are using secure-wave security. Evidently it is some sort of
We have application have been written in Silverlight using MVVM pattern. We need to
I have application which can export slides to PowerPoint. I'm using Microsoft.Office.Interop.PowerPoint.dll . This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.