StGeorge's Q&A profile
Visual Basic ADO.NET in VS 2005
Hi, I've got a child table called: Booking for saving user bookings, with three parent tables namely: User, Venue, and Booking Type. All in an Access DB, now here's my scenario: I want to insert data into the Booking table depending on on the type of booking the user selects like so: 1. if booking type is meeting , then only userID(FK), startDate, startTime, endTime, and venue must be saved, including booking type ofcourse. 2. if booking type is leave , then only userID(FK), startDate and endDate must be saved, including booking type ofcourse. 2. if booking type is other , then only userID(FK), startDate, startTime, endTime, and description must be saved, including booking type ofcourse. In essence, the only required fiel ...Show All
Visual Studio Express Editions my own private void
well i got my own private void(MoveButtonsVisible1), but i dont know how to use the code that is in my private void i tryed MoveButtonsVisible1(); but that dont seems to be right :( can you post the entire method a method void should be like this: private void MethodName () { //code here } then to access it in that class: this. MethodName (); you can also give parameters, lets take it a string: private void MethodName (string theString) { MessageBox.Show(theString); } to access it: this. MethodName ("I said hello!!"); parameter method signature: private void MethodName(type paramName) { ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to Add object to Array?
This is what my code looks like now: "static public void CreatePlayers(int numberOfPlayers) { switch(numberOfPlayers) { case 1: players = new Player[1] { new Player() }; playerSprites = new Animation[1] { new Animation() }; break; case 2: players = new Player[2] { new Player(), new Player() }; playerSprites = new Animation[2] { new Animation(), new Animation()}; break; case 3: players = new Player[3] { new Player(), new Player(), new Player() }; playerSprites = new Animation[3] { new Animation(), new Animation(), new Animation() }; break; case 4: players = new Player[4] { new Player(), new ...Show All
Visual Basic Send Image from VB6.0 to .Net webservice
How to send a Image from vb6.0 to .net webservice. Hi Thanks alot for quick reply There are certain issues Client machine will not have .NET framework . So it is not feasible to have .Net Component. Sending using Soap attachment. Soap toolkit has bugs in code for sending attachments. I am using Soap Toolkit for sending Integer or string data to my webservice. But I am not able to send image. I have stored image in a byte array. Example:- byteArray of dimention - 0-4065,0-765 byteArray(0) - byteArray(0,0)- 128 byteArray(0,1)-0 Now while i send it to webservice Byte array of .Net is not able to take it as it is of Base64. I got some converter that converts Single Dimention array to Base64string.But n ...Show All
Visual C# keystroke to view methods to override?
I found this link which says to use CTRL + ALT + INS to create overriden methods from a base class. http://msdn2.microsoft.com/en-us/library/ms165524(vs.80).aspx The problem is I can't get this to work with my C#, VS2k5 environment. Can anyone else If you can't, how else would you get a list of base methods to know what to be able to override I know I can start typing out 'public override' and let the intellisense bring up my list, but I would love to know how to get the CTRL+ALT+INS working instead! Thanks. The link you have found refers to how visual studio reacts when you have enable the Emacs project scheme. (Emacs is a unix texteditor/programming editor). You can enable this ...Show All
Internet Explorer Development Object Requried Error
Hello, I have a User Interface built in one of the Oracle apps modules.The UI basically consists of drop down boxes, radio buttons and text fields. While making choices to some drop down boxes, i get a Line:8245 Char:3 Object Required Error. This error occurs only in Windows Service Pack 2. There is no problem whatsoever in Windows Server 2000. Kindly let me know if there is any solution or work around to avoid this situation. Any help will be greatly appreciated. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. first person XNA camera
I have been searching a free camera component. I have found: "Free Floating Camera Game Component with Mouse Control " here: http://xbox360homebrew.com/content/XNATutorialMasterList.aspx however, it is not available. In the XNA insttaller, in the documentation, there is a first person camera, but it does not use the mouse. Can anybody help Currently, spheres and rectangles are scattered around everywhere in my 3D world. The user would navigate among them like a spaceship. Does it matter what kind of 3D objects ...Show All
Visual C++ Nested classes and friend functions
I was wondering if someone might be kind enough to help me with a problem I have compiling nested classes with friend functions that are members of the enclosing class. For example: If I have class A which has class B nested inside it: class A { public: class B { private: int private_member; public: friend void A::friend_function(); }; void friend_function(); }; I have tried compiling the above (with friend_function() suitably defined of course) with other compilers and it works fine. Visual C++ screams with multiple definition errors however. Different errors appear if I comment out the friend_function definition in class A. What is the protocol for implementing code of ...Show All
Windows Forms ConstraintException when modifying column values in a DataView
I have a ListBox that is bound to a DataView. The DataView (called componentsView) has the Sort property set to sort by "Pos", a Byte-type, unique-constrained column. Buttons are used to add or remove items to or from the ListBox. Upon adding items to the ListBox, the first item is given a "Pos" value of 1 and the second a "Pos" value of 2 and so on. My goal now is to implement buttons that are used to move items up or down the ListBox by one position. I intend to do this by modifying the value of the "Pos" column which will cause the ListBox to reorder according to the Sort property. The code below shows how I am currently trying to do that: Dim rowToMoveUp As DataRowView = componentsView.Item(ComponentsListBox.SelectedIndex) Dim rowTo ...Show All
.NET Development Multiple Web Services, Shared types and interoperability
Is designing a system with multiple web services an interoperability killer I see two ways to do this. Correct me if I'm wrong. 1. Use a feature like wsdl.exe /sharetypes in .Net 2.0 to generate a client proxy from multiple WSDL files. 2. Making a custom WSDL file with multiple bindings. What is the better choice in regard to interoperability. Does Java have a way to create a client proxy from multiple WSDL files Does the /sharetypes feature in .Net even work well enough for .Net Is there a standard way to combine multiple web services in one WSDL file I found this article "Increase Your App's Reach Using WSDL to Combine Multiple Web Services", but it does not mention anything about interoperability. http://msd ...Show All
.NET Development Path.GetFileName UNC bug
There appears to be a bug in Path.GetFileName relating to UNC paths: Console .WriteLine( Path .GetFileName( @ \\Server\Share )); outputs: Share But "Share" is not a file or directory by itself. It will work if you do it like this: Path.GetFileName(@"\\Server\Share\"); GetFileName doesn't actually check path exists. It parses the filename purely based on the given path string. In your case, the path looks like a file named "Share" living in the default folder of a share named "\\Server". With the trailing backslash, it is obvious that "Share" is a folder name. ...Show All
SQL Server Using Stored Procedures
Hi, I am trying to use this stored procedure for the report. My problem is when I run the procedure I see all the columns but when I click on the [+] next to my dataset, it does not show any fields in it. Please tell me what am I doing wrong and how can I fix this problem Thanks, -Rohit I have done this and can see the results from the stored procedure BUT I cannot figure how to include these fields in my report. I've been baffled on this for days ... please help! ...Show All
.NET Development NGEN can't compile assembly
...with following: C:\dllpath>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\\ngen.exe install dllname.dll Microsoft (R) CLR Native Image Generator - Version 2.0.50727.42 Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. Installing assembly C:\dllpath\dllname.dll Compiling 1 assembly: Compiling assembly C:\dllpath\dllname.dll ... The remote procedure call failed. (Exception from HRESULT: 0x800706BE) At this time Windows shows window with: ".NET Runtime Optimization Service has encountered a problem and needs to close." Error signature: AppName: mscorsvw.exe AppVer: 2.0.50727.42 AppStamp:4333ab58 ModName: mscorwks.dll ModVer: 2.0.50727.42 ModStamp:4333e7ec fDebug: 0 Offset: 001b3d13 Assembly contains un ...Show All
Visual Basic How to create an interface with singleton pattern
I have seen an example of this in C# but I cannot convert it to VB. I am looking at a way to create an Formfactory/interface solution to solve circular dependency. If anyone knows of a way to do this any help would be greatly appreciated. Thanks for the context. The best practice is to use the My.Forms collection. E.g. My.Forms.MainForm will have the exact behavior you mention. This feature only exists in VS 2005 or greater. If you're on VS 2002 or 2003 you can use the singleton code from above. This is a close approximation to what My.Forms does. Best, Paul ...Show All
Visual FoxPro Help with expression (one more time...)?
Hello All...many thanks to all who helped with my previous post. I have hit one more 'snag' in preparing my data. Here's a sample of three fields in my table... MRC REQUIRED DETAILS 4720-00-001-0057 ADLF HOSE OR TUBING SPEC/STD DATA MIL MIL-H-5593,SIZE 4 SPECIFICATION ADJM INNER CONVEYING TUBE MATERIAL RUBBER, SYNTHETIC MEDA MEDIA FOR WHICH DESIGNED AIR CRWL INSIDE SURFACE CONDITION SMOOTH CQCS LAYER COMPOSITION AND LOCATION 1ST LAYER ANY ACCEPTABLE CQCS OUTER LAYER MOLDED RUBBER CRJM OUTER COVERING ENVIRONMENTAL ABRASION RESISTANT AND PROTECTION CRJM ...Show All
