|
Create them youself. If you have complex statements the autogenerated ones aren't usually as efficient as ones you would create manually. Besides that, you should be using stored procs rather than manual sql statements.
only two letters away from being an asset
|
|
|
|
|
How would I create them? What would be the query to update?
|
|
|
|
|
Stop what you're doing at this point and learn a little SQL before continuing.
only two letters away from being an asset
|
|
|
|
|
I know all about SELECT, UPDATE, INSERT INTO, etc statements, I just need to know how to use them with the datagridview.
|
|
|
|
|
Seriously, is this[^] difficult to do?
only two letters away from being an asset
|
|
|
|
|
Thanks for your help. Just needed to know what to google
|
|
|
|
|
Hi,
Is it possible to parse and fetch TYPE PARAMETER & TYPE PARAMETER CONSTRAINTS information defined for a Generic class OR method in a C# source code using CodeModel APIs?
I do not see any API exposed in EnvDTE & EnvDTE80 namespace. Can you please suggest me a solution.
Regards,
Manish
|
|
|
|
|
Take a look at the MethodInfo.IsGeneric??? properties in the System.Reflection namespace.
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.”
|
|
|
|
|
Hi,
I am using CustomRoleProvider for connecting to ActiveDirectory.
My requirement is to:
- Add/Edit Groups,
- Add/Edit Department(Groups will belong to a Department),
- Add/Edit/Delete Users,
- Add/Edit Roles,
- Add/Edit Permissons and
- Add/Edit Role with subRoles under it.
My questionis is can we implement these features in ActiveDirectory?
Best Regards,
Mini Thomas
|
|
|
|
|
Uhhh, yeah, Active Directory already does all this. You've never used Active Directory before, have you?
|
|
|
|
|
I have not worked on Active Directory except for Authenticating User LoginId and Password.
Best Regards,
Mini Thomas
|
|
|
|
|
Then you've got a lot of catching up to do. I'd start by picking up a couple book on Windows Server 2003 or 2008 and Active Directory.
|
|
|
|
|
Hi,
Could anyone please help me with hiding the task bar when application runs. I did that with some code. But when I run another process from a button click, the task bar reappears. I want to disable the windows button too..
Thanks
-----------------------------
I am a beginner
|
|
|
|
|
Don't cross post in multiple forums. Pick one and stick with it.
|
|
|
|
|
|
Help you with what? You haven't stated any kind of a problem you're running into.
If you're looking for code, noone is just going to hand over a project that they've put their hard work into. You have to write your own code. We're just here to help if you run into problems with it.
|
|
|
|
|
You didn't understand me
I need dll files for that machine if you have!!!
thnax,
|
|
|
|
|
Salehtel wrote: You didn't understand me
Of course not! You didn't mention anything about .DLL files in your original post, nor anything about any programming questions.
Salehtel wrote: I need dll files for that machine if you have
The only place you're going to get "DLL files" for that machine is from the manufacturer of it. Noone else is going to give you the files, nor the installer for them, nor can they legally do so.
|
|
|
|
|
I'm guessing that you'll need to get this from ClevelandTime[^].
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Oooh, that "Download" link looks kind of promising! Doesn't it!
If thing continue like this, we'll back back to entirely pencil and paper in about 15 years.
|
|
|
|
|
I have what amounts to a set of MS Word macros that I would like to test with automation. It's easy enough to start up word and drive it from my C# code using the Microsoft.Office.Interop.Word and System.Runtime.InteropServices.
One of the things I want to test is error conditions. The macro code will put up MsgBox dialogs with information if the input doesn't conform with my expected format. I would like my automation code to be informed when a dialog/msgbox is created so that negative tests can be performed.
The only thing I've found so far that might be able to do this is the windows hooks stuff by the cutting edge folks (http://msdn.microsoft.com/en-us/magazine/cc188966.aspx[^]).
This seems a little intrusive for what I need. I don't need to get in the call chain for a dialog, just need to be notified when one gets created. I've got to be missing something obvious.
Any pointers would be most appreciated.
|
|
|
|
|
PHinker wrote: The only thing I've found so far that might be able to do this is the windows hooks stuff by the cutting edge folks (http://msdn.microsoft.com/en-us/magazine/cc188966.aspx[^]).
This seems a little intrusive for what I need. I don't need to get in the call chain for a dialog, just need to be notified when one gets created. I've got to be missing something obvious.
The hook is the only way to get "notified" of the creation of a dialog.
The only other way to do it would be to constantly pool and use the GetWindow and FindWindow Win32 functions to get all of the windows in the system. Keep track of them, and scan again, comparing the new list of windows to the previous one. When you find a new window, there you go...
|
|
|
|
|
Thanks for the quick response, Dave. I'll quit looking for another way to do it then. I had been doing something similar to what you suggest (just polling with GetForegroundWindow and seeing when it changed to something unexpected) but it seemed like such a hack I thought I must be missing a better way.
I appreciate your help.
Paul
|
|
|
|
|
|
Let's say I have a .NET 2.0 application that needs to load about 30 different .NET 2.0 assemblies during startup. Said application is taking about 35 seconds to cold-start and about 13 seconds to warm-start under a specific environment. I am aware that these numbers are fairly typical of .NET 2.0 applications. Our company did not develop said application, but am tasked with coming up with suggestions on how to improve the cold-start performance.
The reading I have done suggests that the difference in the two times is due to pages still being available in memory and not as many hard-faults (disk accesses) need to be performed to reload an assembly.
Things I have identified as potential solutions are:
1. Update the minimum hardware requirements (not sure what they currently are, but the tests above were done on a 1.8 GHz P4 with 512MB RAM). The cold-start time drops from 35 to 13 seconds on my development box which is a 3.0 GHz Dual Core with 2GB RAM. Warm-start time drops from 13 seconds to 3 seconds.
2. Update the application and all its assemblies to .NET 3.5. Any idea what improvement is this likely to achieve?
3. Generate native images for the assemblies. This is a trade-off between the time needed to load larger disk images and the time required to JIT-compile a CLR assembly. Is this worth pursuing further?
4. Rebase the assemblies. Using Process Explorer from SysInternals I observed that 30 assemblies were relocated by the OS Loader. Preliminary tests indicate that the performance improvement is negligible.
5. Preload the assemblies. What this would try to achieve is to mimic a warm-start, but I'm not sure how it would have to work. If I have a pre-loader application that loads the assemblies needed by the actual application, aren't different copies of the assemblies loaded by each application into its own AppDomain? How would this help improve cold-start performance unless the assemblies are put in a common place? As you can see I'm a little confused. Help?
I have gleaned most of my information online from http://msdn.microsoft.com/en-us/magazine/cc163655.aspx[^].
I look forward to hearing suggestions, ideas. Thanks.
modified on Thursday, April 30, 2009 7:41 PM
|
|
|
|