|
It's okay Rob. Imran has never fully explained his problems or fully understood explanations and answers. I have learned to give short hints and let him figure it out from there. I would seriously advise you to do the same. You can see the post in my personal forum and follow the link to see what I mean.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
Thanks Dave, I see what you mean...
|
|
|
|
|
OldROB says
If you really just want a local process that was started by loading the executable located on the remote computer into local memory, then you would at least have to share the folder on the remote machine, and at least temporarily (net use or the equivalent API call) map it.
first of let me say you thanks alot for your ans.
yes i just want a local process that should start by loading the executable located on the remote computer into local memory.
yes i have shared it.but still it did not start.
but i could not understand what do you mean by this sentance of yours.
----------------------------------------------------------
at least temporarily (net use or the equivalent API call) map it.
----------------------------------------------------------
i hope you will be able to ans this.
can you tell me how i will programatically map a network drive for a perticuler folder(it may be local or at network place) ?
r00d0034@yahoo.com
|
|
|
|
|
|
|
Thomas George wrote:
In other words, can delegates be stored in a container and iterated?
Yes Here's some code I did in a number solving program:
public NumberSolver(int result, ArrayList numbers)
{
this.result = result;
this.numbers = numbers;
functions = new ArrayList();
functions.Add( new FunctionHandler( this.Add ));
functions.Add( new FunctionHandler( this.Subtract ));
functions.Add( new FunctionHandler( this.Multiply ));
functions.Add( new FunctionHandler( this.Divide ));
functions.Add( new FunctionHandler( this.Power ));
}
...
public delegate int FunctionHandler(int a, int b);
...
int output = numbers[0];
for (int i = 0; i < functions.Count; i++)
{
FunctionHandler func = (FunctionHandler) functions[i];
output = func(output, numbers[i + 1]);
}
return output;
Not sure if this is what you meant, but hope it helps
DBHelper - SQL Stored Procedure Wrapper & Typed DataSet Generator for .NET
|
|
|
|
|
|
|
is there a way to do this from inside VS? I know how to do it from the command line:
<br />
csc /doc:foo.xml test.cs<br />
but is there a way to do it from the IDE?
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
Project Properties -> Configuration Properties
Add an entry for XML Documentation File
|
|
|
|
|
Have you tried ndoc , its extremely cool.
Also there is a option in Tools menu
Tools --> Build Comment Web Pages
option which gives the documentation.
<edit> forgot the link , here it is http://ndoc.sourceforge.net/download.html[^]
Cheers
Kannan
|
|
|
|
|
Hi all,
I have created a Web Service that accesses an MS Access database that is located on another computer. My problem comes when I try to use IIS 'Integrated Windows authentication'.
When I access the web service locally ie "http://localhost/webservice/webservice.asmx" I get access to the web service and when I call a web method it can access the database fine.
However, when I access the web service with "http://xxx.xxx.xxx.xxx/webservice/webservice.asmx" correctly I get the Windows authentication dialog popup and have to enter a valid user id, password, and domain to get access to the web service. But when I attempt to invoke a web method I get an error on trying to connect to the database with the following message:
Microsoft JET Database Engine The Microsoft Jet database engine cannot open the file '\\xxx.xxx.xxx.xxx\directory\DB\DB1.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
The problem is not that someone else is opening the DB but I believe under the windows authentication I am not getting the privelage to access the network.
Any ideas???
|
|
|
|
|
In IIS, your virtual directory is probably logging on as IUSR_MACHINENAME. This account has very little access to your computer. In explorer, go give the IUSR_MACHINENAME account full rights to the directory that the database is located in and I believe your problem will be solved.
|
|
|
|
|
Ok, how can I tell the ComboBox to display the Horizontal Scrollbar in the Drop-Down List if the Items extend past the DropDownWidth of the ComboBox? Since I am custom drawing the Items, it doesn't know that the Item Bounds extend past the DropDownWidth.
|
|
|
|
|
Maybe I have this all wrong, but here goes anyway.
I have two methods, both of which return a plain Array. The Array is one-dimensional and contains strings.
The one method I convert to an object array and that then makes adding it to the ComboBox really simple (just use AddRange.)
The other method though I want to convert to a Treenode Array and then use the AddRange of the treeview control. However I continually get casting errors when trying to cast from Array to Treenode.
So, wise ones, is there a simple way to do it? Or do I have to do a blasted for loop?
Paul Watson Bluegrass Cape Town, South Africa Christopher Duncan wrote:
Which explains why when Santa asked, "And what do you want for Christmas, little boy?" I said, "A life." (Accesories sold separately)
|
|
|
|
|
Paul Watson wrote:
The one method I convert to an object array and that then makes adding it to the ComboBox really simple (just use AddRange.)
The ComboBox works by calling ToString() on the objects in the Items collection to get the string it should display (by default, this behavior can be changed by setting the DisplayMember property).
Because the ComboBox works this way you can put add any type of object to the Items collection and it will work (it may not display the string you wanted, but it will at least be displayed).
The TreeView works by using a collection of specialized objects (TreeNode's), since it requires a specific type of object to be in its collection you'll have to convert your string objects to TreeNode objects. In this case it means creating a new TreeNode object and setting the Text property to the string for each string in the array (ie use a blasted for loop; or foreach)
James
- out of order -
|
|
|
|
|
James T. Johnson wrote:
The TreeView works by using a collection of specialized objects (TreeNode's), since it requires a specific type of object to be in its collection you'll have to convert your string objects to TreeNode objects. In this case it means creating a new TreeNode object and setting the Text property to the string for each string in the array (ie use a blasted for loop; or foreach)
Tis what I feared.
Being in overkill mode I think I will subclass the TreeView a bit and add in an overriden AddRange method which can handle just a simple array of string objects. I for one do not always need all the fancy properties of a TreeNode.
Thanks James T. Johnson
Paul Watson Bluegrass Cape Town, South Africa Christopher Duncan wrote:
Which explains why when Santa asked, "And what do you want for Christmas, little boy?" I said, "A life." (Accesories sold separately)
|
|
|
|
|
Paul Watson wrote:
Being in overkill mode I think I will subclass the TreeView a bit and add in an overriden AddRange method which can handle just a simple array of string objects. I for one do not always need all the fancy properties of a TreeNode.
I would just make a static funtion
static TreeNodeCollection MakeNodes(string[] names)
{
TreeNodeCollection nodes = new TreeNodeCollection();
foreach (string name in names)
{
nodes.Add(name);
}
return nodes;
}
or
static void AddNodes(TreeNode parent, string[] names)
{
foreach (string name in names)
{
parent.Nodes.Add(name);
}
}
Overriden...derived classes...why?
DBHelper - SQL Stored Procedure Wrapper & Typed DataSet Generator for .NET
|
|
|
|
|
leppie wrote:
Overriden...derived classes...why?
I did mention I was in an overkill mood...
Also this kind of thing is something I will probably want to use over and over, makes it easier and more consistent if I have a TreeView control I can just drag on that already has it built in.
Thanks for the code.
Paul Watson Bluegrass Cape Town, South Africa Christopher Duncan wrote:
Which explains why when Santa asked, "And what do you want for Christmas, little boy?" I said, "A life." (Accesories sold separately)
|
|
|
|
|
James T. Johnson wrote:
(ie use a blasted for loop; or foreach)
Were you upset James, your too funny sometimes.
Nick Parker
Not everything that can be counted counts, and not everything that counts can be counted. - Albert Einstein
|
|
|
|
|
Nick Parker wrote:
Were you upset James
Nope, just repeating what Paul said
James
- out of order -
|
|
|
|
|
Hello,
how to overide the OpenDialog or SaveDialog box, like in VisualStudio Net.
// Maybe drawn all the box ?
Thanks in advance
|
|
|
|
|
Hello,
How to draw one control bar (where is controlbox) ownerdraw ?
Thanks.
|
|
|
|
|
You may want to check out Lutz Roeder's Command Bar[^] That's:
A)Really cool
B)A good example of owner-drawing, and
C)Made by the same guy who made Reflector. I'd also check out that tool if you're going to be doing any serious .NET development. It's way better than the VS.NET object browser.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
Hi All
I have created a new c# dll and want to use that in VB6. When I add a reference to the dll in vb, it throws an error "Cant add reference to dll".
Any help
$iva
|
|
|
|