|
Besides maintaining an instance of a DataSet (which can be easily serialized to and deserialized from XML) and using Find , you can also use an IDictionary implementation like the Hashtable . This won't, however, allows you to find similar but different names without extending the Hashtable greatly.
Otherwise, you can always build your own database-like implementation with lists, collections, and the sort. To find similar names you'll offen experience O(n) operations unless you use something like a character-based or word-fragment-based B-tree.
Another option is to go with an in-memory database that exhibits the ACID properties (although it goes about transaction processing differently) known as Bamboo Prevalence (a .NET version of Prevayler, which is a Java implementation). See http://bbooprevalence.sourceforge.net/[^] for more information, or Object Prevalence with Bamboo Prevalence[^] for an article about it here on CodeProject.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Hi!
I've written a Client-Server-Application using Remoting. The Server runs as a WindowsService on a Windows 2003 or Windows 2000 Server. So far everything is working fine.
But if the Server has 2 or even more Network-Cards installed - how do I tell my RemotingApplication which one to use? and 2nd: how do I get the IP-Address of each Network-Card?
Any help would be really appreciated!
Andreas
|
|
|
|
|
You just have to specify the appropriate port. Windows device manager will internally map the port to one of the multiple network cards.
|
|
|
|
|
I already got that port-thing - my question was if I can tell the Framework/App explicitly which Network-Card to use?
anyway thanks for your answer!
Andreas
|
|
|
|
|
In my asmx page, user can request for WSDL . How can I disable it. I want only my priivate customer access to the service defenitions.
Mazy
No sig. available now.
|
|
|
|
|
After digging through the assemblies and documentation, if there is a way I haven't found it.
However, hiding information is by no means a way to secure information. Instead of worry about others getting your service definition, use the Web Services Enhancements 1.0[^] (2.0 is still a preview and shouldn't be used / can't be used due to licensing restrictions in production environments).
You can add WS-Security (remember my XML Digital Signatures article? That's a part of it) and many other things (like authentication via X.509 certificates) to ensure that no matter who gets your WSDL, only people to whom you grant credentials or certificates (or both) can access your Web Service.
This is by far a better way than just hiding it. If someone wants your service definition that badly, they will get it.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Heath Stewart wrote:
Web Services Enhancements 1.0
hmmmm. Good point. Thanks.
Mazy
No sig. available now.
|
|
|
|
|
Just day dreaming here. But how can you dial to a phone using modem/C#/.NET, then play a clip, say in mp3 format?
norm
|
|
|
|
|
norm wrote:
Just day dreaming here. But how can you dial to a phone using modem/C#/.NET, then play a clip, say in mp3 format?
The simplest way would be to use the TAPI 3 COM objects via COM Interop. Have a read on MSDN for the Tapi 3 docs. It should at least get you a starting point of making the call.
Not sure about playing mp3 down the phone though, I've only ever done that with Tapi 2 and Wav files via the Windows multimedia libraries.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
|
Hi,
Im using C# to create a clinical information system(data management) what i would like to know is on what OS will the app run...some guys told me that .net apps are not able to run on win98 OS...this worries me alot...im at the point of no return...i heard that there is a framework or something to solve this...pls tell me
2. i want my software to send certain information from one form to a different form(in the same app) on a diff. workstation...is there anywhere where i can get resources for networking codes...maybe u guys could gimme some initial/crutial points...thx alot
Arvinder Gill
|
|
|
|
|
ASGill wrote:
some guys told me that .net apps are not able to run on win98 OS
That's incorrect - the .NET Framework is not supported on Windows 95.
ASGill wrote:
i want my software to send certain information from one form to a different form(in the same app) on a diff. workstation
.NET Remoting is your answer. This is the de facto way of marshaling and transmitting data between two different AppDomain s. See Accessing Objects in Other Application Domains Using .NET Remoting[^] for topics and examples. Also visit http://www.ingorammer.com[^] for arguably one of the best sources for .NET Remoting information. He also has a book.
And speaking of books, there's also Microsoft .NET Remoting[^] from the Microsoft Press. It's a good intro and intermediate book on .NET Remoting.
You can also search the CodeProject site for information on .NET Remoting as well.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
well thats a big relieve abt .NET apps not working on WIN 98...and also thx for the resources abt .NET Remoting i dint had any cllue abt it until you told me...great help friend!...thx a mil.
Arvinder Gill
CODER
|
|
|
|
|
I've flat out forgotten how to make my class accept [] notation, as in:
myClass[0] = 7;
any help appreciated....
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Christian Graus wrote:
myClass[0] = 7;
What is referenced with myClass[0] ?
- Nick Parker My Blog
|
|
|
|
|
It's OK, I figured it out:
public object this [string key]
{
get
{
etc.
Thanks though.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Hi,
I am relatively new to C#. I am trying to implement a system which locks the user out from all Windows functions such a the 'Start Menu', shortsuts such as CTRL-E and CTRL-ALT-DEL. Basically I have designed a database for the public to search for emigrant records from the 19th Century between Europe and US. But as with all things I am getting 'fiddlers' who seem more interested in trying to mess up Windows settings. So what I need to do is have a splash screen which will display the shortcut or link to the database and nothing else. The program will then lock out any attempt to access any other Windows functions. Is this sort of functionality available in C# and if so does anyone have any suggestions,
Regards,
John
|
|
|
|
|
You're using the wrong language - you need to set up some system hooks, which I believe requires C++, although it may be possible using some sort of funky interop stuff.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
|
Ctrl+Alt+Delete is not something you can hook, though. This is by design. One can hook Ctrl+Tab and similar key combos.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
One thing you can do that fairly easy is to set your app as the shell, this will stop access to Start menu and the entire desktop, but not Ctrl-Alt-Del.
|
|
|
|
|
Is there anyway of blocking or diabling the CTRL-ALT-DEL option then in windows using C# or anything that can run with C# as shutting down my app will allow them back in to mess around with the settings and unfortunately defeats the purpose of doing it Any ideas?
|
|
|
|
|
|
Hi,
I am implementing a custom control which has a listview as one of its sub controls. I am able to populate this list at design time through the control properties. The populated list then appears as expected in design time.
Once I run the application, the list appears empty. Terminating the application and re-opening the form (in design time), shows the list as empty!
How can I retain the values of the properties provided by the user at design/runtime!??!!
Thanks in advance,
Victor
phpWebNotes is a page annotation system modelled after php.net.
http://webnotes.sourceforge.net/demo.php[^]
|
|
|
|
|
You probably have to save the values to a file
|
|
|
|