|
All dll's i've included in that. I'm using platform SDK that is server 2003 sp1. I think it is most recent one for DirectShow application.
alpa shah
|
|
|
|
|
is your hardware accelertion turned on
It is Good to be Important but!
it is more Important to be Good
[My Question]
|
|
|
|
|
Is it giving any exception?
Which method have u called to play the .avi file?
can u paste some code so we can get to the problem.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
yes, it's throwing me exception.
I've implemented the sample application from this site only...
sample code is:
try{
//get the graph filter ready to render
OpenFileDialog ofg = new OpenFileDialog();
if (ofg.ShowDialog() == DialogResult.OK)
{
String fileName;
fileName = ofg.FileName;
graphBuilder.RenderFile(fileName);
Text = fileName;
//set the trackbar
isSeeking = (graphBuilder.CanSeekForward() == -1) &&
(graphBuilder.CanSeekBackward() == -1);
if (isSeeking)
trackBar1.Enabled = true;
else
trackBar1.Enabled = false;
trackBar1.Minimum = 0;
trackBar1.Maximum = (int)(graphBuilder.Duration * 100.0);
Text = fileName;
//prepare and set the video window
videoWin = graphBuilder as IVideoWindow;
videoWin.Owner = (int)panel1.Handle;
videoWin.WindowStyle = WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN;
Rectangle rc = panel1.ClientRectangle;
videoWin.SetWindowPosition(0, 0, rc.Right, rc.Bottom);
mediaEvt.SetNotifyWindow((int)this.Handle, WM_GRAPHNOTIFY, 0);
//set the different values for controls
trackBar1.Value = 0;
minutes = (int)graphBuilder.Duration / 60;
seconds = (int)graphBuilder.Duration % 60;
statusBar1.Panels[0].Text = "Duration: " + minutes.ToString("D2")
+ ":m" + seconds.ToString("D2") + ":s";
graphState = State.Playing;
//start the playback
mediaCtrl.Run();
}
}
catch( Exception ) { Text = "Error loading file"; }
alpa shah
|
|
|
|
|
What i had done is as follows:
Create a user control.
i have written all the above code in this class.
and then created an object of this usercontrol in another form.
and called the Run method from that form.
it works perfect.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Ok..I'm trying this idea...but actually i'm new to c#. so can u please tell me that i've to build a dll of my old code and then use it to the new form?
alpa shah
|
|
|
|
|
u give me ur email id
i will send u a sample app...
i think that should be enough for u.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
I'm really thankful to you....
My mail id is "alpa_shah04@yahooo.com" and please give me your mail id also
alpa shah
|
|
|
|
|
Is ur id correct,
the mail i sent u has bounced.
i have also sent a request to add in yahoo.
Please check that.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Please may you send me the example code too, because I was reading into this, and would like to see how it works.
My email is: gingermigit@hotmail.com
Thankyou.
|
|
|
|
|
sure
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
ok note my ids:
"alpa_shah04@yahoo.com"
"alpashah04@gmail.com"
egarly waiting for your reply...
alpa shah
|
|
|
|
|
I am currently using the below custom popup control.(ASP.NET,Language used is C#)
http://www.codeproject.com/aspnet/asppopup.asp[^]
But i am not able to add Ok and CANCEL buttons inside the pop up.I cant use alert since i need to change the color and include title, which cannot be done in alert.
Can anyone help me out in this and suggest me with a better idea.
Mads
|
|
|
|
|
Hello
I want to burn my database backup file to CD/RW programmatically.
Anybody have a nice and usefull code for this?
I googled much and found a sample, but i couldn't test it because my drive is Network shared CDWriter. So please notice below code :
<br />
objBurner = new IMAPI_CDBurner.CDBurnClass();<br />
.<br />
.<br />
string drive = @"f:\";<br />
objBurner.GetRecorderDriveLetter(drive, 4);<br />
sfRecorderDrive = drive;<br />
there is an error with drive letter, "f:\" which "f" is my map drive.
error is :
"Error HRESULT E_FAIL has been returned from a call to a COM component."
anyway...
I need help for burning file to cd.
Regards.
|
|
|
|
|
Microsoft released an object which allows you to burn data to cd. I gues it's named XpBurn or something..
- - - --[ i love it when a plan comes together ]-- - - -
|
|
|
|
|
Hi, Dear Respected Programmers
Kindly help me and give me method or source about that, I want to insert text data into TEXT1.TXT from TEXT2.TXT
Thank you in Advance
|
|
|
|
|
M Riaz Bashir wrote: want to insert text data into TEXT1.TXT from TEXT2.TXT
could you expkain more ?? do you want to copy the content of text2.txt to
text1.txt without keeping what is in text1.txt ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Dear Tamimi - Code
actualy TEXT1.TEXT is belonged with diffrent data and TEXT2.TXT is belonged with diffrent data. I need to insert all text data into TEXT1.TXT from TEXT2.TEXT without overwriting. Just insert.. for example:
TEXT1.TXT
=========
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
TEXT2.TXT
=========
BBBBBBBBB
BBBBBBBBB
BBBBBBBBB
AFTER INSERTING FROM TEXT2.TXT
==============================
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
BBBBBBBBB
BBBBBBBBB
BBBBBBBBB
Thank you very much for you kind considiration
Please help me about said meter.
|
|
|
|
|
Open txt2 in a streamreader object and open txt1 in a streamwriter object (setting the append argument to 'true')
txt1.Write(txt2.ReadToEnd());
txt1.Close();
txt2.Close();
txt1.Dispose();
txt2.Dispose();
- - - --[ i love it when a plan comes together ]-- - - -
|
|
|
|
|
Thank you Mr. Eduard Keilholz
|
|
|
|
|
Hi,
I m working on an interesting subject wherin i need to implement the concept of Pull Printing or Driverless printing on a client server architecture.
Can anyone assist me with the way it is implemented in C#.Or do i need to use any other .Net technology.
|
|
|
|
|
Hey guys,
Im using Crystal Reports in my C# application for the first time. Im facing a small problem though. I created a Crystal Reports document and Dataset. Then I placed all the fields from Dataset into my Report. I populate the dataset using code and when I view the report I can see all the records but apart from mapping fields to a dataset there a few fields that I would like to populate from code directly. These fields have nothing to do with my Database, its just some information that i want to place in my Crystal Report. How do I do this? I couldn't find any resources specific to my question so I've come here for help.
|
|
|
|
|
First of all you need to design a Report and then you will assign
the data set to the report ..
Importing thing all the report field name same as in the DataSet..
<
CrystalReportViewer1.ReportSource = CrystalReportSource1
Dim ds As DataSet
Dim objCMTransaction As New ForMerchantCard2Merchant
ds = objCMTransaction.CardToMerchant(Session("fromDate").ToString, Session("toDate").ToString, Session("UserName"))
' Report Parameters
Dim param1Fileds As New CrystalDecisions.Shared.ParameterFields
Dim param1Field As New CrystalDecisions.Shared.ParameterField
Dim param2Field As New CrystalDecisions.Shared.ParameterField
Dim param1Range As New CrystalDecisions.Shared.ParameterDiscreteValue
Dim param2Range As New CrystalDecisions.Shared.ParameterDiscreteValue
param1Field.ParameterFieldName = "DateFrom"
param1Range.Value = Session("fromDate").ToString
param1Field.CurrentValues.Add(param1Range)
param1Fileds.Add(param1Field)
param2Field.ParameterFieldName = "DateTo"
param2Range.Value = Session("toDate").ToString
param2Field.CurrentValues.Add(param2Range)
param1Fileds.Add(param2Field)
Me.CrystalReportViewer1.ParameterFieldInfo = param1Fileds
Me.CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables(0))
>
Rgds,
Nadeem.
|
|
|
|
|
here is the code i'm sending to your values to crystal reports as parameters to crystal reports
call below montioned code into you application.
void para(string fldName, string valName)
{
ParameterField paramfield1 = new ParameterField();
ParameterDiscreteValue disval1 = new ParameterDiscreteValue();
ParameterValues val1 = new ParameterValues();
paramfield1.ParameterFieldName = fldName;
disval1.Value = valName;
val1.Add(disval1);
paramfield1.CurrentValues = val1;
CrystalReportViewer1.ParameterFieldInfo.Add(paramfield1);
}
Happy coading.........
B.Sriniva
Ramco Systems Ltd
Chennai
9940145626
|
|
|
|
|
Hi ...
I am using one asp.net 2 Gridview control. I am binding it with a datatable. Now I want to hide two columns in the Gridview. How to do that ..Plz help me
This is my code...
DataTable dt = new DataTable("STEPS");
DataColumn dcOrder = new DataColumn("Order", typeof(Int32));
DataColumn dcName = new DataColumn("Name", typeof(string));
//Datacolumns are added to table dtsteps.
dt.Columns.AddRange(new DataColumn[] {dcOrder, dcName);
.....
//Assigning dtsteps as the datasource of my gridview dgsteps
MyGridView.DataSource = dt;
MyGridView.DataBind();
Thanks in advance....
Ranjith
|
|
|
|