Hi. I'm writing my own filter in C++ and C#. How i can change audio format ac-3 to lpcm , during playing video/audio ? How i can do dinamic format change? Can anybody help me ? Thanks.
We are haven't bug,just temporarily undecided problems.
Hi. I'm writing my own filter in C++ and C#. How i can change audio format ac-3 to lpcm , during playing video/audio ? How i can do dinamic format change? Can anybody help me ? Thanks.
We are haven't bug,just temporarily undecided problems.
Thanks for reply. I know how to use class methods with pinvoke. But i need use that class (NO METHOD) ? Any ideas? thanks.
We are haven't bug,just temporarily undecided problems.
Hi. In my project have 3 module. 1 and 2 nd module writen in c++ and 3th module - Application module written in C#. Every module different parts of projects. My first module have like that class :
class __declspec(dllexport) MyClass1
{
public :
int n;
MySimple1()
{
n=0;
}
~MySimple1()
{
}
int Plus(int a,int b)
{
return n=(a+b);
}
};
In my second module have like that class. And this class use 1 th class.
class __declspec(dllexport) MyClass2
{
public :
MySimple2(MyClass1 a)
{
}
~MySimple2()
{
}
...
};
Can i use MyClass1 fields (i know how to use methods) in my C# app? In my C# app , how i can send MyClass1 like parameter to 2nd class ? How i can use like that in my C# app ?
public MyClass1 my1=new MyClass1();
int n=my1.Plus(10,12);
MySimple2(my1); // calling through PInvoke.
Thanks.
We are haven't bug,just temporarily undecided problems.
Hi. Anybody know how to equivalent in C# following types : CInternetSession session; CHttpConnection* pServer = NULL; CHttpFile* pFile = NULL; Thanks .
We are haven't bug,just temporarily undecided problems.
:rose::rose:
We are haven't bug,just temporarily undecided problems.
Hi . I have xml file .
XmlWriter writer = XmlWriter.Create(path + "\\playbackmanu.xml");
writer.WriteStartDocument();
writer.WriteStartElement("PlayBack");
for(int i=1;i<=nCount;i++)
{
writer.WriteStartElement("ItemInfo");
writer.WriteElementString("itemimgpath","img"+ i.ToString() + ".jpg");
writer.WriteElementString("itemname", "");
writer.WriteElementString("itemtitle", "Title "+i.ToString());
writer.WriteElementString("itemcommand",i.ToString());
writer.WriteEndElement();
}
writer.WriteEndElement();
writer.WriteEndDocument();
writer.Close();
#PlayBack#
#ItemInfo#
#itemimgpath#img1.jpg#/itemimgpath#
#itemname##/itemname#
#itemtitle#Title 1#/itemtitle#
#itemcommand#1#/itemcommand#
#/ItemInfo#
#ItemInfo#
#itemimgpath#img2.jpg#/itemimgpath#
#itemname##/itemname#
#itemtitle#Title 2#/itemtitle#
#itemcommand#2#/itemcommand#
#/ItemInfo#
#/PlayBack#
How i can add atribute first node ? #PlayBack testAtribute="Hello world"# Thanks.
We are haven't bug,just temporarily undecided problems.
modified on Wednesday, April 14, 2010 6:24 AM
Hi. I want to create dvdplayer like CiberLink or WinDVD. I can create sample player (run video file,show mediaposition,play,pause,stop,...) with IGraphBuilder,IMediaControl,IMediaPosition and so on. (directshownet) But same dvdplayers have more functionality , for example, fast forward 32x,16x,... , fast backward -32x,-16x,... How i can create dvdplayer with directshow? How to use IDvdGraphBuilder and IDvdControl2 ? If you have some code sample or link, please link it me. Many Thanks!
We are haven't bug,just temporarily undecided problems.
Hi . I want send email in my asp.net app. I using this code :
MailMessage objEmail = new MailMessage();
objEmail.To = "nzoneboy@mail.ru";
objEmail.From = "nematjon@doda.uz";
objEmail.Cc = "rnematjon@gmail.com";
objEmail.Subject = "Test Email";
objEmail.Body = "my body" + ", " +
"my comment";
objEmail.Priority = MailPriority.High;
try
{
SmtpMail.Send(objEmail);
Response.Write("Your Email has been sent sucessfully - Thank You");
}
catch (Exception exc)
{
Response.Write("Send failure: " + exc.ToString());
}
I get following exception: Send failure: System.Web.HttpException: The "SendUsing" configuration value is invalid. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Anybody help me . Thanks.
We are haven't bug,just temporarily undecided problems.
you mean ,
try
{
int i=0;
int j=2;
if(i==0)
{
throw new ArgumentNullException();// or your exception class
}
int k=j/i;
}
catch(Exception e)
{
messagebox.show(e.Message);
}
We are haven't bug,just temporarily undecided problems.
Hi, Thanks for reply. In ListView cantrol haven't selectedtext , startposition. I'm using C# .net framework 2.0. I'm not shure , other .net framework versions have selectedtext property. Anybody help ?
We are haven't bug,just temporarily undecided problems.
Hi. How i can edit listview item label like windows? For example , in my listview have item and its text is "MyFile.exe" . When i try edit, this label text selected fully:MyFile.exe. But , in vista text selected without extention:MyFile.exe How i can do it ? Thanks .
We are haven't bug,just temporarily undecided problems.
Thank you guys .:rose:
We are haven't bug,just temporarily undecided problems.
Thanks for reply. What mean of "a third party library" ? :doh: Thanks.
We are haven't bug,just temporarily undecided problems.
Hi. I'm C# developer. I want to know possible write app in C# for mobile phones ? (IPhone , Google phone , Nokia , Samsung , Motarolla , SonyEricson , LG and ...) Thanks.
We are haven't bug,just temporarily undecided problems.
Good day. In my app have ListBox and i items draged.How to know Drag&Drop to Windows Explorer ? My draged items size will be very big , like 4,5 GB, so i can't use MemoryStream. Please help me. Thanks .
We are haven't bug,just temporarily undecided problems.
Thanks keefb and Abhinav. I was try Dotfuscator. It only renaming methods , fields name.But ,i think , after that can understand. Any ideas? Thanks.
We are haven't bug,just temporarily undecided problems.
Hi. I'm using Visual Studio 2008.I'm writing apps under C#. Some disassemblers (like Reflector) can see my source code. I searching in internet.There are so many app - anti disassembly.And they not free. How i can protect my C# app ? Thanks.
We are haven't bug,just temporarily undecided problems.
Thanks John. Yeah , like notepad , MS Office and so many files working well. But some files like cs , cpp files not working ? Thanks , again for reply.
We are haven't bug,just temporarily undecided problems.
Hi John. Thanks for reply. My code :
Process proc = new Process();
proc.StartInfo.FileName = fileName;//c:\\test.cs
proc.Start();
bool closed = false;
do
{
try
{
// try to open a file stream
using (FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.None))
// if we get here, we didn't get an exception and the file is ready to be used
closed = true;
}
catch (Exception ex)
{
if (ex != null) {}
}
} while (!closed);
Everytime i get closed=true. So i can't detect when file closed. My scenario is correct ? Thanks.
We are haven't bug,just temporarily undecided problems.
Thanks. I try
"\"c:\test.cs\""
. I just want know when test.cs file closed. Thanks.
We are haven't bug,just temporarily undecided problems.