|
Hello!
I wanna know window dll file's built in function.
Could u help me any links or any E-books?
I'll thz u very much..........
|
|
|
|
|
phowarso wrote: I wanna know window dll file's built in function.
I can't understand what exactly are you trying to do.
What kind of dll, what kind of window?
Could you be more specific please.
Life is a stage and we are all actors!
|
|
|
|
|
phowarso wrote: I wanna know window dll file's built in function.Could u help me any links or any E-books?
Anything specific? Windows is "huge" in terms of code, and there's no complete list with all functions.
If you're just interested in browsing then you might want to check out PInvoke.NET[^]
I are Troll
|
|
|
|
|
|
Hi,
First you need to create public methods in the DLL. if you don't have any public method then you can not call it.
1. To use any DLL in your project first you need to add it in the project in Solution Explorer-> Project -> References -> right click and select "Add References" and select dll you want to use.
2. Then in your form add create object of the dll class and then use its method.
ie. DllName obj = new DllName();
obj.MethodName();
Hope this will help you.
Regards,
Nilesh Shah
|
|
|
|
|
Suppose i have 2 .net exes test1.exe and test2.exe
is Garbage collector common for these two? Do we have separate garbage collector for each exe?
My small attempt...
|
|
|
|
|
Absolutely yes.
Garbage collector is only one for any number of applications.
However it will perform clearance based on application context.
And application context is different for each application.
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
sujithkumarsl wrote: Suppose i have 2 .net exes test1.exe and test2.exe
I'd assume that it collects the garbage of text1.exe, and then moves on to the next building. Test1 and Test2 both got their own garbage, and their own garbage-can.
sujithkumarsl wrote: Do we have separate garbage collector for each exe?
The builtin GC can handle multiple .NET executable on the same machine without additional configuration. So, in short, no.
I are Troll
|
|
|
|
|
Greeting All,
I need to switch between calender type at Regional and Language options,
Any one has an example or link that define that
Thanks for all
jooooo
|
|
|
|
|
kindman_nb wrote: I need to switch between calender type at Regional and Language options,
I wouldn't be very happy if some application changed my regional options - it would upset all other applications on my system!
Having said that, there's an example on doing so here[^]
I are Troll
|
|
|
|
|
I have a project where the data is intended to be hierarchical in nature. The obvious solution seemed to be to create a hierarchical set of domain objects: when you instantiate the root object (with its key) it goes to the database to get its properties and a list of children. It then instantiates a child object for each and maintains them in a collection. As each child object is instantiated the process repeats itself recursively.
All well and good. Except it doesn’t follow the principles of SOLID: these domain objects contain data access code. What is the correct design (or design pattern) here?
- Do I ignore SOLID in this case?
- Have a parallel hierarchy of data access helper objects (one for each domain object)?
- Do I keep all the data access code in the object that created the root domain object (ensuring it is thread-safe) and reference it from the domain objects using callbacks?
- Encapsulate the data access code in a thread-safe singleton helper?
- Is my basic approach flawed?
- Something else?
(The database hasn’t been designed yet, and the domain objects will need to be able to save changes ... more data access code. These domain objects will be accessed a number of ways including via a treeview in the UI.)
Surely this is something that must have come up many times before.
|
|
|
|
|
If you implement the children objects as interfaces (and you should, for the D in SOLID) then you can just leave them as placeholders until they are accessed in the tree.
I have also worked on a couple projects where you push an IDataAccessSomethingOrOther into a presenter or controller layer. As the view events are raised that require loading, methods on the IDataThingyIMentionedEarlier are invoked by the presenter/controller that would load those child objects up.
My advice would be to keep your data out of your model objects.
Cheers,
|
|
|
|
|
Hi TCMMJ,
You appear to have provided an answer to an entirely different thread here.
|
|
|
|
|
Really? Are you seeing it wrapped across the forum page?
Maybe I'm seeing it wrong, but I think I contributed to part of the answer.
|
|
|
|
|
Sorry, I think your right, the forum was wrapping, making your answer appear under my question - bizzarre??
|
|
|
|
|
Hi,all
I am rebuilding an existing application and would like to know more about using net remoting. The application is currently a windows forms application (Net 3.5) that talks directly to database using ADO. I would like to know if any performance gains can be expected if I were to switch from the existing approach and build a client server type application? Clients would hold the application GUI and use NET remoting(tcp channel, binary serialization) to talk to a single server application instance that would handle database operations (N-1). The whole system would be deployed in an enterprise environment ( Database is in one, central location with several other physical locations connected to it via VPN ).
I hope that was clear and thanks in advance for your help.
|
|
|
|
|
esparagus wrote: I would like to know if any performance gains can be expected
A difficult question to answer without knowing more details. If anything you should see performance remain the same or honestly drop slightly since remoting adds another layer that must be navigated.
.net remoting is depricated, you should be learning WCF, which can also use TCP bindings, not just HTTP.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I vote for WCF as well -- I'm just learning it now.
|
|
|
|
|
A customer has a problem with our C# desktop app. When he tries to use a part of the app that consumes a web service, this exception appears:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
My first thought was that the customer's .NET installation must have been bad and a required file might be missing, but I got him to check and the System.Web.Services.dll is found in his C:\Windows\Microsoft.NET\Framework\v2.0.50727 folder as expected.
I'm out of ideas having never come across a bug like this before. How should I proceed?
Thank you for any help!
|
|
|
|
|
The only two things that spring to mind are:
1. Is the System.Web.Services.dll registered in the GAC?
2. It might not be the System.Web.Services.dll that is the problem but rather 'or one of its dependencies' as in the error message.
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.”
|
|
|
|
|
Reinstalling the .Net framework might be the easiest fix.
|
|
|
|
|
Thanks. I'll ask the user to do that and see what happens
|
|
|
|
|
How To Restrict textbox control for numaric key in vb .net
|
|
|
|
|
Try This..
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsDigit(e.KeyChar))
e.KeyChar = (char)(0x00);
}
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
Use a MaskedTextBox instead or maybe a NumericUpDown control.
|
|
|
|