|
Hi my name is Manish.M.Meshram
I download oracle 10g.
i used scott tiger as userId and Password,
but it is not working.
what will be the user id and password
for oracle 10g.
Thank you
|
|
|
|
|
I need the default mail program name. Dou you any information guys? Thanks.
|
|
|
|
|
Take a look at HKEY_CLASSES_ROOT\mailto registry entry. I believe it will have the default mail client details. I am not sure about any Win32API which gives the default client details.
Best wishes,
Navaneeth
|
|
|
|
|
I have an unusual problem that I've never encountered before. I have a listbox on a form that indicates that it is executing the commands that it is updating itself programmatically, but it never does visually.
I have it where a list of users comes from the server and gets displayed in a listbox to all the clients connected to the server. All the messageboxes indicate that it is working programmatically, but the listbox never stops displaying the default items I typed in to test it.
I'm pretty sure its something very simple that I'm overlooking. Any help will be greatly appreciated.
Mike Rainey
--------------------------------
|
|
|
|
|
I'm not going to download, open and study your ZIP file, and I doubt anyone else will either. That is not how things work around here. You can ask for general advice; or show some code, give symptoms and ask for ideas.
Is your Form still alive, does it react to resizes, button clicks, etc? If not, one of your handlers is stuck, it never finishes.
Did you use threading? Are you trying to touch Controls from some other thread? If so read this[^].
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? 59.24% waren verstandig genoeg om NEEN te stemmen; bye bye viaduct.
|
|
|
|
|
OK, I'll take the link to the code down. Stupid, I know, but I can't seem to figure this out.
The form is still active and still responds to other events. All the other commands of all the other events work with no problem, except when it comes to the listbox, then the execution of the rest of the code in the function ceases.
Here is the code for the sub that just stops when it gets to the clearing out of the listbox items in the USERS part of the Select Case statement. This sub is in a module. I get the same result whether I reference the listbox with "frmServerConnect.lstUsersOnline" or "Public whatever As ListBox = frmServerConnect.lstUsersOnline".
Public Sub ReceiveMessage(ByVal ar As IAsyncResult)
Try
Dim bytesRead As Integer
bytesRead = client.GetStream.EndRead(ar)
If bytesRead < 1 Then
Exit Sub
Else
Dim messageReceived As String = System.Text.Encoding.ASCII.GetString(data, 0, bytesRead)
Dim myRegex As New Regex("\[(JOIN|LEAVE|USERS|ROLL)\](\[([^\]]+)\])?(\[([^\]]+)\])?")
If myRegex.IsMatch(messageReceived) Then
Dim myMatch As Match = myRegex.Match(messageReceived)
Select Case myMatch.Groups.Item(1).ToString
Case "JOIN" '==== [JOIN][Nick][Role] ====
frmServerConnect.lstUsersOnline.Items.Add(String.Format("{0} ({1})", myMatch.Groups.Item(3).ToString, myMatch.Groups.Item(5).ToString))
Case "LEAVE" '==== [LEAVE][User] ===
Try
'frmServerConnect.lstUsersOnline.Items.RemoveAt(frmServerConnect.lstUsersOnline.Items.IndexOf(myMatch.Groups.Item(3).ToString))
Catch ex As Exception
End Try
Exit Select
Case "USERS" '=== [USERS][User1Name|User1Role;User2Name|User2Role,etc] ===
Dim usr() As String = myMatch.Groups.Item(3).ToString.Split(";")
frmServerConnect.lstUsersOnline.Items.Clear()
For Each u As String In usr
Dim x() As String = u.Split("|")
frmServerConnect.lstUsersOnline.Items.Add(String.Format("{0} ({1})", x(0), x(1)))
Next
Case "ROLL"
'txtMessageHistory.AppendText(myMatch.Groups.Item(5).ToString)
Exit Select
Case Else
Exit Sub
End Select
End If
End If
'---continue reading for more data
client.GetStream.BeginRead(data, 0, CInt(client.ReceiveBufferSize), AddressOf ReceiveMessage, Nothing)
Catch ex As Exception
' MsgBox(ex.ToString)
End Try
End Sub
Mike Rainey
--------------------------------
modified on Monday, October 19, 2009 2:58 PM
|
|
|
|
|
My best guess is you brought that upon yourself: I see a try-catch with an empty catch block.
Never have an empty catch block.
I allow for one situation with an almost empty catch block:
- it only catches a very specialized exception;
- and it contains a comment explaining why it is mandatory to ignore this exception
Otherwise, make sure every exception leaves a trail.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? 59.24% waren verstandig genoeg om NEEN te stemmen; bye bye viaduct.
|
|
|
|
|
Thanks for all the help. I'm trying to get used to using sockets and that link regarding crossthreads hit the spot.
The empty catch block is there because I just haven't filled it yet. I get to coding and overlook some things sometimes.
Mike Rainey
--------------------------------
|
|
|
|
|
raineym wrote: The empty catch block is there because I just haven't filled it yet
You'd better put something useful in the catch block before putting anything in the try block. The payback is immediate! In fact I would like the compiler to flag empty catch blocks as an error.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? 59.24% waren verstandig genoeg om NEEN te stemmen; bye bye viaduct.
|
|
|
|
|
Four key announcements about Visual Studio developer tools made today.
- The Visual Studio 2010 and .NET Framework 4 Beta 2 will be available to MSDN subscribers on Monday, October 19, with general availability on October 21.
- The official launch of Visual Studio 2010 and .NET Framework 4 is March 22, 2010.
- Microsoft is announcing a new packaging lineup and licensing options for MSDN and Visual Studio 2010, including the “Ultimate Offer.”
- Microsoft is unveiling a renovated MSDN, which includes new benefits for all MSDN subscribers, including eLearning, Azure compute hours, and more.
For more information, see Visual Studio 2010 Beta 2 Available, Launch Date Announced[^]
|
|
|
|
|
Hello Everybody!
I'm trying to capture a screenshot of a window using a window handle without having to bring the window to the front. Does anybody know how to do this? I've searched and searched and either run into solutions for non-vb.net or ones that simply don't work. Any help?
|
|
|
|
|
Harrison Jones wrote: I'm trying to capture a screenshot of a window using a window handle without having to bring the window to the front.
Assuming that I understand your question correctly ... I'm not sure this is possible, since the covered portions of a window do not exist as bitmaps, but get repainted when the window is uncovered.
|
|
|
|
|
You could look into using the WM_PRINT message[^]....I'm not sure if it works for windows
that don't belong to your process, however.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
hi,
this is possible
..i made an application that makes screenshots of handles and other things..
and this is a code snip:
[DllImport("user32.dll")]
private static extern bool PrintWindow(IntPtr hwnd, IntPtr hdcBlt, uint nFlags);
[DllImport("user32.dll")]
private static extern int GetWindowRect(IntPtr hWnd, ref Rectangle rect);
[DllImport("user32.dll",EntryPoint="GetDC")]
public static extern IntPtr GetDC(IntPtr ptr);
[DllImport("gdi32.dll",EntryPoint="DeleteObject")]
public static extern IntPtr DeleteObject(IntPtr hDc);
private Bitmap Capture(IntPtr pHwnd)
{
Rectangle r = new Rectangle(0,0,0,0);
GetWindowRect(pHwnd,ref r);
r.Width = r.Width - r.X;
r.Height = r.Height - r.Y;
Bitmap bmp = new Bitmap(r.Width,r.Height);
Graphics e = Graphics.FromImage(bmp);
IntPtr ptr = e.GetHdc();
try
{
IntPtr hDC = GetDC(pHwnd);
PrintWindow(pHwnd,ptr,0);
DeleteObject(hDC);
}catch{}
e.ReleaseHdc(ptr);
e.Flush();
e.Dispose();
return bmp;
}
bless
|
|
|
|
|
Have you tried your program to see if it can capture a window that is not fully visible (for example, part of the window is behind another window)?
I would consider using the PrintWindow API if your test shows that it can capture a window that is not fully visible.
I am not good at Windows programming. I am relying on your test results. Thanks!
|
|
|
|
|
If you can offer a working sample program, I would greatly appreciate it. Thanks!
|
|
|
|
|
hi,
wrote code and it worked!
getting the handles by System.Diagnostics.Process.GetProcesses()
|
|
|
|
|
Thanks for your reply . Now I have some work to do. I will incorporate this into my screen capture program. Thanks a lot!
|
|
|
|
|
I've written a few very casual wrappers around REST and less structured web interfaces, but all just for fun, with very little attention to error detection and handling, timeouts, etc.
Can somebody please give me some pointers, either on practices, or to resources, for developing a solid, professional .NET (or other platform) wrapper for a REST API?
|
|
|
|
|
Hello,
I would like edit some values of machine.config configuration file inside my .net application. Is it possible ?
|
|
|
|
|
As the machine.config file contains global settings for all applications on a machine it is not wise to edit it. You can override most setting in your own app.config.
only two letters away from being an asset
|
|
|
|
|
Can I override <connectionManagement> element in <system.net> section ?
http://msdn.microsoft.com/en-us/library/fb6y0fyc.aspx
|
|
|
|
|
If you read the documentation in the link you provided you can see it supports add, remove and clear elements.
only two letters away from being an asset
|
|
|
|
|
Thank you, I coped with this problem, I wanted to increase the limit of connections that my application can make to a single host. I just added the following text to my app.config
<system.net>
<connectionManagement>
<clear/>
<add address="*" maxconnection="20" />
</connectionManagement>
</system.net>
|
|
|
|
|
I want the source code to calculate the real time bandwidth usage of your computer. I would prefer it in .Net framework. There are lot of bandwidth calculators but I was not able to find any source code.
If anyone has any idea, do tell me.
|
|
|
|