|
anyone know about how to extract attribute's values from meta tags in html using regular expression or dom??
|
|
|
|
|
Hi,
I have written code to dispay an xml file on the command prompt, but wierdly, I am getting system.setting[] as the output instead of the xml file..I have entered in parameters such as /xml and a path.
Here is my code..
Can anyone tell me what wrong and why I am getting a difference output ?
using System;
using System.Xml;
namespace EliteDMSUtilities
{
///
/// Summary description for Class1.
///
class EntryPoint
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main(string[] args)
{
//string[] args = new string[10];
//args[0] = "/xml";
//args[1] ="C:\Test\Elite_Dms_SystemSetting.xml";
if( args.Length >0)
{
if(args.GetValue(0).ToString()== "/xml")
{
Execute_Cmd_xml(args);
}
else
{
Console.WriteLine("Unrecognized command");
Console.ReadLine();
}
}
}// end of main
static void Execute_Cmd_xml(string[] args)
{
Console.WriteLine(args.ToString());
string sIFolderName ="";
try
{
XmlDocument doc = new XmlDocument();
if (args.Length > 1)
{
for(int i=1; i < args.Length; i++)
sIFolderName = sIFolderName + " " + args.GetValue(i).ToString().ToLower();
sIFolderName = sIFolderName.TrimStart();
Console.WriteLine(sIFolderName);
doc.Load(sIFolderName);
Console.Write(doc.OuterXml);
Console.ReadLine();
}// end if
}
catch(XmlException xmlEx)
{
Console.WriteLine("Failed to load " + sIFolderName, xmlEx.Message);
}
}
}
}
Thanks
|
|
|
|
|
Hello,
I just had a general question about MSComm32 or Serial Communications in .NET. When using binary transmission and receive with RThreshold = 1 (OnComm fired after every byte), does the transmission of binary data act the same as the receive data? Meaning, do I have to place one byte at a time in the MSComm.output field or can I place a whole byte array into MSComm.output?
I tried looking for examples, but every sample I found uses text transmission or is in Win32 Native.
Any help is much appreciated. Thanks in advance.
Mike
|
|
|
|
|
hi all, im creating a pocket pc application that uses some web services,
using ms visual studio 2005 release edition(not the beta version). i have downloade active sync and i'm using the device emulator (pocket pc 2003 se) to deploy the application but i get the error "unable to connect to remote server" ,any help?
|
|
|
|
|
|
Because you posted it on at least 3 different forums on this site within minutes of each other.
Doing something like that will not get you an answer any faster, and may annoy someone who does know it enough that they won't bother to reply.
-- modified at 13:44 Thursday 2nd March, 2006
|
|
|
|
|
Unable to solve ... please help
CODE:
-----
public ProductObject[] OProduct;
ArrayList myProduct;
public void MyProduct()
{
ProductObject OProduct = new ProductObject();
myProduct = new ArrayList();
for (int i=1; i<=10; i++)
{
OProduct.Loader(i);
myProduct.Add(OProduct);
}
OProduct = (ProductObject[])myProduct.ToArray(typeof(OProduct));
}
ERROR:
------
Cannot implicitly convert type OProduct[] to OProduct
|
|
|
|
|
Pete Madden wrote: typeof(OProduct)
typeof(ProductObject)
|
|
|
|
|
|
Hello Coders,
In my Form I have LinkButton, PictureBox. I want to populate the ContextMenu MenuItems Dynamically based on the Control .
for this i need to find at which control mouse pointer is ?
any sounds will be appriciated.
regards
GV Ramana
|
|
|
|
|
Your question, at face value, sounds meaningless. Handle right click on the link button and populate the context menu accordingly (as it should be for the link button), and handle right click for the picturebox, and do the same in its handler. That's it!
But obviously the fact that you have asked the question means that there is more to it than that! So what's more?
Koushik Biswas
|
|
|
|
|
I think he is looking for a generic way, something like Form.KeyPreview is for keys but for the mouse. The only way I think is to use hooks, as this is the only approach I have seen.
|
|
|
|
|
Hi, I have an aspx page that I want to accept 2 files. These two files in turn I wish to be parameter to a C# console App on the same webserver. Whats the best way of going about this? Also the main function Program.cs returns an int depending on results etc, how can I retrieve this? Thanks in advance,
|
|
|
|
|
Hi,
I have been searching for help on this issue since many days.
I have a video on my desktop and it has some properties assgned to it through summary.
this can be done by right clicking the video and going into properties and then to summary tab.
Now the requiremnt is to get these details from c# code .
Any amount of help will be appreciated.
Thanks
Sama
|
|
|
|
|
You need to do a search on extracting the metadata from video files.
|
|
|
|
|
Read this article[^]
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
Hi Mircea,
Thanks a ton for the article.
It helped me in solving a major part of my problem.
But i have seen the the code doesnt work for .mov,etc kinds of files.
my req was to take metadata including comments,keywords from video files.
if you could provide me more help , i would be very grateful to you.
Thanks,
Sama
|
|
|
|
|
you'll need to google other formats to find how they store thier meta data. Info on the .mov format can probably be found on apples website somewhere.
|
|
|
|
|
Hello all,
I made one project in VS 2005 C# in which i use on dll file. I also make setup for that. So when i install this it will copy all sll files.
Now error is that when one dll i use it will error that LoadLibrary(DLL Difile)fail. Reinstall application will fix it.
Now a computer which has VS 2005 the error is not come for this PC. & a PC which has no VS2005 only FrameWork 2.0 it will give error.
Rearads,
Divyang Mithaiwala
|
|
|
|
|
I have a form based application , i overrided the Form1_Closing event in order to perform a minimize instead of closing and i let the form close only in case of menu close (don't ask me why I did this), anyway since usually the application runs in the system tray area i cannot shutddown or logoff without first closing the app.
How can i intercept if the window is closing because tehre's a system shutdown in progress, or logoff?
I downloaded the SystemEventsHandler on this site but it didn't work.
|
|
|
|
|
If you remove the control box for closing then the user have to use the menu to close the application. If a closing-event occurs without calling the menu, the user will probably logoff or shutdown.
sterenzi wrote: and i let the form close only in case of menu close (don't ask me why I did this)
Why are you doing this?! I wouldn't have asked but now I'm curious.
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
1st thank for suggestion but unfortunately it doesn't work, ...
OK, i have to tell why iI did this....
My application uses the closing button (and system menu but whoever used it?) only to minimize and a custom menu on the system tray to close(set a flag and do a test in the form_closing), I did this because should be very easy and quick to minimize my window, the window is vey small so that the minimize box is not shown.
So that i cannot distinguish if the x was pressed or a shutdown is in progress.
I know i could show the minimize box and disable the close box but now is a question between me and C#, I want to do like this!
Regards Stefano
|
|
|
|
|
Add the following method in your main form and evaluate the variable allowClosing in the event handler of the closing event.
protected override void WndProc(ref Message m)
{
if (m.Msg == 0x0011)
this.allowClosing = true;
}
www.troschuetz.de
|
|
|
|
|
Don't forget to add the base.WndProc(ref m) at the end, or your application will stop receiving events (windows messages).
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
-- modified at 10:12 Thursday 2nd March, 2006
|
|
|
|
|
Ups, I've forgot to copy this very important line cause i had some more stuff in my override of WndProc.
Thanks for your comment
www.troschuetz.de
|
|
|
|