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 7162295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:42:40+00:00 2026-05-28T13:42:40+00:00

I am studying the Windows programming by using the book Programming.Windows.5th.Edition(Charles Petzold). When I

  • 0

I am studying the Windows programming by using the book

Programming.Windows.5th.Edition(Charles Petzold).

When I doing the Figure 3-1. The HELLOWIN program,I find that when I use the hotkey ctrl+F5 to run the exe,I can hear the sound(Hello windows 98),but when I run the exe in the directory Debug,no sound could be heard.After putting the exe together with HelloWin.wav,everything is OK.How could this happen?I am using the win7(simplified Chinese Edition) and Visual Studio 6(Enterprise Edition.)

enter image description here

  • 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-28T13:42:41+00:00Added an answer on May 28, 2026 at 1:42 pm

    Presumably this is an issue of relative paths. My guess is that you refer to the .wav file using a relative path and just name it "HelloWin.wav". This is relative to the current directory.

    When you double click the .exe the current directory is the exe directory and the .wav is not found. When you press Ctrl+F5 from the IDE, the IDE sets the current directory to be the project directory and thus the file is found.

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

Sidebar

Related Questions

I'm studying this book (Addison Wesley Windows System Programming 4th Edition) and I think
I'm using a book for studying for .NET certification, and I'm stumped on the
I'm using ghdl+gtkwave for studying, on Windows 7. I run simulations by calling some
I'm studying security, and I would like to know: in Windows or Unix based
Just studying the C style of Jon Bentley's Programming Pearls and was wondering if
Since I started studying object-oriented programming, I frequently read articles/blogs saying functions are better,
I'm studying about windows and DLL stuffs and I have some question about it.
Sorry if this question was asked already. I started studying C# and noticed that
While studying different programming languages, I recently hit upon Icon programming language . It
While studying the book Introduction to Algorithms by Cormen, I found a strange thing.

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.