|
hello friends,
How can I have my command prompt in the programming?
for example I want to write "attrib +h +s [address]" and run the attrib.exe in my program procedure (with the arguments (+h and +s)) and see the output lines if any.
how is that?
thanks
|
|
|
|
|
You can use Process class to start attrib.exe with the parameters you need. You can also redirect standard input and output to read/write input/output. A simple google search will bring many examples.
Have a look at this too: Command Prompt Control[^]
|
|
|
|
|
|
hi,
m trying to learn about Design patterns is there any helpful Sites or territorials
|
|
|
|
|
I personally would start with a Google search on "software design patterns".
mrcooll wrote: territorials
Tutorials or territorials?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Sorry 4 sure Tutorials
|
|
|
|
|
|
I think this may be a good site to you:
www.dofactory.com
Intelligence is almost useless for those who have nothing else!
Email: caiokf@gmail.com
|
|
|
|
|
Hi i am making Chat client which is both the client and the server
i have already made using the sockets. but it is not secure
I need to use sslstream to make the connection secure.
Can someone guide me through this?
Looking forward
Regards
Aditya
|
|
|
|
|
Have you seen the sample code in the SslStream Class documentation[^]?
There's both server and client code there - may be helpful ...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi!
I have search for hours after a good guide to create, edit, save and load a Excel file in C#. Those I have found does not work!
I use: Microsoft Visual C# 2008 Express Edition
and I can add the following references:
"Microsoft Excel 12.0 Object Library" or
"Microsoft Excel 5.0 Object Library"
I have no clue which of them to use.
Can someone give me a working example so I can get started? No solution in ASP please!
|
|
|
|
|
Mc_Topaz wrote: "Microsoft Excel 12.0 Object Library" or
"Microsoft Excel 5.0 Object Library"
I have no clue which of them to use.
Is the one you are going to want to use.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
modified on Sunday, September 21, 2008 2:23 PM
|
|
|
|
|
I don't care if it's version 5 or 12. I just need an example.
|
|
|
|
|
Look at your first post:
"Microsoft Excel 12.0 Object Library" or
"Microsoft Excel 5.0 Object Library"
I have no clue which of them to use.
That is why you got the reply you did.
Mc_Topaz wrote: I just need an example.
Quote Selected Text
There's plenty on MSDN and Google if you know where to look
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
No I don't in that case. I have search on google and MSDN but those solutions did not worked when I have tried.
|
|
|
|
|
Hello, I am using the WebBrowser control in an application for it's user interface. So far I have been using links (#something) and the Navigating event of the WebBrowser so that the app knows what to do when the user clicks a link, however I have seen some applications that has the WebBrowser control embedded and use javascript to talk with the app (the link is visible, it's something like javascript:"some_function();").
My question is how to should I create custom javascript functions that map to functions from inside the app (built with c#, something like a javascript API for the app).
Thanks for your help
|
|
|
|
|
WebBrowser Control has a property named ObjectForScripting. You can assign it to any object whose class is marked as Com Visible.
That object will be exposed to javascript code as window.external. You can call any method exposed by the original object.
For reference and examples, look here: System.Windows.Forms.WebBrowser.ObjectForScripting[^]
|
|
|
|
|
hello forum
can anybody tell me how can i export and import text from rich text box to word file (.doc) in c# window application
regards
rahul
|
|
|
|
|
Hello,
I have a piece of code that should be subject to conditional compilation. I'm trying to compare the use of a conditional directive vs. using an if-condition over a const variable. The second approach looks safer from compilation perspective, but the first one has its advantages (e.g. save memory by not declaring unused variables).
I'd appreciate your help on best practices regarding this issue...
Many thanks to all helpful guys here in CP!
I really appreciate your help.
Know me better
|
|
|
|
|
Another alternative is to make it configurable.
It depends on just what it is you're trying to do.
|
|
|
|
|
Yes, but I don't need that level at the moment.
Additionally, making it configurable doesn't allow the compiler to do certain optimizations. For example, checking a const variable which is statically known to be either true or false gives the compiler an opportunity to optimize the check away, and keep only the relevant code (with unreachable code detected warning).
Many thanks to all helpful guys here in CP!
I really appreciate your help.
Know me better
|
|
|
|
|
Then use conditional compilation.
|
|
|
|
|
Hi there,
I am developing a C# program to record voice simultaneously from some microphones.
I need to save(record) audio inputs on some separate memory streams.
I use Visual studio 2005, a Delta 1010-LT soundcard which has 8inputs.
My problem is in two points, let's suppose that we have just two inputs to record from,
then 1st when I try to save two audio input streams on two separate files, just one of them
saves audio & at the same time two audio inputs get mixed together on just one file while the other one
is saved empty! I want to save them separately not mixed!
The 2nd problem is voice that been recorded; While it is mixed of two audio inputs, it has some gaps just
because of switching job of CPU during recording. I believe if the 1st prob get solved then the 2nd one
will be solved automatically.
How should I do that? Is there any Mixer API that can help me?Confused
Thanks in advance Smile
|
|
|
|
|
I'd work on getting one channel to record properly before
worrying about multiple channels.
If you have gaps you're doing something wrong.
How are you getting audio from the sound card?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
hello forum
i need to change the font of text in hindi on runtime.For that i need to installs new fonts of hindi langauage to visual studio.
Do i need that??
How can i do that??
Regards
Rahul Adya
modified on Sunday, September 21, 2008 9:37 AM
|
|
|
|