|
which type of protocol is you are using to send data???
is it TCP/UDP....
u can find so many examples in the codeprojet/google about this topic.
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
Hello
I hve to send raw ethernet frame , with a predefined mac addresses.
All i hve to do is that : the user writes his data in text box , on hitting the Send button the ethernet raw frame is launched.
Hmm something like engage packet builder softwares , but i dont where to start and what to do .
Yes i hve seen some of the examples but they ar e all dos prompt and not according to my requirement.
Please tell me wht to do , if u hve documents or links you can share it would be most helpful.
I have never workes on C# let alone GUI interface .. so i need a lot of help.
Waiting for reply
Regards
Amna
|
|
|
|
|
Hi,
I have developed 2 applications.
1. Windows Service
2. Asp.net application (Control Panel for above application)
Windows Service has 3 main methods in the following manner.
method1 every 10 mins
method2 every 1hr after method 1
method3 every 3hrs after method 1 n 2.
These methods directly interacts with sql db (for timing the methods etc) and source file locations etc. These timings and locations are set via the asp.net control panel. The control panel also puts the service on and off.
My problem is that the control panel puts the service on successfully but while putting it off, it still remains running for quite a while. I think, this happens because my main method(onstart) runs in following fashion.
while(true)
{
if(method1_ellapse_time)
method1
if(method2_ellapse_time)
method2
if(method3_ellapse_time)
method3
load timing settings and source file paths
according to time settings, set method1_ellapse_time,method2_ellapse_time,method3_ellapse_time
Thread.Sleep(5sec)
//if settings are changed i want them to take effect in 5 secs
}
Stopping the service doesn't work as required because while(true) and thread.sleep.Correct me if i am wrong
Is there any better so that i can get rid of sleep and still windows service loads new settings, somehow make the process less cycles consuming and enable stopping as required. Is threading a solution? but why would any one use threading if one process is running? I want single thread exection at a time. Please provide help
Thankyou in advance
|
|
|
|
|
mark_me wrote: I want single thread exection at a time
Why are you using threading tin this case - doesn't make sense to me.
In your tick event I presume you disable the timer and then begin your processing, then enable you timer.
This method presumably checks the elapsed time from the last process event.
Manage your events in the tick method and read your durations from a DB settings table.
Have the tick fire every #n minutes and every #N times it checks the database.
No stopping/starting the service, ASP writes the settings to SQL, single thread, only down side is a regular read to the SQL to get the settings.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Hello,
i want to create a mobile application runable over all phones. can someone provide me what are the requirement, or do a special sdk exist for each mobile phone.
PLZ help, regards.
dghdfghdfghdfghdgh
|
|
|
|
|
You do know we have a Mobile Development forum. Right?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I doubt "runnable over all phones" and ".NET Framework" go together well. There probably are several phones running some embedded Windows version and a .NET Compact Framework, I am sure there are a lot than run neither.
You will have to rethink your requirements, then ask more specific questions.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Before asking any more questions read the How to get answers post at the top. "Phone" is not a subject that will get you anywhere.
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: "Phone" is not a subject that will get you anywhere.
It got ET home didn't it
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Gee - you get more clueless with every post. Well done.
Windows Mobile is one platform, there are others, most phones subscribe to one of the big platforms, I believe, and I expect that a java app would run on most. I also expect that google would have told you far more detail than what I know.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Well said, I was going to post the same thing, I can't remember a mobile platform thats (mainly) used widely that wouldn't run a Java application.
Just a run up, Java is your best bet.
|
|
|
|
|
hello
i want to write C++ code within C#
how can i do this?
thanks in advance
|
|
|
|
|
You can't. You can use C# to call into C++ assemblies though.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
You can't.
You could write a dll in C++ and use it from C#, but you can't directly write c++ within a C# assembly.
Simon
|
|
|
|
|
THe only way you can mix managed (like C#, VB.net, etc) and unmanaged (like normal c++) code in a single file is to use C++/CLI. This will let you use normal c++ and "c++.net". Unfortunately the resulting syntax is rather heavier than either normal C++ or C# code. As a result it's not generally recommended. Instead the preferred options are to either use p/invoke to call a c++ dll from within C# code, or to create a Managed COM object in C#, and use COM to call it from within C++ code.
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
Thanks davey, simon and dan
you were extremely helpful
i think i'll use p/invoke
thanks again
|
|
|
|
|
Hello everyone,
I am trying to write a C# application, that does something as follows. It is in two parts.
1) windowless application: I want it to be a transparent application, through which user can see the application behind it but still when it click on the application the tranparent one(my application) receives the event message and stores it. Also that event needs to be sent to the main window of application that is running behind my application.
2) Screen capture. for this I need to be able to draw the area user selects on my application which is transparent.
I found couple of tutorials for doing separate tasks of this application in different languages. But could not get started with it. I am completely clueless about how to implement it in C# or C++.
does anybody have any idea how to get this done ?
Any pointers will be helpful.
Thanks,
Parth
|
|
|
|
|
If the purpose of your application, is purely screen capture, this is not the way to do it. If, however it has some other function, perhaps letting us know what that is, might get you an answer.
There are loads of articles here on CP, dealing with Screen Capture. Search the articles, and have a play with the articles you find.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
No ,it is not purely screen capture.
I already found a good application for screen capture written in C#. (Greenshot on sourceforge)
But I dont need those many features.
I only need to capture the events send it to the software running behind. Take a screenshot and then replay these events again on different localized versions of software to take same screenshots from those versions too.
|
|
|
|
|
In other words, you want to invisibly log all events and take screenshots too, so a spy application? I guess you want to hide it from Application and Process tabs in TaskManager too!
Would you want this on your computer? I certainly wouldn't, so you need to provide some justification for it before you'll get any help from me I'm afraid.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
No It is not a spy application,
it is basically screen capture and then replay.
I have softwares from which I have to take screenshots. Now these screenshots need to be taken for
each and every language the software gets translated in.
So instead of doing this manually, I am trying to get it done automated.
That's why I need to capture the events send it to the software for english language and then replay it on other language versions.
|
|
|
|
|
OK, that sounds fair.
Depending on what events you need to capture, have you thought about having an app minimized to tray instead of 'invisible' and using global hooks?
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
No, I do not know how to create such an application. Let me google it.
If you know about any examples or tutorials, Can you give me a link ?
Thanks for the suggestion.
|
|
|
|
|
I will also need to draw user's clipped rectagle back to screen, when user is first time taking screenshot for english language. Does a minimized application allow me to draw rectangles back to the screen ?
Here is a summary of what I already have found on net:
-----------------------------------------------------
Creating a windowless application: Easily with windows forms.
Sending events to another application : user32.dll provides findwindow and sendmessage function.
Storing the events: I intend to use a sqlite engine. It comes in form of DLL that I can import. You will find tutorials online.
What I am looking for now is a way to draw on screen and capture the events:
----------------------------------------------------------------------------
Global hooks might be the solution, if I can draw back a rectangle on the screen at the same time.
I also intend to give use an option to choose colors/pen/rectangle/circle so that, anyone can scribble a bit on screen. But it will not be that fancy.
Can I draw a user control on screen when application is minimized?
|
|
|
|