|
As an alternative, you can try using WMI to enumerate system devices. This[^] article can get you started.
|
|
|
|
|
Thanks! I will take a look at the code.
I was hoping that .Net would behave a bit better on 64-bit (Win7). I guess Microsoft still has some bugs in their COM libraries (or would that be a .Net issue?). If a COM issue, that too is a bit surprising, as both 64-bit and COM has been around for some time. Even Adobe supports Flash on for 64-bit Windows. One would think that Microsoft would support true / full 64-bit COM, but I guess not.
|
|
|
|
|
COM Interop with 64-bit has always been a problem. This[^] post contains information about enumerating Sound devices, I think that is what you are looking for.
|
|
|
|
|
I am new to this whole area (enumeration, .Net, etc.). Thanks for both pieces of information. I assumed that the COM interop 64-bit services worked, but the adage about assume comes to mind.
I will check out the other article too!
|
|
|
|
|
Hi
please help me
I need a sample code for using crystal report in asp .net MVC project
please send to me if you have
thanks a lot
|
|
|
|
|
Hi
please help me
I need a sample code for using crystal report in asp .net MVC project
please send to me if you have
thanks a looooooooooot
|
|
|
|
|
I think you should try google. If that's not available, try Bing. If that's not available, if I were you, I would SERIOUSLY consider looking for another vocation, like sweeping standing water off sidewalks.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
I recently had a discussion at work about the use of Not... Is or IsNot.
It seems there is no difference between the two, except that IsNot looks more like how you would say something.
For example:
If something IsNot somethingElse Then
End If
However, I prefer Not... Is because that way you always know if something should be true or Not by looking at the beginning of a line of code, like so:
If Not something Is somethingElse AndAlso
something2 Is somethingElse2 AndAlso
Not something3 Is somethingElse3 Then
End If
That code looks clean, because Not (or not Not) is always at the same spot in the line. If I would use IsNot that just as well might not be the case. So by using Not... Is you always know if a condition must be true or not without having to search for the IsNot in every line of code.
But Not... Is sounds a bit weird if you say it out loud.
Does it make any difference 'under the hood' or is it simply a personal preference?
All my colleagues prefer IsNot by the way :p
It's an OO world.
|
|
|
|
|
Personal preferrence. There is no difference between the two "under the hood".
It was put into VB.NET because people were having a hard time reading code that negatated a expression to come up with the real true expression. Basically, the old way it forced people to do this:
Normal layout:
If expression Then
result if True
Else
result if False
End If
'Not' layout:
If expression Then
result if False
Else
result if True
End If
|
|
|
|
|
Thanks for the answer. That is really all I wanted to know
It's an OO world.
|
|
|
|
|
According to the MSDN:
The IsNot operator cannot be used to compare expressions returned from the TypeOf operator. Instead, you must use the Not and Is operators.
So there must be some difference somewhere.
|
|
|
|
|
Hmm...didn't know that. I just about never compare to a type anyway. It's almost always "Is Nothing".
|
|
|
|
|
If you switch to C#, it becomes a non-issue, or in VB parlance, Not issue (which looks kinda stupid).
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
! you = right... Oh wait, you = right!
It's an OO world.
|
|
|
|
|
Hi all,
Can you tell me how to get the msn status by programming, any program language is ok, such as c/c++/java or asp/asp.net/php etc.
What I want is: enter a msn address, such as 'test@hotmail.com', and then the program can return the current status of that account(just online or offline is ok).
Thanks in advance.
hello!
|
|
|
|
|
Answered in the C++ forum. Please post your query in one forum only.
The best things in life are not things.
|
|
|
|
|
can any one tell me about the ideas to reduce the website responce time on production server as my website is taking too long time e.g. 15-20 sec (on staging server its just 2-3 sec).
thanks
|
|
|
|
|
|
Well obviously something is different or even wrong in terms of the environment.
This would include of course something like that the production server has 2 million customer accounts and the staging server only has 2.
But there are many other possibilities.
|
|
|
|
|
|
As an IDE I simply use UltraEdit (a decent text editor).
Then to compile, we have the Nant build scripts (that call csc) and to run tests, NUnit.
To debug, I used to use the ClrDebug and attach to the process. But after installing a new SQL Server sometime last winter it tried to put some lite version of Visual Studio on it and it got rid of that, unfortunately.
I'm meeting with this guys next week for a "knowledge transfer" because I will be responsible for maintaining applications written by this person and I just don't get it. Apparently, he doesn't use an IDE to make .net applications.
I didn't get any requirements for the signature
|
|
|
|
|
Yeah, I'd categorize that as a 'WTF'...
If you're programming in a .NET language, and you're doing it in Windows, there's no reason not to use an IDE, whether it's Visual Studio (even the Express versions), SharpDevelop, or whatever...
Probably a guy used to building C++ applications under *nix with Emacs and gcc...
|
|
|
|
|
Cool. Thanks for the response.
I didn't get any requirements for the signature
|
|
|
|
|
Technically what they are doing is quite possible.
However, why do this effort when there is an editor already available.
Maybe they dont have the funding to buy a full edition of Visual Studio. Express editions can always be tried in that case.
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
|
|
|
|
|
Nope, we are paying a ton of money. We have spent millions on this application and they guy is getting paid quite a bit per hour to do custom work for us.
I didn't get any requirements for the signature
modified on Saturday, July 30, 2011 11:50 AM
|
|
|
|