|
I think the half-shaft giggle pin code was too long.
Clearly, not nearly enough information to be able to help hence my meaningless response.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
I am not getting your question What do you want to know. please be more specific and clear while asking question. if you have some code to share then please share it Otherwise we unable to help you without getting any snaps of your clear question.
|
|
|
|
|
I did the following example from msdn
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc /target:library /out:MathLibrary.DLL Add.cs Mult.cs<br />
<br />
csc /out:TestCode.exe /reference:MathLibrary.DLL TestCode.cs
http://msdn.microsoft.com/en-us/library/3707x96z%28v=vs.80%29.aspx
but how do I do the same thing in GUI of VS? Like having 2 files building a dll and then an exe linked to it?
Thanks.
|
|
|
|
|
In Visual Studio you can:
1.
create a new project using one of the templates; the "Class Library" one would result in a DLL file.
2.
modify the type of an existing project using the project properties (right-click the project in the solution pane), then change the output type.
Once you have a project that generates a DLL, you would need a second project (e.g. a WinForm or Console one) that can use the DLL (add a reference!).
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Isn't it possible to have everything in one project and with one button let it build first all the Dlls and then the depended exe?
Maybe by putting several projects in a workspace?
|
|
|
|
|
No it isn't. One project, one DLL/EXE output file. However you can have several projects in one solution (SLN file).
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
this may confuse the person asking the question... if you want to build a solution with multiple projects (i.e. to build all with one click), its easily done in studio, just create a master solution and pull in the project files from the related projects.
|
|
|
|
|
I think I got it right. As I understood it I have to pull in whole projects, not only files. Considering the above example of Ms, I created a solution and then 2 projects in it, one with the Mult.cs and Add.cs files which generates the dll and another with the contents of TestCode.cs a bit changed as far as its namespace and the references concerns. Then I changed the starting project and generally I played with some VS commands.
|
|
|
|
|
you have to pull in entire projects because that's the only way you'll get the project specific settings and options (such as linker options for each project)
|
|
|
|
|
Well, not only. I think that the only way to have built a dll and a dependent exe is to put them in different projects. That's what I ment. Isn't it right?
|
|
|
|
|
yes, but they can be in the same solution
|
|
|
|
|
and that's what I am saying... They can exist inside the same solution, but not inside the same project.
|
|
|
|
|
yep... that'll facilitate a lot of other things like building an entire solution with a single click and debugging dll/exe source simultaneously.
i have a solution with 26 projects in it (for a large software suite)
|
|
|
|
|
yes its possible, the terminology may sound a bit confusing but its easy... see my comment to luc
|
|
|
|
|
You could, but that's not how it's intended to be used. My first thought on how to do it would be to use a pre- or post-build event.
As luc said -- each project in a solution is intended to produce one executable (EXE or DLL).
|
|
|
|
|
well the concept of a solution is meant to contain multiple projects... and that is the way its meant to be used...
|
|
|
|
|
Yeeesss... isn't that kinda what I said?
|
|
|
|
|
i guess you did, but using pre and post build events for building multiple projects in not a good approach, should be one solution with multiple projects
|
|
|
|
|
Yeeesss... isn't that kinda what I said?
|
|
|
|
|
I have the following problem:
I use Microsoft.DirectX.AudioVideoPlayback class for playing video on our school TV (connected with HDMI also with the sound). Video works fine, but I´ve got a problem with audio. I need to redirect audio (represented by Audio object implemented in my Video object) to another output (Display audio output) in Windows 7. But all other sounds (also from my app) I want to send to default output.
I need to send audio directly from directX playback. I don´t wanna extract audio form AVI for example.
If there is some solution, please answer. Thanks.
|
|
|
|
|
As far as I remember it cant be done with basic audiovideoplayback.
You might want to take a look at DirectShow instead, since you can define exactly what you want the player to do. You can start with the simple-playback sample from http://directshownet.sourceforge.net/[^] and add a DsDevice (aka soundcard output) to the graph (google how to).
|
|
|
|
|
hello , I got exception in my application that is :
Unhandled exception has occurred in yourl application.
Exception form HRESULT 0*800AC472
help me the solution of this problem:
thanks in advance
|
|
|
|
|
Without having more details it is tough to guess the problem. Here[^] is something that may help.
|
|
|
|
|
I think , i should range in this code please help me how i use range in this code
private Excel.Application app = null;
private Excel.Workbook workbook = null;
private Excel.Worksheet worksheet = null;
object misValue = System.Reflection.Missing.Value;
public void createDoc()
{
try
{
app = new Excel.Application();
app.Visible = true;
workbook = app.Workbooks.Add(1);
worksheet = (Excel.Worksheet)workbook.Sheets[1];
}
catch (Exception e)
{
Console.Write("Error");
}
finally
{
}
}
public void addData()
{
string s;
int i = 1;
foreach (ListViewItem li in listView2.Items)
{
s = "A" + i.ToString();
worksheet.get_Range(s, misValue).Formula = li.Text;
i++;
}
}
public void addData1()
{
string s;
int i = 1;
foreach (ListViewItem li in listView1.Items)
{
s = "A" + i.ToString();
worksheet.get_Range(s, misValue).Formula = li.Text;
i++;
}
}
|
|
|
|
|