|
You have already asked this in your previous post, please don't repeat it.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
What do you mean by that? who made you moderator of the site??
|
|
|
|
|
There are a couple of very valid reasons for Marks reply to you. The most important reason is that it becomes very difficult to track answers if multiple threads are spawned about the same topic. Bear in mind that the question may be viewed, in the future, by others who want to know the answer to the problem; the search engines will point them to one thread. Churn and growth of other threads could mean that they end up not seeing the whole picture because the vital part of the answer is now in another thread.
Now, take a deep breath and relax.
|
|
|
|
|
If you don't have a meaningful contribution to make, then you should be quiet.
|
|
|
|
|
I think you should take a deep breath before responding.
If you want to get pissy about being told of the conventions and expectations of this community then perhaps you should step away for a bit.
You have been given assistance on your problem, don't spoil it with such an attitude.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
How bloody obvious
Now perhaps you'd like to actually read the OP's question.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Thanks for the response, but the data type is a generic data type as shown form the code I originally posted.
The session object has a generic object of IEnumerable<T> type, so how would I cast back to that generic type?
|
|
|
|
|
Hi,
Is there any way to change SQL server 2008 product key (Using C# or command prompt)?
Thanks
|
|
|
|
|
And setup a software piracy business?
|
|
|
|
|
No. I just want to change product key.
|
|
|
|
|
Hi,
AFAIK, with previous releases of SQL Server there was a registry key named CD_KEY where the initial activation code was stored.
I did verify on our own server : this activation key is no longer stored in the registry. Now there are just ProductID, DigitalProductID and checksum keys. So I don't think it will be possible to change it without support from Microsoft. I'm not aware of any tool that could allow you to change it on the fly.
If this really is a problem for you, you should contact Microsoft's Activation Center, and explain them your issue.
|
|
|
|
|
I checked WMI classes, in which i found a class "SqlServer" but which allows me
only to modify certificate not productID i.e PID.
Thanks for your help.
|
|
|
|
|
hi guys
i want to send files with bluetooth and for this i use obex and inthehand components
i write this codes for send
int index = Selected;
InTheHand.Net.BluetoothAddress address = this.address_array[index];
System.Uri uri = new Uri("obex://" + address.ToString() + "/" + "1.jpg");
ObexWebRequest request = new ObexWebRequest(uri);
request.ReadFile("1.jpg");
ObexWebResponse response = (ObexWebResponse)request.GetResponse();
response.Close();
this code is true but i have a problem
this code send for s40 nokia phone and but cant send for symbians
thanks a lot
|
|
|
|
|
As you are using third party components, and the code works for one type of phone but not the others, this would suggest a problem either with the library or with configuration of the library. Your best bet with such a specific query is to post this question in the support forum of the relevant libraries as their support teams will be much better placed to field such a query.
|
|
|
|
|
I'm trying to create a Word automation software using C# over Visual Studio 2010.
I created a new project and added references to "Microsoft Office Object Library 11.0" and "Microsoft Word 11.0 Object Library".
For unapparent reason I get error "error CS0246: The type or namespace name 'Word' could not be found" on the bold line
using Microsoft.Office.Interop;
class Program
{
static void Main(string[] args)
{
Word.Application objWord;
Microsoft.Office.Interop.Word.Document objDoc;
}
}
modified on Tuesday, August 31, 2010 2:53 PM
|
|
|
|
|
C# doesn't like partial namespaces being prefixed to the type; try appending the full namespace, that should work
I are Troll
|
|
|
|
|
It did (the second line does not cause and error) but its ugly.
How can I make it work without the full prefix?
|
|
|
|
|
you could try
using Microsoft.Office.Interop;
using Microsoft.Office.Interop.Word;
PS: more using statements may increase the probability of a type name conflict. (e.g. if you also add a using for Excel, then Document might become ambiguous).
|
|
|
|
|
This is getting odd...
using Microsoft.Office.Interop;
using Microsoft.Office.Interop.Word;
class Program
{
static void Main(string[] args)
{
Word.Application objWord;
Word.Document objDoc;
Application objWord2;
Document objDoc2;
}
}
|
|
|
|
|
That's because "Word" is a namespace... A "using" statement is a full declaration, not a partial one.
If you want to prefix them with "Word", try this:
using Word = Microsoft.Office.Interop.Word;
That defines "Word" as an alias for that whole namespace, so you can just always use Word.Application or Word.Document
|
|
|
|
|
Nothing odd about it, Eddy already told you "C# doesn't like partial namespaces". You either give the fully qualified type (always OK) or just the simple type name (requires a using that holds all the missing parts).
|
|
|
|
|
|
Really? First I've heard of it -- another reason to avoid using using directives.
|
|
|
|
|
Without using directives code is unreadable. And I have never had any issues with namespaces.
Conflicts, that may occur are quite easy to resolve and are reported as error by compiler, so it is difficult to have something wrong in compiled aplication.
Don't forget to rate answer, that helped you. It will allow other people find their answers faster.
|
|
|
|