|
I want to create COM+ sample for myself but I got some problems. I hope somebody could give me some hints.
First I add ObjectPooling ,but it does not work for me in my application.And it does not reflected in Component Service and its default value is still there.I add it as an attribute to my class like this:
[ObjectPooling(MinPoolSize = 5 ,MaxPoolSize = 10, CreationTimeout = 4000)]
Second problem is this: I create Setup project and add my application to it.The problem happend when I want to uninstall the application.The COM+ object does not removed from Component Service.Should I do anything in my code to do it?And the last question is ,isn't it necessary to shutdown the object when I close my client application or it has to be in its previous mode,or this is done automatically?
Mazy
No sig. available now.
|
|
|
|
|
I have a problem in removing all the checked items in a ListView, here is my code:
int count = myList.CheckedItems.Count;<br />
for ( int i = 0; i < count; i++ ) <br />
{<br />
myList.Items.Remove(myList.CheckedItems[0]);<br />
}
it's very simple, right? why it doesn't work properly?
Thanks in advance.
|
|
|
|
|
I know now. do it from the backward.
|
|
|
|
|
You couldt try this:
ArrayList checkedItems = new ArrayList(myList.CheckedItems.Count);
foreach(object item in myList.CheckedItems)
{
checkedItems.Add(item);
}
foreach(object item in checkedItems)
{
myList.Items.Remove(item);
}
It may work a bit slower, bu you don't have to worry about changing indexes.
|
|
|
|
|
I have myPrincipal.IsInRole("DOMAINNAME\\Project Dispatcher")
it always returns false and I know I'm in that group cause I added it using RDC
How to get it to work
Its a windows 2000 advanced server does it need to be rebooted to reset the groups. It hasnt been reset since I created and managed the groups.
even Administrator doesnt work which I have been part of since day one
Nick
Ok so I did IsInRole(WindowsBuiltInRole.Administrator and it works. whats the deal
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Do you do this in your windows service that you asked about it? If you do it there,mayne you set that it runs as LocalSystem,or something else.
Mazy
No sig. available now.
|
|
|
|
|
nah this is in a test console application
I get the WindowsIdentity and Prinicpal just fine but the IsInRole from domain is foobar'd
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Well,I'm not sure,but in MSDN it say you have to pass group name,not domain+domain. Maybe thats the problem.
Mazy
No sig. available now.
|
|
|
|
|
I'm not passing domain+domain
DOMAINName\GROUP
doesnt work
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Ista wrote:
I'm not passing domain+domain
I mean domain+group.
Mazy
No sig. available now.
|
|
|
|
|
Ok so it works kinda
But 2 groups I added myself to are not showing up. Does the Doman controller have to be rebooted after adding a user to the group, or is there a way to reforce AD to do a refresh
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Ista wrote:
Ok so it works kinda
Why kinda?
Ista wrote:
But 2 groups I added myself to are not showing up. Does the Doman controller have to be rebooted after adding a user to the group, or is there a way to reforce AD to do a refresh
It does not shown where? As much as I remember it doesn't need rebooted for only adding user and groups.At least when you refresh Users or groups in User and Group Domain controler it should be shown there.
Mazy
No sig. available now.
|
|
|
|
|
Ok well it works mysteriously now.
The group i added myself to 7 days ago is showing up
the group idded 25 hours go is not nor is the one 2 hours ago
I spoke to an admin friend of mine and he said to create ou and add them to OU's
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
If you have some mail clients how I can understand which is my default mail client?
|
|
|
|
|
You can use the Registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail". Its default value should be the system's default mail client.
|
|
|
|
|
Hi,
I've made a C# mobile (forms) application and I need some help creating the installation .msi or .exe file for a pocket pc. Can anyone tell me the steps to create an installation for a mobile pocket pc application? I've already got activesync working, so I just need to pull over the install file.
Thanks
|
|
|
|
|
what are .resx file and .csproj.user files in c#
Ritesh Dubey
|
|
|
|
|
.resx in simple word is file that stores data that you put in your form.For example you put label in your form and set a text for it.This string is store in resx files.
Mazy
No sig. available now.
|
|
|
|
|
I use BitBlt for scrolling a large bitmap (3200x2600)px but problem is
because HBITMAP takes too much memory.
After loading of images:
bmp = new Bitmap("c:\\Bitmaps\\3200x2600Gif.gif");
takes about 8Mb and after executing following line:
handleBitmap = bmp.GetHbitmap();
my application increase used memory for about 30Mb
How can I avoid this?
Note: When I open the same image in WebMatrix for example( because it is
written in c#) results are excellent: image takes about 8Mb and scrolling
works nice
Thanks
|
|
|
|
|
doesnt webmatrix show the image in the IE ocx ?
//Roger
|
|
|
|
|
I dont know. I red WebMatrix is enairely written in C#. If that what's the best way to work with scrolling of large bitmaps
|
|
|
|
|
hi all,
i have a class stored several data objects such as string, integer, double... for data exchange in 2 threads.
i wonder any method to lock these data members of a class.
i mean, for a member function i can use mutex , lock for exclusive access. but, for a data object, how can i lock it?
i have 10 data members in the class but i don't want to create 10 member functions for accessing them.
or, is it essential to do this?
regards,
jim
|
|
|
|
|
You can use the Monitor.Enter/Exit and there is a Lock method but I cant remember what class it belongs to
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Guys
How am i going to Run nd execute a C# code.what are the pre requsits for the C # like java requires J2sdk1.4.after writing code in Java there is a compiler
and then a interpretor for executing the Java Code how am i goin to do with C # .i have to work on Image Processing in C #.Is there any specfic API for C# from where i can get Information about Image Processing in C#.Please Give some Valuable about the same
Thanks n Regards
Ritesh Dubey
|
|
|
|
|
you can download the .NET Framework SDK Version 1.1 here[^]. It contains lot of samples to get you started on c#.
You can get the vs.net IDE or just use the command line compilers.
For image processing you can use inbuilt classes or use Direct X 9 wrappers.
You can get them here[^]. I would also suggest you to have a look at CG's articles here at CP.
Image Processing with C# and GDI+[^]
Hope this helps.
Regards,
Kannan
|
|
|
|