[Year 12 SofDev] VB.NET question

Poultney, Gordon A Poultney.Gordon.A at edumail.vic.gov.au
Mon May 21 11:13:30 EST 2012


hi Kelly,
without looking at the code it is guesswork but perhaps you aren't including the sound files with the exe when you distribute?

ie if the sound files reside in the bin folder with the exe you would have coded something like:
 My.Application.Info.DirectoryPath & "\yourfile.wav"

Then when you distribute the exe, the relevant files must be copied into the same folder as the exe.

(There are much better ways to do this too!)

cheers
          Gordon

-----------
Gordon Poultney
Horsham College
________________________________
From: sofdev-bounces at edulists.com.au [sofdev-bounces at edulists.com.au] on behalf of Ryan, Kelly L [ryan.kelly.l at edumail.vic.gov.au]
Sent: Monday, 21 May 2012 10:27 AM
To: sofdev at edulists.com.au
Subject: [Year 12 SofDev] VB.NET question

I’ve had my students making programs that include sound and multiple forms. The programs work fine within VB, but when it comes to compiling them so that we can give them to some users to test as an executable the primary form works, but the sounds won’t work and the other forms won’t open.

Any suggestions?

Kelly Ryan
Educational Leader – Curriculum
Drouin Secondary College
Main Sth Road, Drouin 3818
(03) 5625 1002


Important - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Early Childhood Development.

Important - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Early Childhood Development.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20120521/9700d3b5/attachment.html 


More information about the sofdev mailing list