|
You need to add it as a resource through VisualStudio, not yourself.
|
|
|
|
|
|
In your project you need to create an app.config file - there is a specific item for that when you add an item to the project. This will be set up correctly to be copied and renamed to your bin folder when the solution or project builds. You can check this by selecting properties on the app.config and checking that it says "Content". If this says "resource" it will be embedded in the assembly, which is not what you want.
My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
This is what I meant, not that way exactly, but he could have embeded it and been fine. If he was just reading it.
|
|
|
|
|
Yeah, but why go through the hassle?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ExpertComing wrote:
If he was just reading it.
It's a config file. That means it is used for configuration - configuration often changes, and it needs to be editable by hand, e.g. in notepad.
David
|
|
|
|
|
|
hi
I am making Set up using Visual Studio 2003 fro desktop application(Winform). I want that Some folders should not be deleted while uninstalling the set up
I have made set up when i uinstall the set up it removes all the directory
I want that one folder should not be deleted after uninstallation
Which option or properties i have to select in set up and deploymenet
regards
sanjeev
|
|
|
|
|
Best to explain the system I have and the requirements first.
MS Visual Studio 2003.net and something called "Softwire" which is best explained at www.softwire.com by viewing the examples. Not a spam, you need to know this to understand the question, besides it's freeware. I am not at all experienced with C# or VB but learning a bit as I go along and Softwire is the only way I got up and running at all.
I have the hardware working courtesy of Softwire and what I need to do is make an announcement every time a digital input fires. 48 inputs, 48 possible different sounds.
What I have running (again using Softwire) is a little program that does the input stuff, picks a filename from a text file and then sends that filename to Mplayer2.exe as a parameter. I have also found some code to play .wav files using a form but here's the first part of the question.
There's no sense re-inventing the wheel and Mplayer2 behaves like this. If Mplayer2 is already open and provided the filename exists the filename is passed to the same instance of Mplayer2. If the filename doesn't exist a new instance opens, but that should never happen so I don't really care about that. However there's no parameter I can find that passes both filename and volume setting, and I want some messages louder than others and ideally I want this setting in the play list and not made at record time.
SO switch to the code on the form which I borrowed and modified from some kind person here. With that (Directsound) I certainly can supply a .wav file and a volume as two parameters, but every one opens a new instance so that won't fly at all in the target environment. I have also found some code to deal with the single instance issue which I think (Note I THINK) I can probably incorporate in this so I wind up with an executable that can take [filename] [volume] parameters, but for the sake of getting things up and running quicker can anyone tell me if I have missed something with Mplayer2 because the present system does work well except for the volume.
(Note I do NOT want to use media library or anything fancy - text file to filenames is perfect for this application).
Thanks in anticipation for any suggestions, I have looked around a lot but I figure that just maybe someone here will have gone down this path before
The "Perfect" answer is to write a system that can deal with the announcement volume and also the system volume controls - and also run without a user being logged in - but if you saw my level of expertise with c# you'd assume that won;t be anytime this week .
Once again thanks for any ideas, always appreciated.
Charlie
|
|
|
|
|
The way you are trying to do it may not be possible without doing any code. You many have to write some simple app, or have someone do it for you. And this is not a rent-a-coder website.
|
|
|
|
|
hi all.
i want to know how can i get the ip address of the remote user connected to my server by knowing his network stream any help about that problem please ?
Miss With The Best And Die Like The Rest
|
|
|
|
|
hiii,
if you are using Socket class then after connection established all you have to do is:
IPAddress addr=((IPEndPoint)socket.RemoteEndPoint).Address;
marcoryos
|
|
|
|
|
and you can't if you're using TcpListener
Regards
|
|
|
|
|
|
why not?
TcpListener is server socket. after u start it
Listener.Start();
you can accept connection from
Socket socket=Listener.Accept();
and you can know from socket as i mentioned above who you are connecting with.
marcoryos
|
|
|
|
|
hi all
Miss With The Best And Die Like The Rest
|
|
|
|
|
How can I create a namespace and add it to my project so that i can reference it in my program.
Nana
|
|
|
|
|
Uhhh...try using namespace ?? If you look at any project that you create, you'll see something like this:
using System;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
namespace MyProjectNamespace
{
public class Form1 : Form
{
...
}
}
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello All,
I have an SQL query from a 10 table join. Around 30 fields from the join are displayed on a form and I want to navigate thru them. To achieve this, I have created a VIEW and filling the dataset with this VIEW. But MoveNext and MovePrevious are not working. I am getting the error "Cannot create a child list for the field BrowseShipping" where BrowseShipping is my VIEW that I created.
Is this error something to do with Data Binding?
Is it required to bind all the 30 fields I am displaying on the form for navigation?
If I fill a DataSet with a VIEW...Will this work...?
Please someone help me.
Thanks a billion in advance
Looney
|
|
|
|
|
A view is the same as any other select once it's come back from your database. You don't have to bind all, or even any of your fields for it to work. How do your movenext/moveprevious work ? Are you paging in the database, or in the code ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I tried to use Binding Context in the code to navigate and it doesnt work at all.
Do you have any better idea.
Thanks a lot
Looney
|
|
|
|
|
You've lost me completely here. A google for BindingContext in C# brought up the WinFX docs. Could you please explain exactly what you're doing - posting some code would be even better.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am creating a View(BrowseShip) and filling it in a dataset.
string sSQL = "Create VIEW BrowseShip AS SELECT A.CUST_CustomerICA, A.CUST_CustomerName..."
ds1 = new DataSet();
da1 = new SqlDataAdapter(sSQL, con);
da1.Fill(ds1, "BrowseShip");
And in MovePrevious click of button I am trying to do the below which actually throws the error...
this.BindingContext[this.ds1,"BrowseShip"].Position =
this.BindingContext[this.ds1, "BrowseShip"].Position - 1;
this.da1.Update(this.ds1);
I am not setting current position any where. I dont know anything abt navigation in .NET. In VB6 it was very simple...
Thanks in advance
Looney
|
|
|
|
|
> string sSQL = "Create VIEW BrowseShip AS
> SELECT A.CUST_CustomerICA, A.CUST_CustomerName..."
This statement is simply creating a view in the SQL Server database, which then you can query like a single table. You would create the view only once (for instance with SQL Server Query Analyzer) and then define a SELECT statement to use with the adapter :
(only once
string sSQL1 = "Create VIEW BrowseShip AS SELECT A.CUST_CustomerICA AS C_ICA, ...";
string sSQL2 = "SELECT C_ICA, ... FROM BrowseShip WHERE... ORDER BY...";
SqlCommand cmd = new SqlCommand(sSQL2, cn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
cn.Open(); // Connection Open
da.Fill(ds, "BrowseShip");
cn.Close();
===
Hope this helps, the pro's here might correct me if I'm wrong...
|
|
|
|
|
I tried to do the way you explained...still it doesnt work...
It says cannot create a childlist for the field BrowseShip. BrowseShip is the view I created.
Do I need to bind controls on form to resultset like what we used to do in VB6...
Thanks
Looney
|
|
|
|