|
Microsoft Enterprise Library is an Application Framework consisting of 7 or 8 Application Blocks (can't really remember the number). Each block deals with a different category of common issues that you would otherwise had to go through in your code (such as logging block, database block, exception block, etc.). It's not only used for database development.
You have the option to select which of the blocks you want to include in your code, and each one of them comes with a variety of classes and methods that ease the development and handle things in the Microsoft recommend way (afterall they are written by Microsoft).
When it comes to Databases, from what I can remember, currently the Ent. Library supports only Oracle and SQL Server. I am not sure about the rest (Odbc and so on).
If you are only interested in Database development then a good alternative would be the RapTier framework. Google for it, it's quite good, it supports all database types, and it comes with a good documentation.
Hope this helps.
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
Suppose a process notepad.exe has started. I like to know how to detect a period of inactivity of a user for that process, for instance how long the user has not entered anything into notepad.Maybe System.Diagnostics can solve this problem but i did not find much information on the websites.Hope to gather some advice here.
Thanks a lot
|
|
|
|
|
Hello, everyone.
I have a problem about the coordination system of mouse pointer in
different monitors.
My windows application program is developed using MS Visual Studio
.Net 2003 in C#.
First I insert a MS chart component into the form. Then I added a tooltip
into the form to show the x, y values of the location of mouse pointer when the mouse moves into the chart component.
I tested my program in a desktop with an old Phillip S105 monitor, then in
a desktop with hp 1730 monitor, and lastly in an Acer laptop.
The tooltip output values from Phillip S105 monitor are completely
different with the results from other two monitors of the same position
on the chart.
The locations and sizes of the chart are exactly the same because I use
the same program to test. The resolutions of monitors make no differences.
Does anyone have such kind of problems before?
Please help.
|
|
|
|
|
Your monitor does not interact with your computer, it simply accepts data and displays it. There is simply no way that the monitor that's plugged into your PC could make your code behave differently. You need to look again to see what the source of the problem is.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have a dll(in C++). Now I must use a method in it. The method has a parameter of "double **", so how can I managed it to .net?
The class Marshal in .net include a method "Copy", but it can only copy the data of one dimesion from managed code to unmanaged or vice-versa. How to copy a 2 dimesion array ? Please help me !
thanks a lot.
welspring
hope for help
|
|
|
|
|
A ** is a jagged array - perhaps you can create the first array level, and then step through and use Copy to create each of the sub arrays ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Can you give me an Example?
hope for help
|
|
|
|
|
Sorry, I've not tried it. I suggest you find an API function that uses a double ** ( assuming this isn't one already ), and try www.pinvoke.net, see if they have a signature for it. I'd have expected double [][] to work ( it is the same as a double ** ). Actually, pointers are supported in C#, perhaps you could just use pointers directly ( dunno here, I've never tried, but I have certainly used pointers )
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
thanks! I will try it!
hope for help
|
|
|
|
|
hi,
dll must have public methods..
if dll is a componnet,you can add it to the .net using refferences-->>add reference..
after that it is easier for you..
if not you have to import dll like this:
[DllImport("abc.DLL",EntryPoint="methodname",ExactSpelling=false,SetLastError=true)]static extern int methodname(double[][] dd);
I think you may help above details..
regards ,
pubudu..
|
|
|
|
|
hi pubududilena,
it seems that "double**" is not equal to "double[][]".
hope for help
|
|
|
|
|
hi
try like this:
static extern void methodname(out double dd);
or
static extern void methodname(ref object dd);
|
|
|
|
|
I am using C#.NET and I have a form called frmLogin. I am trying to open it from a form called frmMain, this is the code:
frmLogin.Show();
What is wrong?
It says the error is "An object reference is required for the nonstatic field, method, or property 'System.Windows.Forms.Control.Show()'"
Thanks everybody!
|
|
|
|
|
Have you instatiated it
i.e
Form frmLogin = new FormLogin(); //whatever you have called the new form
frmLogin.Show();
|
|
|
|
|
I am looking for some documents/whitepapers/whatever that would point to good coding conventions for ASP.NET/C# forms development. If anyone has some tips or pointers, that would be much appreciated as well.
Thanks in Advance
The Yellow Dart
|
|
|
|
|
The book 'Code Complete' has some good general suggestions. Beyond that, perhaps have a look through some online samples and see what conventions are used, and familiarise yourself with the general .NET conventions ( for example, if you want to write CLR compliant code, don't rely on case for variable names, as the CLR can't do that, because of VB.NET ).
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I know this is not the first time this question has been asked, but I need help playing MP3 audio in my C# application. I know the obvious route would be to use the Windows Media control, but I can't figure out how to add it to my program because Microsoft's instructions assume that I'm using Visual Studio, which I am not. Anyone know how I can add it to my program using SharpDevelop, or another possible route? Keep in mind that I'm a beginner with C#.
|
|
|
|
|
Basically, to play MP3's, you'll need COM interop, be it WMP or something else. Sharp Develop doesn't allow you to import COM objects ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
It probably does. I dunno how though.
|
|
|
|
|
I am trying to compare the user names of people using my webform to a group of users that the networking guy has already created in ADS so that I do not have to hard code in names. I am not sure how to go about doing this, if it can even be done, or what type of items to search for. Any help would be greatly appreciated
Scott Moore
|
|
|
|
|
Hi
I have write a web proxy server using c# but the follwing senario occure.
when we try to send a request to the internet the network performance is very low even though ,there are many requests pended to the internet.
Now .
if this problem in the C# socket strcture ,or in the options of the socket .
plz any help.
thanx in advance.
On Earth nothing impossible,
while your mind running.
Faroqtam
|
|
|
|
|
It's nearly impossible to say without seeing some code. Sockets can perform virtually as well in C# & managed code as they do in the unmanaged world, so I can say with certainty that it's not the DotNet framework that's slow here.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: The Secular Left, the Religious Right, and Prejudice
Judah Himango
|
|
|
|
|
hello,
how can I compare two HTML files and know if there text contents has changed and highlight the changes.
|
|
|
|
|
That's a multi-part question that I won't answer in a single post. You can compare text using string.Compare, string.CompareOrdinal, or use some of the regular expression methods found in System.Text.RegularExpressions.RegEx class. That will tell you what's different. From there, you'd have to provide more information as to what you're trying to highlight, what control you're using to highlight, whether you're using Windows Forms or Web Forms, what problems you're having, etc.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: The Secular Left, the Religious Right, and Prejudice
Judah Himango
|
|
|
|
|
Hi, how can I get the datatype size of DataColumn
I get the Datatable from Sql server database table. I this table I have an varchar(20) datatype column, but how can I get 20 size value of this varchar datatype in the System.Data.Datatable
I can get only the dataype (Varchar) without size (20)?
Thank you!
La realidad no es más que impulsos eléctricos del cerebro - Morpheus
|
|
|
|