|
|
|
is there a simple way of capturing images from a webcam? there are interesting articles about it here BUT they use either
- 3rd party components
- Net wrappers for com components
Basically, the problem is that the non-3rd party solutions i've seen use DirectShow, which is unmanaged, and cannot be accessed directly from C#. NetMaster has written an impressive .NET library wrapping DirectShow, including samples.
However, grabbing a single frame from the camera remains a very complicated business, requiring a lot of (unstable) code. Does anybody know of a simple way of doing this?
there are no facts, only interpretations
|
|
|
|
|
Hy everyone!
I would like to check the classname of my application at runtime, meaning I would like to receive WindowsForms10.Window.8.app87 for example. I am able to fetch this via Spy++ but I have no idea how to fetch this (this string) via C# code.
So if anyone of you knew how to fetch this via C# code please let me know. Because I do need this to get access to a running application and do not want to use the name of the window because maybe I will display statusinfos there.
Thanks!
Stephan.
|
|
|
|
|
This would work with following solution!
Something like that should return your class name:
Type myClassType = this.GetType();
string appName = myClassType.Name; // returns Class Name
Or you use:
string appFullName = myClassType.FullName; // returns Class Name with namespace etc...
Hope this is working.
With greetings
Norman-Timo
|
|
|
|
|
Hy!
Sorry, not really!
It only displays the selfdefined class!
But I do need WindowsForms10.Window.0.app8a for example (that's what spy++ says my classname to be.
I just did some debugging and I guess this strange name is created after the run command. WindowsForm because it inherits from WindowsForms and Window because it's a window. But after the run command I am not able to get this anymore.
Well I think I have to switch to another solution, maybe I should write the handleID in the registry for the other applications to fetch it.
Thanks anyway!
Stephan.
|
|
|
|
|
Hi
I'm looking for a C# implementation [or VB.NET one] of the C++ sample, included in the DirectX 9 SDK. I tried google-ing and searching The Code Project, but didn't find anything. So I think I have to 'translate' the C++ files to C#/VB.NET ones. If anyone who knows where I can find C#/VB.NET "Depth Of Field" sample, or would like to help me translating the C++ files, please, contact me - f3r0[at]hotmail[dot]com
Thanks in advance,
Stan
|
|
|
|
|
hi,
On first site you may feel what happen this guy to screw himself ? I need an application which will open outlook express and check for new mails(without my interaction).If any new mails are there then it read the body (content) of mail and store the body of mail to one database table feild.Apart from this, my application will try to check whether any attach is there in that mail. If it is there then it will store that attach in my hard drive (all attachement in a common location).
how is it possible ? i know what i want to do. But don't know how ?
( i am executing this application without user interaction. And it need to check the mail arrival on every interval. this very good for other virus program to penetrate into my machine. that's why i used the caption "screw")
Any idea??????
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Do you really need outlook express?
Isn´t it easier if you code your own application which looks for new Mails in your Mail Server?
To communicate with an pop3 or smpt Server isn´t much difficult, but I think to manage Outlook Express from your Application is much more difficult, I think.
Please correct me if I´m wrong...
Ciao
Norman-Timo
|
|
|
|
|
hi,
this is very much urgent that i need to read only from my outlook configuration.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Outlook Express doesn't expose a COM object model you can use, but Outlook does. You can either use the Microsoft Outlook Object Model, or if that's not acceptable, you'll have to use the Messaging API, which Outlook Express is essentially a wrapper for. You'll have to P/Invoke the functions, the docs for which start here (MAPI 3.0)[^].
You might come acrossed references to the Collaboration Data Objects (or CDO). To maintain your requirements of using Outlook Express' settings and message stores, you can only use CDO 1.2.1, NOT 2.0! CDO 1.2.1 is based upon and heavily uses the MAPI 3.0 API whereas 2.0 doesn't us it at all. If you don't use the MAPI 3.0 API, you can't use your Outlook Express settings and message stores.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
in VC++, i can register my own windows message and map it.Can it be done in C# ?
for example, processing WndProc() function:
protected ovrerride WndProc(ref Message Msg)<br />
{<br />
switch (Msg.MsgID)<br />
{<br />
case MY_OWN_MSG:<br />
dosomething();<br />
break;<br />
}<br />
base.WndProc(ref Msg);<br />
}
How to register "MY_OWN_MSG" so that my other C++ application could use it ?
|
|
|
|
|
I never coded C++ so correct me if i didn't understand exactly what u meant.
From the looks of that code you may want to create a class library and compile it into a DLL which then you can use later in other applications by calling the DLL with the 'using' Keyword and then reffering to the MY_OWN_MSG in that DLL.
|
|
|
|
|
i am writting a C++ DLL in which i want to send my own windows msg to other app. Like this:
// C++ Code
#define MY_OWN_MSG value
PostMessage(hWnd,MY_OWN_MSG,0,0);
////////////////////////////////
the MY_OWN_MSG must be registered to a windows message.
How to Register a windows message in C# ?
|
|
|
|
|
i'm trying to control parallel port,i can control the output signals but i can't listen the parallel port. there is a document for parallel port outputs output at http://www.codeproject.com/csharp/csppleds.asp
i want a button connected to parallel port an when i push the button i want to get a message like "you press the 3rd button"
|
|
|
|
|
Hi any one have any clue to How to write
a
System.IO.Straem to a file on local disk
Thanks in advance
P.S. PATWAL
|
|
|
|
|
Hmmmmm, could this perhaps be something to do with the System.IO.FileStream, and the System.IO.File classes!!
|
|
|
|
|
Hi,
As you all know MSMQ 3.0 supports HTTP messaging. Now it takes the Queue Path in the form :
DIRECT=HTTP://localhost/msmq/private$/MyQueue
where localhost represents the machine or site name, msmq represents the virtual directory name , private$ tells that the queue is a private Queue and MyQueue is the Queue name.
We can use "system.Messaging" namespace to send and receive message from "MyQueue" over HTTP.
By default MSMQ HTTP takes msmq as the virtual directory and gets created when you install MSMQ with HTTP support. MSMQ documentation says that we can change the Virtual directory if we want to by configuring MSMQ using IIS. The exact sentence is quoted below :
"Destination queues for HTTP messages are opened using direct format names that include the URL address of the target computer, the virtual directory name, and the queue name separated by slashes. The default virtual directory name is msmq, but Message Queuing can be configured by IIS to use a different virtual directory. "
Now there are 2 parts in my Question...
1) How do you configure MSMQ using IIS to use a different Virtual Directory
2) how to use "System.Messaging" namespace of .NET framework to send a message over HTTP using different virtual directory name (the problem is if you specify anything other than "msmq" in the URL the MessageQueueException is thrown with Invalid Format Name as the error text)
E.G. : DIRECT=HTTP://localhost/msmq1/private$/MyQueue
where msmq1 is the new virtual directory configured for MSMQ
Hope my Question is clear enough... hoping for a positive reply...
regards,
Aryadip.
Cheers !! and have a Funky day !!
|
|
|
|
|
Hi,
I want to translate my web's english content to chinese.
Whats the easiest and best method to do this?
If you have any suggestions, let me know.
siva
|
|
|
|
|
Hi Shiva,
I.System.Globalization does not deal with content/text translation.
II.Below is one of the translation site.
http://babelfish.altavista.com/
III.I do not know whether you are aware about the translation sites / engine or not, that is why I would also like to add the below points
1.there is no site(translation engine), which gives you 100% correct translation.
2.Words meaning changes with the subject and the context, it is being used. for example
the word "link" has defferent meaning in computer terminology and in business context.
3.There are various other factors, I am unable to list up here, but I would like to advice you that before using the translation sites for translation, use very very simple and small sentances, that will give you better result.
Regards,
Jay
|
|
|
|
|
Siva's Reply
>Hi,
>
>I dont want to try out translation software who ask for huge sums of money
>
>any other ways of doing it?
>
>thanks for your help
>siva
>
>
>
>---------------------------------
>Do you Yahoo!?
>New and Improved Yahoo! Mail - Send 10MB messages!
Jay's Response:
Hi Shiva,
1.One tip I want to share with you, Please do not reply to reminder mail which comes to your mail box through this message board. Reply from here, using the Message link. This helps to get the information(using search), if some one faces the similar problems.
2. The link I had given you is free site for translation. you can search in google for others.
3. I do not know what other ways you want to achieve the same????? Please elaborate your point. Others can also give you some ideas....
Regards,
Jay
|
|
|
|
|
As mentioned by Jay already there are free translation web sites. However their translations are not accurate. Often they will mistranslate things because they don't fully understand the context.
There are also paid for services where actual real humans are involved who will ensure that the context is correct for the translation. This costs money.
If you don't want to pay money then the content of your site will be badly translated.
sivass78 wrote:
Whats the easiest and best method to do this?
The easiest method is to use an online translation service.
The best method is to get a human to translate it.
You are going to have to make a decision - do you value quality over cheapness?
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
Colin,
I want to explore .NET and use system.globalization wherein msdn promises much more features for globalization of code.
however, the site is not a professional one and want to try out a simple translation without money. would you?
if you have any valid ideas let me know.
|
|
|
|
|
Then you don't need a translation service, paid for or free.
You just need to provide text that you can see the difference depending on the culture
For example you could set up localised resources for a button that says:
"Hello in English
"Hola" in Spanish
"Bonjour" in French
or if it is just for testing prefix everything with the language code or some other identifier so that you can see that it is working.
If it is for testing the translations could be nonsense text for all the .NET Framework will care. Just so long as you can see the code working then there is nothing else to do.
If you must use real translations then just copy the desired resources from my article on internationalisation http://www.codeproject.com/netcf/hangman_dncf.asp[^]
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
Hi Colin,
Sorry to disturb in between the conversation. I can make out that Either we are unable to understand what Shiva wants or he is missing basics of System. Globalization namespace and its classes?
I do not know how to convince him about our ideas?
Regards,
Jay
|
|
|
|