|
Hi, i've a problem running an application on a machine which is used by a restricted user: i can't write the registry!!!!
I tried running this prog whith runas (from a dos shell) and it works...so i thought "well, i can write a program which run my application with admin privileges ". I surfed the net but the only things i found are info about this api "logonasuser"...i've made some tests but with no results.
Anyone had the same problem and knows how to resolve it? pls, i'm very short in time!!!
Bye
|
|
|
|
|
Web site: http://test.labdotnet.com/GenuineChannels/GenuineChannels.html
Genuine Channels implement bidirectional TCP channels (for .NET Remoting infrastructure) that solve the primary problem of native tcp channels and all sequential issues. Also they implement some features that help to build durable, viable and stable client-server solutions.
Brief explanation
Microsoft .NET Framework implementation of TCP channels allows using TCP channel only as a server or client connection. If you want to provide feedback from the server to client, server must connect to the client’s port. This scheme consumes two TCP sockets and is not workable if client is behind NAT or Masquerade server. Also, native implementation closes TCP connection after non-customized period of time.
Genuine Channels use the only connection from the client to the server. There is no problem if client is behind firewall, NAT or Masquerade server. Also, Genuine Channels implement some features to help building durable, viable and stable client-server solution.
Features
Only one TCP connection is used between client and server.
Fully compatible with .NET Remoting infrastructure.
Each connection has queue of messages being sent.
Constraints on the queue are possible. It greatly helps to force reconnection if current connection is too slow.
Automatic client reconnection to the server. Server and Clients does not lose messages during reconnection. It’s very useful if your server must talk to the client.
Full support of sync, async and one-way messages.
Adjustable timeout to wait for reply from the remote host.
Real async processing. You can have any number of threads at a server and at a client that will automatically use the same TCP connection.
Each exception has unique identifier that simplifies centralizing error processing or translating error messages to any language.
Automatic ping to check TCP connection if connection has not been used for (by default) 120 seconds.
Detailed logging system that receives all events and can save even the entire incoming and outcoming TCP streams as well as exceptions, stack traces and object’s guids. You can write your own logger and attach it to the system.
Dmitry Belikov.
|
|
|
|
|
I'd like to know just how much ram is required for a loaded DOMDocument.
I've got some XML documents that are a few meg in size, and I'd just like to get an idea of how much memory is being used when these are loaded?
Is there a way to determine this?
|
|
|
|
|
Private Joe as Array
Dim lookupRows() As DataRowView = overrideView.FindRows(New Object() {"lookup_address"})
Simple prob but I'm having a b**ch figuring it out. lookupRows returns an array. how can i copy the returned array to Joe??
Thanks all
Bill
|
|
|
|
|
The following code should work:
Array.Copy(lookupRows,Joe,lookupRows.Length)
Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning
Mark Twain
Get your facts first, and then you can distort them as much as you please
Mark Twain
|
|
|
|
|
I tried that and got an error: Value cannot be null. Parameter name:destinationArray.
Which is kinda silly I think but. . .
I also tried CopyTo which produced the same error.
|
|
|
|
|
Joe = Array.CreateInstance(GetType(DataRowView), lookupRows.Length)
Array.Copy(lookupRows,Joe,lookupRows.Length)
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
OK That worked THANKS !!
What if I need Joe to be an array of string ?? How could I / can I "typecast" this to a string array ??
Thanks again for the help so far !!
Bill
|
|
|
|
|
Array.Copy won't work, since there isn't a direct cast from DataRowView to String . You'll need to copy the array manually:
Joe = Array.CreateInstance(GetType(String), lookupRows.Length)
Dim i As Integer
For i = 0 To lookupRows.Length - 1
Joe.SetValue(lookupRows(i).ToString(), i)
Next However, since DataRowView doesn't override the ToString function, you'll just get an array filled with the string "[System.Data.DataRowView]". The DataRowView class isn't serializable, so you would need to write your own function to convert it to a string.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
I am using VB6 and am having a little problem. I am using the ToolTipText property of an MSFlexGrid control, and although the tip is displayed properly, if I click on the flexgrid while the tip is displayed, the tip will disappear and leave a light gray rectangle in its place. It doesn't seem to respond to the refresh method and I am stumped. Any ideas on how to get rid of the residue?
Thanks,
Andrew
|
|
|
|
|
Several of my forms contain Adodcs, whose recordsource is a SQL statement containing a variable name. the Adodc (and bound datagrid) work fine for all, but whenever i load or unload the project i always get the following msg:
"ADODC: No Recordsource specified, ADO: cmd text was not set for command object"
Is there anything i can do about this? Thank you in advance!
|
|
|
|
|
in my datagrid i have allowed for updates. the datagrid is bound to an adodc, whose datasource is a SQL statement (ie not a table in the access database). the datagrid contains 3 columns - 2 from the products table in the database and 1 from a related price table. how do i reference these 3 fields (for an insert SQL statement) when adding and saving a new record (row) in the datagrid? if you need any additional information, please let me know! any help would be greatly appreciated!
|
|
|
|
|
Hi, My name is Rachel. I'm looking for a simple grid, no bound to database.
I need the ability to define simply:
1. The number of columns and rows.
2. The height of rows and width of columns.
3. To control easily on the selected cells.
3.1. I need to the ability to select some cells that are located far from one another.
Thanks Rachel
|
|
|
|
|
Might I suggest using the vsFlexGrid .
Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning
Mark Twain
Get your facts first, and then you can distort them as much as you please
Mark Twain
|
|
|
|
|
Thanks for the suggestion. I know this one very well from previose versions of VB but where do I found it in the .NET version
|
|
|
|
|
That's strange, I'm using .net and I'm also using the flexgrid. hmmmm ...... could you use the grid in vb6 ?
Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning
Mark Twain
Get your facts first, and then you can distort them as much as you please
Mark Twain
|
|
|
|
|
O.K I found it. It is now as VideoSoft FlexArray and not as FlexGrid.
But now there is a new problem. It is not share componenet thay want me to buy it, almost 300$ for this. I remeber that the flexgrid was free one.
Also to your ask befor. I do not have VS6 on my computers. I used it in previos works I had. On my current computers I installed the VS.NET from the start.
Thanks Very Much
|
|
|
|
|
Actually, the flexgrid in VB6 was not free. You could use it but it kept popping up messages asking you to buy it. I guess .net just tightened the rules and made it so that you have to buy it before you can use it..
Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning
Mark Twain
Get your facts first, and then you can distort them as much as you please
Mark Twain
|
|
|
|
|
the columns in my datagrid are Code, Company, Address (based on a table in the database). the datagrid is bound to a SQL statement. is it possible that when i either:
(1)highlight a record, and press a command button and text boxes in another form will be populated relating to each of these columns (ie in the second form, i would have textboxes for Code, Company and Address)
(2)double-click on a record (ie row) and the textboxes will be populated?
i am very unsure of how to reference rows and columns and cells in datagrids so this is why i am asking this question.
Any help would be much appreciated!
|
|
|
|
|
I got .NET Enterprise Architect Edition installed in my machine.
Every time I try load a new project the application closes down without giving any error message but that project is somehow saved in the project list. Then when I re-start the .NET and open one of the saved projects and try to add a new windows form, again the application closes down.
I tried repairing the .NET but same thing kept on happening.
I tried re installing .NET but same thing kept happening.
I didn't try reinstalling the OS and then installing .NET.
I installed the service pack 2 for .NEt as LeeDavies Suggested.
Still .Net crashes when I load a windows form.
I'm having a Intel P4 with 256 Ram running Windows 2000 professional edition.
Why is this problem pertaining?
kind rgds
Anjana Aluthwala
---------------------------
P.S.
Thanks LeeDaviesVBSource for your suggestions.
|
|
|
|
|
|
i am trying to populate a datacombo box based on what has been chosen from another using the following code:
Dim RS As ADODB.Recordset
Set RS = New ADODB.Recordset
Dim strProductType As String
strProductType = DataComboType.Text
Dim descSQL As String
descSQL = "SELECT Product.Description FROM ProductType INNER JOIN Product ON ProductType.TypeCode = Product.TypeCode WHERE ProductType.Description= '" & strProductType & "'"
Set RS = Conn.Execute(descSQL)
Do While Not RS.EOF
DataComboProduct.DataField = RS.Fields("Description")
RS.MoveNext
Loop
However, the second combo box does not populate at all - why is this? Thank you!
|
|
|
|
|
Hi
I assume that "DataComboProduct" is the name of your second combobox, and that you are sure that you recieve records to your recordset.
I have not used the "DataField" method so I don't know how it works.
My suggestion is:
DataComboProduct.AddItem RS.Fields("Description")
Good luck
//Keder
|
|
|
|
|
Thank you so much for your help - i tried the AddItem method (which does make sense) but it returned the error "Method or data item not found"....is there anything else i could try??!!
|
|
|
|
|
I'm not sure but I think the error message says that it couldn't find RS.Fields("Description"). When you write your select statement you use Product.Description, maybe that have something to do with it.
Try this, not so nice, but it works
RS.Fields(0) 'Description
If you had recieved more info you should write
RS.Fields(1) 'Name
RS.Fields(2) 'Street
//Keder
|
|
|
|