ShadowRayz's Q&A profile
Architecture What is SOA
Service Orientated Architecture is being touted as the next big thing in the IT world. I decided to do my masters dissertation around SOA. I was quite surprised to find that there is no clear definition of SOA. As a start point I am trying to come up with a definition of SOA that will be used to inform the rest of my research. Can you offer a short definition of SOA If so please go to my blog (or respond here) and comment on this question and if you want on any or the other research questions. http://www.akintola.net/MyBlog/CategoryView,category,SOA.aspx Make sure that you leave your e-mail address if you want a copy of the completed research. One thing I found hel ...Show All
Windows Forms AutoScroll for Panel control and refreshing while scrolling
Hi, I'm writing a small app using VS2005 in C#. I put Panel control onto my form and, as child control, another panel inside it. I'd like to see as the content of 'container' panel changes its position during scrolling, but when I set AutoScroll property to 'true' the effect is only seen when I stop scrolling the content (it depends on 'show window contents while scrolling' settings of operating system, on my computer it's set to false). So, to do that, I consumed Scroll event from the container and set location of the child panel using ScrollEventArgs values. Everything works fine until I stop scrolling. After that, scrollbars of the container change their sizes and 'everything breaks', colloquially speaking. I've tried to do something wi ...Show All
.NET Development Error Message Resolved
Here's the code I added to resolve the error: Private mAppPath As String = AppDomain.CurrentDomain.BaseDirectory Reader = IO.File.OpenText(mAppPath & "\bin\State_City_Lat_Long.txt") ...Show All
.NET Development send POST with certificates for ssl
Hi, I want to send a POST request to a webserver. I want to attach a certificate to the request so that it can be posted on a https site. After this POST the server will send a response, I want to be able to view that response. Any idea how to do it http://support.microsoft.com/Default.aspx kbid=895971 There are a lot of threads about this and what can go wrong. ...Show All
Visual Basic Information on working with services
Hello, I was wondering if anyone could point me in the right direction for writing a wrapper app that interacts with a service we're developing. All I'm looking for is a general management program akin to the way Microsoft SQL Service Manager works with the MSSQLSERVER instance, although a more in-depth look at interaction with services would greatly tickle my interest as well. For now, however, just simple syntax on how to start, stop, check the status, etc. of a service would be wonderful. Hi, take a look at ServiceController class . Andrej ...Show All
Visual Studio Deleted question
Deleted question ...Show All
Visual Studio Express Editions naming variables as control
hi i have 5 textboxes grid1, grid2, grid3, grid4, grid5 I can change the colour of grid 1 as follows ----------- Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim g As Control Dim a As Integer a = 5 g = Grid1 g.BackColor = Color.Red End Sub -------------- my question is how can i set g to "grid whatever a is" (e.g i take a as an input from 1 to 5 and turn that box red) i tried g= "grid" +str(a) but no joy with that many thanks - i only downloaded VB express today and am trying to adapt my limited programming knowledge Thanks for your reply. i'm not r ...Show All
Game Technologies: DirectX, XNA, XACT, etc. These two methods are missing in the XNA Framework?
Aren't these two methods just missing from the framework Please add them. Plane.Intersects(Ray) Ray.Intersects(Plane) These two should return a Vector3 for information about where the Ray hitted the Plane. (I've also added this feedback to connect.microsoft.com). I'm not sure they should return a vector though - collision detection with rays may consist queries formed in many different ways: 1/ Does x intersect y 2/ How far along x until it intersects y 2/ Where does x intersect y Generally ray queries return a float, as it covers all of these: 1/ either null or a negative distance 2/ the float value 3/ point = ray * <float value> ...Show All
Visual Basic null reference in passing array between procedures
Hi, I'm trying to write a program that grabs data from a text file and populates the array of a structure, but I've been getting a "system.nullreference exception: object reference not set to an instance of an object. at A.Readfile(string file, schedule{} & flight) at A.Main(String{} arg) Sample code: Public Structure Schedule 'members of the structure Dim Airline As String Public Sub Main(ByVal arg() As String) Dim flights() As Schedule 'a structure previously defined Dim response As String ReadFile(arg(0), flights ) 'i think flights is causing the problem, but not sure how etc, Sub Readfile(B ...Show All
Visual Basic Display Same Object In Different TabControl Page
Currently i have one databasegridview in tab page1, how can i bring this databasegridview to the other tab page Thank you. This first example is for when you add the datagridviews during the designtime. There is a TabControl with 2 pages, DataGridView1 on TabPage1 and DataGridView2 on TabPage2. Notice how the event sub is set to handle events from both datagridviews by listing them after the 'Handles' keyword at the end. If a column's width is changed on DataGridView1 or on DataGridView2, then the event has code to update both datagridviews so the layout will look the same on both datagridviews. ...Show All
Visual C++ How to debug .dll file
I can use the Visual studio's debugger to check the .exe file which calls the .dll, but how can I debug the .dll file The debugger can't go through those codes in .dll. Thanks! You can make the dll the current project, set the calling exe in the debug settings, set a breakpoint, and go. Or you can execute the exe (from its respective project), and set a breakpoint. There's no slight of hand here... what kind of error are you getting Brian ...Show All
.NET Development Passing user32.dll GetDC() IntPtr value from C# into C++?
In C#, I'm getting the DC object via interop by calling GetDC() from the user32.dll. I want to pass this into another DLL that I'm writing in C++, but I'm not sure what the parameter type should be in C++. Am I passing a pointer to a CDC object Or do I need to do some type conversion C# code looks like: ------------------------------------------------ [DllImport("user32.dll", EntryPoint="GetDesktopWindow")] public static extern IntPtr GetDesktopWindow(); [DllImport("user32.dll",EntryPoint="GetDC")] public static extern IntPtr GetDC(IntPtr ptr); [DllImport("mine.dll", SetLastError= true )] static extern IntPtr getSymbol( IntPtr DC ); // Get the handle to the desk ...Show All
Visual Studio 2008 (Pre-release) Open the configuration file.
I have a question regarding the opening of the configuration file. I have written a library to assist me writing ASP.NET webservices and I want to use it in WCF applications. How do I open the configuration file so I can get my custom section The service is hosted in the ASP.NET developement server but will be hosted in IIS6. Thanks in advance, Trilobyte I use the following code in my application: // check if this is a web application System.Configuration.Configuration config = null; if (HttpContext.Current != null) { // open the web configuration config = WebConfigurationManager.OpenWebConfiguration(null); } else { // open the application configuration config = ConfigurationManager.OpenExeConfigu ...Show All
Windows Forms "Type not defined' errors after adding DataSource
Hi, I have a quite large VB.Net 2.0 project which up until now has not needed any database integration. Today I decided I wanted to add a SQL Server 2005 table so I dragged a DataGridView on to the form, went through the whole process of definging the data source, choosing the table etc etc and when I get through all that I'm getting these errors: Error 1 Type 'AutoBet.AutoBetDataSet' is not defined. E:\Projects\AutoBet\AutoBet.Designer.vb 317 35 AutoBet Error 2 Type 'AutoBet.AutoBetDataSet' is not defined. E:\Projects\AutoBet\AutoBet.Designer.vb 3597 43 AutoBet And in the Designer.vb file the two lines in error are: 317 Me.AutoBet.AutoBetDataSet = New AutoBet.AutoBetDataSet 3597 Friend WithEvents AutoBetDataSet As AutoBet.AutoBetDataSet I ...Show All
Visual C++ VS05 saying project (unmanaged) is out of date and needs rebuilding when it has just been built
Hi all Can anyone give me an idea of how to fix this somewhat annoying problem I have several projects in my solution. All are C++, some are managed and some are native. When I try to run the program - even if I've just done a build - it tells me that several of my projects (all the native ones) are out of date and need to be rebuilt. When I click yes, it will go through these projects and run the linker (at least the output window says "Linking..."). The linker doesn't actually do any linking (takes about a second to finish) and then goes on to the next project. Once its finished all the projects it will start running. If I stop running and then try to run it again, I have to go through the same process. Does anyone ...Show All
