|
Verbs does not contain any command line args at all. It purpose of use is very different. it indicates the actions that the system can apply to the file indicated by the FileName property of ProcessStartInfo class.
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
Well do i assume that the external process is a managed app?
Anyways, any process started with command line arguments, has them stored in the process primary stack, since they are in scope of the entry point. You need to write a generic unmanaged code piece to access the string array passed into the entry point by the c runtime in an unmanaged process. For a managed app you need to get the pointer location of the entrypoint and then in contigous to the it would be the command line arguments passed in. you can see where the arguments finish by wrapping your search before any instruction address or jmp instruction appears.
Does that make something clear here?
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
Hi every body please can you tell me or give me some url where i can find how is made documentation.Is it in documentation includet help?
when i want to read something good just seat and type it
|
|
|
|
|
|
Hello,
ComponentOne's Doc-To-Help makes help creation easy. You can write your help source documents in Microsoft Word (Doc-To-Help for Word and Enterprise) or HTML (Doc-To-Help Enterprise only), then use Doc-To-Help to generate the help files. It allow you to generate Help 2.0, .chm, JavaHelp, printed documentation, and WinHelp files. The Documenter.NET portion of Doc-To-Help will generate help automatically from a .NET assembly. For more information, please visit http://www.doctohelp.com/[^].
Suelinda W
Customer Engagement, ComponentOne LLC
|
|
|
|
|
Hi,
I was trying to close my application but it doesn't work as the Task Manager still showing that it is running. I'd search around the Internet and tried Environment.Exit(-1), Thread.CurrentThread.Abort() but nothing works.
Any idea?
Thanks in advance.
Jie Liang
|
|
|
|
|
Hello
If your application is multithreaded -which I suspect-, Probably one of your foreground threads is still running. Either keep track of your threads and abort them on exit -or end them more gracefully if possible-, or set them to background threads so that they exit themselves upon the program termination.
Regards
|
|
|
|
|
Hi
Thanks, it works, the Task Manager don't show the process any more when I exit the application
Jie Liang
|
|
|
|
|
Well depends on the CLR. when main returns, main still is the primary thread, but a manged thread. It will depend on whims n fancies of the CLR. CLR will take some time to reflect the thread stoppage, depending on other work it is involved in. So no need to be worried.
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
HI
how can i make wizard in c#
parshant
|
|
|
|
|
|
Hi
i written code in vc++.And GUI in C#
now how can i integrate vc++ code in c#
parshant
|
|
|
|
|
You could write a C++ DLL and export the necessary functions.
You can then use P/Invoke to call these functions.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
You need to give more info on what you need to achieve and the structure of the code. If its a client server application, simply use sockets to transfer information back and forth. Else use C# to consume the DLL created with VC++ through P/Invoke, based on whatever your need is. This will enable C# code to call into the functions defined within your C++ code
Does that answer you?
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
Hi,
Im having a strange problem which i can't solve.
this is the code:
XmlWriter writer = null;
DateTime dateNow = DateTime.Now;
DateTime timeNow = DateTime.Now;
string test = "testinggggg";
string tessst = "testtetststs";
// Create an XmlWriterSettings object with the correct options.
XmlWriterSettings settings = new XmlWriterSettings();
settings.Indent = true;
settings.IndentChars = ("\t");
settings.OmitXmlDeclaration = true;
settings.Encoding = Encoding.Default;
settings.NewLineOnAttributes = true;
settings.ConformanceLevel = ConformanceLevel.Fragment;
//dateNow.ToString("dd-MM-yyyy");
//timeNow.ToString("HH:mm:ss");
Console.WriteLine("The date of today = " + dateNow.ToString("dd-MM-yyyy"));
Console.WriteLine("The time of right now = " + timeNow.ToString("HH:mm:ss"));
try
{
// Create the XmlWriter object and write some content.
writer = XmlWriter.Create("Testing.xml", settings);
writer.WriteStartElement("Information");
writer.WriteElementString("DateOfBuilding", ""+dateNow.ToString());
writer.WriteElementString("TimeOfBuilding", ""+timeNow.ToString());
writer.WriteElementString("Testing", test.ToString());
writer.WriteElementString("Whatever", tessst.ToString());
writer.WriteEndElement();
writer.Flush();
}
finally
{
if (writer != null)
writer.Close();
}
Console.Read();
The problem is the date and time are written in the same tag.
This is how it looks like:
<Information>
<DateOfBuilding>9-9-2006 14:51:42</DateOfBuilding>
<TimeOfBuilding>9-9-2006 14:51:42</TimeOfBuilding>
<Testing>testinggggg</Testing>
<Whatever>testtetststs</Whatever>
</Information>
How can i write the date and time in sperate tags?
Thanks in advance!
|
|
|
|
|
You may want to consider using DateTime.ToShortDateString() and DateTime.ToShortTimeString() .
/ravi
|
|
|
|
|
DateTime dateTimeNow = DateTime.Now;
...
writer.WriteElementString("DateOfBuilding", "" + dateTimeNow.ToShortDateString());
writer.WriteElementString("TimeOfBuilding", "" + dateTimeNow.ToShortTimeString());
Is this okay for you? You don't need two seperate DateTime variables for the same date.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thank you very much guys!
|
|
|
|
|
Hello,
I have a problem on receiving messages from server.
I developed a server in C++ and a client in C#.
It seems that server runs well but when I try to connect,
I get the message "unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an applicaion request."
I'm not sure but when I was writing the client module, I used some eventhandlers to warn when data is read. May be this can cause some thread promblem because I use asynchronous communication.
In addition, the client can send messages to server but is unable to receive any.
Can somebody show me a way?
|
|
|
|
|
What is the socket config you have done? It will depend upon it.
I assume that the socket config is at fault
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
How to create my own .tsk theme file, change details in file?
Can't find any information in MSDN and internet.
Thank you
|
|
|
|
|
Just for reference as probably other people might come across this question like I did when searching how to build a Pocket PC Theme file (*.tsk). A TSK file is a simple CAB file renamed. When the Pocket PC reads this file it simply performs a install of this cab, which usually contains theme configuration info (but in truth could contain anything).
|
|
|
|
|
I want to access the induvidual frames of a video file (avi, mpeg) make some modifications and save the frame. Is this possible using C# ? if not what other languages can do it ?
|
|
|
|
|
Yes it is. Use the DX interop to get the reference to the frame buffer and bingo! its done.
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
Hi everybody
I'm looking for a way to automate telnet.
I looked around on the web for some information, but the closest thing I found is how to create web server, which is not exactly what I want...
Can anyone direct me a bit how can I control and automate a telnet, or at least a console (it would be a starting point).
Thanks alot!
|
|
|
|