Karlo47's Q&A profile
.NET Development Web Service Config file
I have just created a new web service. What changes are recommended from the default config file for the web service to improve code security Thanks, Fred Herring Have a look here for some security related articles: http://msdn.microsoft.com/practices/compcat/default.aspx ...Show All
Windows Forms Open a file using default application
Hello, Back in VB6, I used the ShellExecute api to open a file using it's default application. In other words, .XLS files would open in Excel, .DOC files would open in Word, etc. The call looked like this: Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _ (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, _ ByVal lpDirectory As String, By ...Show All
SQL Server Many-To-Many Self-Join
I hope somebody can help me with a rather complicated problem I am having involving triggers and foreign keys. I am working on a database that manages projects in terms of Tasks and the other Tasks (I call them "Pretasks") that must be completed before the Task in question can be completed. Any Task can be a Pretask for one or more other Tasks, and any Task can have any number of Pretasks, which calls for a many-to-many self-join on ...Show All
Windows Forms Position of context menu
Hi, How can I get the position of context menu Thank's Alexei Normally, the context menu will be shown at the center of the control when the keyboard is used to invoke the context menu of a control (Shift+F10, for example). You can customize the location as follows. Override WndProc in the grid and check if the Message.Msg is WM_CONTEXTMENU (0x007b) If so, check if the Message.LParam is -1, which means this was due to a keyboa ...Show All
Visual C++ Virtual Inheritance
Why is it that when a class inherits a non virtual base class, space for the base class members is at the beginning of the derived class object whereas, when the base class is virtual, then, within the derived class, the base class members are copied after the derived class members. Thanks, KarthikR Hi Karthik, In virtual inheritance, there is no base class copy in the instance of the derived class. In the derived class, the ...Show All
.NET Development insert
How can I insert new record to database programmatically please, send a walkthrough Have a look at the SqlCommand class, and use an SQL INSERT query do do it. Have a look at the Parameters collection of the SqlCommand class, etc..... I believe there are examples in MSDN. ...Show All
Visual Basic QueryInterface calls
If I write a COM component in VB.NET, is there any way to tell which interfaces I'm being queried for John ...Show All
Visual Studio 2008 (Pre-release) MessageContract Deserialization error with IIS hosting
Hi, I'm having a strange problem. A simple operation with a simple MessageContract works just fine when the service is self-hosted. But when the service is hosted in IIS, I get the strange exception below. public class FooParamsIn { public long ID; } public class FooParamsOut { & ...Show All
Visual Studio Documentation or more info on these parameters?
Hello, I was looking at the ASP.NET trace of my web application that hosts a VS2005 .NET ReportViewer control and saw some URLs in GET requests that troubled me.... In particular stuff like: http://localhost/WebSite3/Reserved.ReportViewerWebControl.axd OpType=DocMapReport&ClientController=ClientControllerReportViewer1&ReportUrl=%2fWebSite3%2fReserved.ReportViewerWebControl.axd%3fReportSession%3dlno2sd2lxxqlnd45vesswg55%26Cont ...Show All
Visual C# Check and verify that a smtp-server is up and running?
Hey there. I have an application in C#, that is depending on the fact that a smtp-server is valid and running. Is there any way of checking if a given smtp-server is "alive" SmtpClient smtpclient = New SmtpClient(<server>); /Kristian You can try to handshake with the Smtp server, it the handshake could be done everything is running normally. Take a look at the Smtp protocol how to imple ...Show All
Smart Device Development emulator smartphone wce5.0 connect to internet?
Good morning, Do you know how we can configure the emulator smartphone wce5 in visual studio 2005 so the emulator can connect internet using IE Thank you so much for your instruction or the link to document you will let me know JulienT I have posted a blog about this subject on: http://blogs.msdn.com/cbrochu/archive/2005/11/04/ppcinternet.aspx It features a step-by-step guide and i will post pictures if there is enough interest. ...Show All
SQL Server Please Help! Dynamic DB Connection in Foreach Loop
Hello- I'm trying to read a table that has database connection information for other DBs and use this within an "Execute SL Task" task. I have seen a number of posts that talk about this possibility, but I have not been able to get it to work yet. When I've tried to set the connection to a variable (@[User::DB_ConnectionStr]) in the Expressions area of the SQL Task, the Connection type defaults to OLE DB and I can't seem to for ...Show All
Visual Studio Team System Is the Team Suite trial compatable with TFS Beta 3 Refresh
I am currently having a problem accessing Documents in Team Explorer using the client shipped with TFS Beta 3 Refresh and wondering if I will have better luck with Team Suite Trial edition. Anyone know Yes, my AD id has been designated as an Administrator within the team site. This has been working fine for me. BTW, is the Team Explorer "Documents" folder interfacing with SharePoint ...Show All
Visual Studio Team System Multiple check-out of solution file.
I had multiple check-out enabled on a complete solution in TFS. Two developers checked out the solution file and both added some projects and solution folders. Developer 1 then checked in and developer 2 did a "get latest" from TFS. As expected the solution file required a manual merge by developer 2 on his machine using the merge tool. This seems to be very difficult to do as the new projects cause entries all over, and there ...Show All
SQL Server configuring smtp connection on dts in VS2005
I'm trying to send mail through DTS Send Mail Task in the final release of VS 2005 however i'm getting this error "Mailbox unavailable.The server response was:5.7.1 Unable to relay for <email adress>. I do not have exchange server installed. The smtp adress is correct. So what could be the problem I appreciate your help Thanks Network issues Incorrect address DNS failu ...Show All
