Click here to Skip to main content
16,005,473 members
Home / Discussions / C#
   

C#

 
AnswerRe: E-mail Subject Problem Pin
playout8-Nov-06 2:41
playout8-Nov-06 2:41 
QuestionLogon to Windows 2003 server. Pin
mariarajakumar5-Nov-06 18:37
mariarajakumar5-Nov-06 18:37 
QuestionFunction to convert ArrayList to List and vice versa Pin
Rafferty Uy5-Nov-06 18:02
Rafferty Uy5-Nov-06 18:02 
AnswerRe: Function to convert ArrayList to List and vice versa Pin
Christian Graus5-Nov-06 19:16
protectorChristian Graus5-Nov-06 19:16 
QuestionZip a Folder Pin
Rahul.RK5-Nov-06 17:42
Rahul.RK5-Nov-06 17:42 
AnswerRe: Zip a Folder Pin
coolestCoder5-Nov-06 19:37
coolestCoder5-Nov-06 19:37 
AnswerRe: Zip a Folder Pin
Suelinda_W15-Dec-06 7:50
Suelinda_W15-Dec-06 7:50 
Questionproblem in adding text >64k in wmv file? Pin
Hemant kulkarni5-Nov-06 17:29
Hemant kulkarni5-Nov-06 17:29 
Hi,
I have a wmv file in which I wnat to add a text data as attribute. The data is >64k.
I have written following code but it gives "The parameter is incorrect." error.


try
{
// Create a WMEncoder object.
WMEncoder Encoder = new WMEncoder();

IWMMetadataEditor metadataEditor = null;
try
{
//create encoder object
Qlikkit.WMFSDKWrapper.Functions.WMCreateEditor(out metadataEditor);
}
catch(Exception ex)
{
string str = ex.Message;
int mydata = 0;

}

// open wmv file
try
{
metadataEditor.Open("d:\\3333.wmv");
}
catch(System.Runtime.InteropServices.COMException ex)
{
string mystr = ex.Message;
string mystr2 = ex.StackTrace;
int jj=0;
}

// get the IWMHeaderInfo3 interface
IWMHeaderInfo3 headerInfo = metadataEditor as IWMHeaderInfo3;

// get attribute count
ushort Outindex = 0;
headerInfo.GetAttributeCount(0,out Outindex);

IWMEncDisplayInfo displayInfo = Encoder.DisplayInfo;

readMetadataStream();
String mydaya22 = "data" ;
System.Text.StringBuilder mydata33 = new System.Text.StringBuilder(mydaya22);

Qlikkit.WMFSDKWrapper.WMT_ATTR_DATATYPE attrDataType2 = new Qlikkit.WMFSDKWrapper.WMT_ATTR_DATATYPE();//Qlikkit.WMFSDKWrapper.WMT_ATTR_DATATYPE.WMT_TYPE_STRING;
attrDataType2 = Qlikkit.WMFSDKWrapper.WMT_ATTR_DATATYPE.WMT_TYPE_STRING;

try
{
// add attribute
headerInfo.AddAttribute(0,
"Author",
out Outindex,
attrDataType2,
0,
//myDataptr,
mydata33,
(uint)metadataSIze
);
}
catch(Exception ex2)
{
// TODO: Handle exceptions.
string str = ex2.Message;
}



Also My defination of IWMHeaderInfo3.AddAttribute is

void AddAttribute(
[In] ushort wStreamNum,
[In, MarshalAs(UnmanagedType.LPWStr)] string pszName,
[Out] out ushort pwIndex,
[In] WMT_ATTR_DATATYPE Type,
[In] ushort wLangIndex,
//IntPtr pValue,
[In, MarshalAs(UnmanagedType.LPWStr)] StringBuilder data,
[In] uint dwLength);

is it correct?


Regards,
Hemant.
QuestionCan I lose the default XML namespace ? Pin
Bart7Simpson75-Nov-06 15:30
Bart7Simpson75-Nov-06 15:30 
QuestionIFilter RTF Full Text Indexing Pin
smarttom995-Nov-06 14:31
smarttom995-Nov-06 14:31 
Questionmaximize custom windows form Pin
Andreas885-Nov-06 12:34
Andreas885-Nov-06 12:34 
QuestionInserting string at a particular position in RichTextBox Pin
kclteam5-Nov-06 12:32
kclteam5-Nov-06 12:32 
AnswerRe: Inserting string at a particular position in RichTextBox Pin
Christian Graus5-Nov-06 13:49
protectorChristian Graus5-Nov-06 13:49 
AnswerRe: Inserting string at a particular position in RichTextBox Pin
sam#5-Nov-06 20:07
sam#5-Nov-06 20:07 
AnswerRe: Inserting string at a particular position in RichTextBox Pin
Coding C#6-Nov-06 2:50
Coding C#6-Nov-06 2:50 
GeneralRe: Inserting string at a particular position in RichTextBox Pin
kclteam6-Nov-06 5:29
kclteam6-Nov-06 5:29 
QuestionSystem info Pin
sj_h15-Nov-06 11:05
sj_h15-Nov-06 11:05 
AnswerRe: System info Pin
Guffa5-Nov-06 11:56
Guffa5-Nov-06 11:56 
GeneralRe: System info Pin
sj_h15-Nov-06 12:03
sj_h15-Nov-06 12:03 
AnswerRe: System info Pin
Guffa5-Nov-06 12:52
Guffa5-Nov-06 12:52 
AnswerRe: System info Pin
Judah Gabriel Himango5-Nov-06 12:14
sponsorJudah Gabriel Himango5-Nov-06 12:14 
GeneralRe: System info Pin
sj_h15-Nov-06 12:18
sj_h15-Nov-06 12:18 
GeneralRe: System info Pin
Judah Gabriel Himango5-Nov-06 12:45
sponsorJudah Gabriel Himango5-Nov-06 12:45 
GeneralRe: System info Pin
sj_h15-Nov-06 14:21
sj_h15-Nov-06 14:21 
QuestionCan you add a SYSTEM dtd with CreateDocumentType ? Pin
Bart7Simpson75-Nov-06 11:00
Bart7Simpson75-Nov-06 11:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.