|
I have bought/read:
- Windows System Programming 3.rd Ed.
- Windows Internals (XP/2003/2000)
- Network programming in .Net
but still can't find any good source of info on how
programatically a router/gateway works.
I want to understand how I can create a windows based router/gateway from scratch using the latest windows technology (.Net 2.0/WinFX).
Please explain and point to some good qualified URL's or books.
I pay $50 on Google for a good answer: http://answers.google.com/answers/threadview?id=701080[^]
TIA
|
|
|
|
|
Get youself a book on TCP/IP and learn C/C++/MFC/win32
|
|
|
|
|
Thanks mate
|
|
|
|
|
Hi all,
I want to create a window system service that sits on the background and just fire another service/executable (i.e, notepad) every time a new user fast switches to a new session. How can I start a new process in another user sessions in WinXP using .NET 1.1 or 2.0? also how can detect the event of user fast switch to a new session?
thanks in advance...
|
|
|
|
|
Hi!
For detect the event of user fast switching use callback HandlerEx
|
|
|
|
|
Could any one help me in getting the
microsoft .net passport sdk
Is there any download link for it please help me out.I need this sdk for development for a site
www
|
|
|
|
|
I want to create assembly that contains dataset. If I build the dataset then everyone reference to my assembly, that person can use my dataset class to modify my database.
Now I want to protect that assembly or dataset class so only my application can use that assembly. If someone reference on it, it will blocked. (I don't one someone modify my database using application that reference to my assembly).
Thanks.
Simple mind programmers, I don't need a complicated mind.
|
|
|
|
|
A simple way to protect the assembly is to make all classes "internal".
If someone references it, he won't be able to call any method or to instantiate any class.
Like all simple things, it is no perfect protection. The other coder could still use reflection to find the classes/methods an call them, even if they are "private".
_________________________________
Please inform me about my English mistakes, as I'm still trying to learn your language!
|
|
|
|
|
Corinna John wrote: A simple way to protect the assembly is to make all classes "internal".
The problem is when we use internal then we can only access the class only on that assembly. If we set protected then we can derived it than we use it. So the both is not good on protecting our assembly from referenced by someone. And also I need that class and method on public so that I can reference my class on that assembly.
I prefer using the "Strong Name Key" rather using internal or protected. But the problem is that everyone example is build or coded under VS 2003 and Framework 1.1, now I develop under VS 2005 and Framework 2.0. It seem more complicated (or I maybe not understand signig under Framework 2.0) to set the "Key" on it.
So I suggest you don't use internal or protected to protect the code.
Thanks anyway.
Simple mind programmers, I don't need a complicated mind.
|
|
|
|
|
Maybe this can help:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconlicensingcomponentscontrols.asp
|
|
|
|
|
|
hi all,
a have two console apps runing on local computer, and i need them to interact.
at the first glance - i need implement remoting - in "serverA" i exposed class
Client and in "serverB" I accessed it by remoting.
the problem is - in "serverB" i see Client object as naked one, that meens, that
i can't access the running things [references] in "serverB" - configuration file, object that
holds DB connection, etc. first i thought that it is goot idea to SetData/GetData
in AppDomain, but i don't get references to existing objects - just values.
so how to have references in remotable object?
thanks in advance
|
|
|
|
|
We are using Crystal Reports to generate printed documents for our application,
we have the same code running on about 200 machines, and some of the machines
are giving the following error when trying to print the reports:
=============================
Logon failed.
at .F(String , EngineExceptionErrorID
)
at .A(Int16 , Int32 )
at .@(Int16 )
at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32
nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32
nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
at Printing.PurchaseDocument.ImpPrintDocument(DiscoFactory discoFactory,
Hashtable settings, Guid branchID, Guid documentID, String documentTypeName,
Boolean ifCopy)
at Printing.PurchaseDocument.PrintDocument(DiscoFactory discoFactory,
Hashtable settings, Guid branchID, Guid documentID, String documentTypeName,
Boolean ifCopy)
at Browsers.PurchaseOrderBrowser.ActionPrint()
=============================
We are not logging onto any data source, as we are populating the reports
from datasets fetched from our SQL2000 database. This error makes no sense
and our client is getting very annoyed at us for not being able to fix this.
I feel that this might be an issue on Crystal's side, since it runs fine on 99% of
the machines our code is deployed to. We are using the Crystal Reports
designer built into VS 2003.
I've found some sites on the web referencing this issue, but there are no
solutions to be found for this problem.
http://p2p.wrox.com/topic.asp?TOPIC_ID=10116
http://www.dotnet247.com/247reference/msgs/32/161072.aspx
If anyone has had this, please let me know how to fix it.
Regards.
modified 30-Aug-22 21:01pm.
|
|
|
|
|
The contextmenu provide event Collapse, but it seems do not work.
I can write the eventhandler for it, but the code respond to this event can not be executed no matter which operation is processed.
Is it a bug ?
{
.....................
ContextMenu buttonMenu = new ContextMenu(menuItems);
buttonMenu.Show(button1, new Point(0, button1 .Height ) );
buttonMenu.Collapse += new EventHandler(buttonMenu_Collapse);
}
void buttonMenu_Collapse(object sender, EventArgs e)
{
//no chance to see it
throw new Exception("The method or operation is not implemented.");
}
|
|
|
|
|
I have an application developed by .net framework 1.0 , the application works fine on my development machine , but on the non-development machine (the customer machine) the application sometime crashes
giving this error message , note that i handeled the unhandled exceptions in my application and that also there is no a particualr scenario that produces this exception.
So does anyone have any ideas about what could be the reason for this exception , please help me because am stuck in this problem for more than a month now.
I would Like to add that the application runs and that this exception appears while using the application.
Thanks for the help in advance
|
|
|
|
|
|
Not too familiar with the 1.0 framework so this may not be available but try adding a handler for the AppDomain.CurrentDomain.UnhandledException.
This may at least give you some information about where the exception is occuring.
hth,
Alan.
|
|
|
|
|
Hi,
I have been trying to figure out, is it possible to use .NET-classes with massive C-program in restricted cases?
The program is compiled with Visual C++ - compiler.
Converting the whole program to C# is out of question, so is it possible to use .NET only occasionally?
|
|
|
|
|
No, unfortunately C compiles to native code, wheras .NET compiles into MSIL before being run.
This means that .NET classes are completely unaccessable by C.
What are you looking to do? is there no native method to do the same operation?
|
|
|
|
|
That is not completly true C# and C++ can talk, in COM language. You can compile one site into COM and then share it as components.
Greetings,
Felipe
|
|
|
|
|
Thanks for advice, I guess I'll have to try some other approach.
It's just that .NET has some neat features, I'd like to use..
|
|
|
|
|
C# syntax is very similar to other languages, if you could just object-orient your C code, even very crudely it may be worth the swap... - and you can access WinAPI calls from .NET languages.
|
|
|
|
|
As the others have posted, you can use COM interop, but you may get better results using the .NET Hosting APIs.
For information, see "Hosting Interfaces.doc" under the .NET Framework SDK directory (typically C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Tool Developers Guide).
See also What Is CLR Hosting[^].
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I'm writing an application that hosts plugins, and the plugins are executed in a worker thread.
Now in the plugins I would like to be able to show forms modal to the main application form.
If I just do this in a plugin:
databasedialog.ShowDialog();
it will not be modal to the main window. So my first thought was to give the plugins access to the IWin32Window of the main application form through a parameter sent to the plugin. And then I could do this:
<br />
IWin32Window win = context.MainForm;<br />
databasedialog.ShowDialog(win);<br />
But this will give me a crossthread access error.
Could anyone help me solve this?
thanks
/luddet
|
|
|
|
|
You have to show the form on the main form's thread. You can do this via Form.BeginInvoke[^].
private delegate void ShowModalDialogHandler(Form dialog);
private void ShowModalDialog(Form dialog)
{
if (context.MainForm.InvokeRequired)
{
context.MainForm.BeginInvoke(new ShowModalDialogHandler(ShowModalDialog), new object[] {dialog});
return;
}
dialog.ShowDialog();
}
|
|
|
|