|
Perhaps the reference in the client class is pointing to a local copy of the library (and not the library's /bin instance)?
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Ok perhaps it is......
what do i do???
if it is not what do i do???
-- modified at 11:01 Saturday 28th January, 2006
Perhaps the reference in the client class is pointing to a local copy of the library (and not the library's /bin instance)?
How and where do i check to see if it is pointing to a local copy of the library???
Thanks for replying
|
|
|
|
|
Modify the reference (in your client project) to point to the dll in the library's /bin/Debug (and /bin/Release for the release configuration) folder. When you (re)build your client project, the latest versions of the appropriate DLLs will be copied (if necessary) from the library's folders into your client's.
Hope this helps!
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
I assume the class library is not part of the same solution? In that case, add a reference to the DLL, then right click on the reference in Solution Explorer, click Properties and set Copy Local to false.
If it's part of the same solution, then when adding the reference, add it from the Projects tab in the "Add Reference" dialog box.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
awesome!! got it to work thanks guys
|
|
|
|
|
I need to know if in C# language there's classes that allow me to acceses information from the hard disk.... or if there's an API for that... i'm a begginer in this..
El sammy
|
|
|
|
|
|
.NET Framework 2.0 has the DriveInfo class that you can use to get a list of drives and info about each of them.
--
Hello, I'm a signature virus. Copy me into your signature to help me spread.
|
|
|
|
|
hi, i need create appz for using/control modem v32 bis.
where i can read some manual about this.
thx.
Athlon 64 3500+, Gigabyte GA-K8NXP-9, 2x512 DDR400 Kingston, Inno3d 6200 PCIe, SS2 B2C2 v2.6, HDD := 450gb, Genius 56k int, NEC DVD-RW и мать его Суньмастер 550.
|
|
|
|
|
i want to make a setup project that creats a database to target machine
is there anybody who knows ??
|
|
|
|
|
isnt there anybody who knows how to do this? it is very important and urgent for me
|
|
|
|
|
Hi
Please let me to ask my problem from you.
I want to record user's sound. may be there are several codes to do this.
But I want that my program create blank wave file and then open Windows Sound Recorder that record sound on that blank file.
Openning Sound recorder is easy :
<br />
Using System.Diagnostics;<br />
Process.Start("sndrec32.exe");<br />
How can i create blank file and enforce Sound Recorder to use that file.
Please Help me
Thank You.
-- modified at 5:29 Saturday 28th January, 2006
|
|
|
|
|
Your only bet is finding command line parameters for sndrec32.exe to do that..
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hello Again.
NoBody helped me, But I found my answer myself and I want to share it with everbody.
<br />
using System.Diagnostics;<br />
using System.IO;<br />
Now use this :
<br />
Process.Start("sndrec32","C:\\File1001.wav") ;<br />
Or this :
(I Created new blank Wave File and enforced Sound Recorder to Play it
<br />
string strFilePath="C:\\" + "File1002" + ".wav" ;<br />
File.Create(strFilePath) ;<br />
ProcessStartInfo startInfo = new ProcessStartInfo("sndrec32.exe");<br />
startInfo.Arguments = strFilePath ;<br />
Process.Start(startInfo);<br />
Use it and enjoy!
-- modified at 5:18 Sunday 29th January, 2006
|
|
|
|
|
Hi,
Its giving me a Error like "Can't Open File c:\file001.wav"
I tried both methods of doing that... but both methods are showing me same error..
One more quest abt is how to Record the Sound.. ie process.Start(...) is responsible for opening soundRecord exe after that how to press "Record" button programmatically...
Send me ur suggesstions
|
|
|
|
|
You got problem beacause the file is not exist or its already open !
Use this :
<br />
string strFilePath = @"C:\" + "file1001" + ".wav" ; <br />
FileStream waveFile = File.Create(strFilePath) ;<br />
waveFile.Close() ;<br />
Process.Start("sndrec32",strFilePath) ;<br />
It worked on my system.
|
|
|
|
|
Hey everybody
I'm trying to write a program that will check if my disc-on-key is connected or not. I tried to use the "printer usb connected checker" article as an example, but it doesn't work. can anyone at least give me a small hint on how do I check if a disc-on-key has been connected?
I also thought of checking any changes in the number of drives, but I'm looking for a more elegant way.
Thanks Alot!!!!
|
|
|
|
|
Hi All !!! There are some Projects using NumericUpdown from NumericUpdown Screen without using arrows, moreover there is not any hidden layer too. cause should u set a number with 3 digit the 3.rd digit continous working. The thing I wonder is that is that a new control or a code. Can someone give me some clueas about it.I am really Puzzled. A .Net Vb Or C# code would be enough.
|
|
|
|
|
Hi all,
I "add" a wav file to my project "file.wav" and made it embedded resource.
now i have seen here and micosoft code to read and play it but
its not working..what am i doing wrong?
my code:
private byte[] m_soundBytes;<br />
<br />
private enum Flags<br />
{ <br />
SND_ASYNC = 0x0001, <br />
SND_MEMORY = 0x0004, <br />
}<br />
[DllImport("winmm.dll",CallingConvention = CallingConvention.Winapi)]<br />
static extern int PlaySound(byte[] wfname,int hMod,int sf);<br />
then there is the class WSounds:
<br />
public WSounds(string s)<br />
{<br />
string sss = Assembly.GetExecutingAssembly().GetName().ToString();<br />
Stream a = Assembly.GetExecutingAssembly().GetManifestResourceStream(sss + "." + s);<br />
m_soundBytes = new byte[a.Length];<br />
a.Read(m_soundBytes, 0, (int)a.Length);<br />
}<br />
<br />
<br />
public void Play()<br />
{<br />
PlaySound(m_soundBytes, 0, (int)(Flags.SND_ASYNC | Flags.SND_MEMORY));<br />
}<br />
this line throws exception : m_soundBytes = new byte[a.Length];
so i guess something with the resource is wrong..
i tried another code too:
<br />
System.IO.Stream strTheme = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("file.wav");<br />
byte[] bytTheme = new byte[strTheme.Length];<br />
strTheme.Read(bytTheme, 0, (int) strTheme.Length);<br />
<br />
by the way: how do i need to add a WAV file ? under resources sub-dir or on the main project?
Thanks in advance,
Ran
R.Z
|
|
|
|
|
I had troubles with exactly this stuff last week.
ranzask wrote: this line throws exception : m_soundBytes = new byte[a.Length];
so i guess something with the resource is wrong..
The Stream a is probably null, because the assembly couldn't fine the resource. "file.wav" won't work either, because you have to prefix the file.wav with the project namespace (at least in VB.Net).
You can do
string[] names = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames();
foreach (string name in names){
Debug.WriteLine(name)
} and look for the name you want (this is the way i did it ).
ranzask wrote: by the way: how do i need to add a WAV file ? under resources sub-dir or on the main project?
That doesn't matter. Whatever the folder may be, it doesn't matter for the compiler, just like C# source files.
HTH!
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick || Fold With Us! || Pensieve || VG.Net ||
|
|
|
|
|
Thanks alot !!
i did it and change my resource name to include the namespace too and it worked
Thanks again.
Ran.
R.Z
|
|
|
|
|
[Marc] wrote: because you have to prefix the file.wav with the project namespace (at least in VB.Net).
You have to do it in C#, too. <smile />
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
ranzask wrote: I "add" a wav file to my project "file.wav" and made it embedded resource.
now i have seen here and micosoft code to read and play it but
its not working..what am i doing wrong?
You could check out my article here[^]
Share and enjoy.
Sean
|
|
|
|
|
i allready saw that , its too complicated for me
but i figured out my mistake.
R.Z
|
|
|
|
|
Hi,
Its very complicated to see the code,, so please post ur sample piece of code, and also post what is the problem u are facing and whts the solun you found.. its useful for all the beginners as well as developers..
Bye
|
|
|
|