|
MSDN gives you most of the answers. Have a look at Interoperating with Unmanaged Code[^]
Like Eric answered my post, its best to give a specific example and to work on that. In the unmanaged world not all things are equal. Also to make code CLS-Compliant stick to signed types.
Hope this helps
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
Thanks both for your fast replies. They helped a lot.
Edgar Berengena Moreno
Software Engineer
Appeyron Research
|
|
|
|
|
How to change the back color of a StatusBar??I only find an event named OnBackColorChanged of the statusBar control,but how can i change its back color manually?
|
|
|
|
|
|
I have been trying to figure out how to create an animated form like the ones I see Microsoft have.
Now I do not know if this is what they are called, but this is what I call them until corrected.
Example of what I am talking about is when a form is docked and you hide it and show it, that it slides in and out from the side/area it is docked in.
Another example would be with windows messaging and how the notification form appears near the system tray.
I would love to know how these are implemented, and if it can be done in C# natively or if COM InterOp is required.
Regardless, if anyone knows how this is done please let me know.
Thanks in advance...
Aalst
|
|
|
|
|
Aalst wrote:
Example of what I am talking about is when a form is docked and you hide it and show it, that it slides in and out from the side/area it is docked in.
Check out Magic Library[^]
Aalst wrote:
Another example would be with windows messaging and how the notification form appears near the system tray.
Check out the article on CP about Baloon Tooltips
May the Source be with you
Sonork ID 100.9997 sijinjoseph
|
|
|
|
|
Magic Lib has an Auto Hide, that I will look at, but I am not sure if it will work for what I need. I want to do this stuff on the desktop.
As for the Balloon's, I know how to do that, that is not what I am talking about. You must not use Windows Messenger. When it gives messages it has this little blue square form popup from the System Tray. It is pretty kewl. It is not a balloon.
Thanks,
Aalst
|
|
|
|
|
Aalst wrote:
You must not use Windows Messenger. When it gives messages it has this little blue square form popup from the System Tray. It is pretty kewl.
Ohhh...Right.
May the Source be with you
Sonork ID 100.9997 sijinjoseph
|
|
|
|
|
If you know C++ you can give a look on Taskbar Notification dialog.
It'll show you how to make such a form and you'll be able to make your own and post it on CP.
43 68 65 65 72 73 2c
4d 69 63 68 61 65 6c
|
|
|
|
|
How can I parse a complete text file to make it generate script ? ex :
suppose that in the text file I have my own define script functions like
PopMsg("Hello","Test Caption");
and a lot of other things . How can I parse all the text file to find :
1- the function declare (like PopMsg)
2- Check for the parameters
???
Thanks
|
|
|
|
|
first you would split into lines, identified by the ; char.
then you would go over each line and determine what the line contains,
once you know that you can invoke a different parser for each case (var declare, function, etc)
Its a lot of work when you get into strings, which may contain chars which are part of your syntax, ;'s in strings have to be ignored, for example.
|
|
|
|
|
do u have sample code please ?
|
|
|
|
|
Instead of writing your own script language, I would suggest employing the .NET script engine; according to the author it only supports VB and JScript.NET. Or you could load a C# source file into memory and then compile it with the C# compiler classes then load the resulting assembly with the System.Reflection classes.
James
"And we are all men; apart from the females." - Colin Davies
|
|
|
|
|
Ok
but do u have sample code, because i'm new to this and what you're told me is a little upper than me
|
|
|
|
|
The two articles I linked to cover the topics; for the second article it covers compiling code; but I'm not aware if it covers loading the compiled components and executing them.
My article, Using reflection to extend .NET programs, covers how to load an arbitrary assembly and execute it by using an interface known to both the program and the 'script'.
James
"And we are all men; apart from the females." - Colin Davies
|
|
|
|
|
1- is it possible to create a software like Laplink or PcAnywhere in C#, what I want to do is to see the current screen on the remote computer and be able to manipulate it from my computer ? if yes how can I do this ?
2- How can I create a multiple client chat app like one server to monitaring all the messages of all the client connected and a lot of the same client app to chat with each other ?
Thanks
|
|
|
|
|
BLaZiNiX wrote:
1- is it possible to create a software like Laplink or PcAnywhere in C#, what I want to do is to see the current screen on the remote computer and be able to manipulate it from my computer ?
I don't see why not, essentially a program like this transmits keystrokes, mouse movement, and button clicks from the client to the server and the server sends back the bitmap representing the screen.
BLaZiNiX wrote:
yes how can I do this ?
You implement each of the things I outlined above. Sorry if its no help; but you are asking for a lot there.
BLaZiNiX wrote:
How can I create a multiple client chat app like one server to monitaring all the messages of all the client connected and a lot of the same client app to chat with each other ?
Sounds like an IRC server; I suggest taking a look at some of the open source IRC servers out there to see how they do it; then work how to accomplish the same things in .NET.
James
"And we are all men; apart from the females." - Colin Davies
|
|
|
|
|
no it's not an IRC related thing, It's only because when I use TcpClient and TcpListener, can I use the same app that run only the tcpClient suppose 5 times
I want to make something more like multiple client on one server like ICQ or MSN
|
|
|
|
|
BLaZiNiX wrote:
It's only because when I use TcpClient and TcpListener
It all depends on how you work with them; I don't know of any limitations with TcpClient/TcpListener.
To test this theory out you could create a simple server that accepts a connection, then spawns a new thread to handle that connection. In the real world this is a bad thing to do (too many threads will slow it all down); but it will help illustrate that there shouldn't be any such limitation.
James
"And we are all men; apart from the females." - Colin Davies
|
|
|
|
|
yes I know I ask a lot, it's because I want to make a program and I don't have any idea . If u have one u can tell me
CYA
|
|
|
|
|
BLaZiNiX wrote:
How can I create a multiple client chat app like one server to monitaring all the messages of all the client connected and a lot of the same client app to chat with each other
Should be a breeze if you use .NET Remoting.
May the Source be with you
Sonork ID 100.9997 sijinjoseph
|
|
|
|
|
|
Try VNC, Clickety[^]
It comes with sources.
Concussus surgo.
When struck I rise.
|
|
|
|
|
I made a invisible component with c#,I add it in toolsbox,but I can't change the default ico.help?
lost my way
|
|
|
|
|
Scroll down one day
But its short so here it is: ToolboxBitmapAttribute
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|