Topics
-
- 3 replies
- 1.4k views
Hello! I have a large application in production at a customer site, but we are beginning Phase II of development on this site. Here's the problem. I will continue to support the existing production application while development proceeds on Phase II of the app. As development on Phase II proceeds, the users will (http://www.xtremedotnettalk.com/x_images/images/smilies/eek.gif GASP!!! http://www.xtremedotnettalk.com/x_images/images/smilies/eek.gif) continue to find small (and not-so-small) bugs (no, those are features) in the production application. What I need to do is create a development copy of the application, while still being able to edit, test and…
Last reply by mskeel, -
-
- Administrators
- 2 replies
- 1.3k views
Normally, I will instantiate a class for global variables with a section like so: Private m_FullName As String Private m_Identity As System.Security.Principal.WindowsIdentity Private m_URL As String Shared myInstance As globVars Private Sub New() m_Identity = System.Security.Principal.WindowsIdentity.GetCurrent() m_FullName = m_Identity.Name End Sub Public Shared Function GetInstance() As globVars If myInstance Is Nothing Then myInstance = New globVars End If Return myInstance End Function '/ insert properties here Then invoke the class: Dim glob as globVars glob = globVars.GetInstance…
Last reply by TheWizardofInt, -
-
-
- Administrators
- Leaders
- 10 replies
- 3.3k views
Hi i have to ugrade a vb6-program to vb.net there's one remaining problem i have: the upgradewizard says: 'UPGRADE_WARNING: Add a delegate for AddressOf DLLPrnt MYUSER.DLLPrnt = FnPtr(AddressOf DLLPrnt) here's my DLLPrnt: Function DLLPrnt(ByRef fname As CBChar, ByVal x As Integer) As Integer and here my FnPtr: ' Puts a function pointer in a structure Function FnPtr(ByVal lp As Integer) As Integer FnPtr = lp End Function i tried to add a delegate, like shown in msdn and on other web pages, for example here: http://www.elitevb.com/content/01,0075/04.aspx unfortunatly the only result was: �AddressOf� expression cannot be converted to �Intege…
Last reply by dynamic_sysop, -
-
- 0 replies
- 1k views
Hi, I would like to make a graphical component inherited from System.ComponentModel.Component that can contains other components and allows me to drag'n'drop for instance, a textbox control or other component. TIA, Teixeira
Last reply by teixeira, -
-
- Leaders
- 6 replies
- 1.4k views
If you have an event which is handled by a number of different handlers, is there an easy way to know when the event has been handled by all of those handlers? Obviously you could keep a record of all of the handlers, but I'd rather something neater.
Last reply by snarfblam, -
-
-
- Leaders
- 2 replies
- 1.2k views
If an error occurs in a procedure then the execution of the code looks up the call stack to find the first error handling procedure. That's fine. But when you're debugging, it would be better if execution just stopped at the error, so that you can see what's causing it. If your error is a long way down a chain it could be very hard to track down where exactly it's occurring. If there's no error handling, execution does stop at the error, so it's tempting to do away with error handling in your code. Is there any way to run your application in the debugger so that execution does stop at the error, in spite of their being error handling code applicable?
Last reply by rbulph, -
-
-
- Administrators
- 2 replies
- 1.2k views
Hi all I am trying to use a stored procedure to insert an image into a database table, and I am getting the following error: The structure of my table (StaffImages) is: Identification int (PK) (Identity Specification = yes) Staff int (allow null) Picture image (allow null) ImageType nvarchar (400) (allow null) My stored procedure is: ALTER PROCEDURE [dbo].[procInsertImage] -- Add the parameters for the stored procedure here @Account nvarchar (50), @Picture image, @ImageType nvarchar (400) AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; DECLARE @SID int -- Insert statements f…
Last reply by mike55, -
-
-
- Leaders
- 5 replies
- 1.5k views
I'm new at this but I was wondering if data can be stored somehow within the executable file rather than in another DAT or TXT file. For instance, if a user entered name, etc., into a textbox could this information be saved within the form(s) so that it is available next time the program was opened. Alternatively, can a text file be incorporated into the executable file. Thanks, Ted
Last reply by TedN, -
-
- 0 replies
- 882 views
I've been writing database applications for the past 4 years and I just wanted to hear some database design ideas. I have not really used an object oriented design, such as creating a class for each table in the database. Instead, I basically create a windows form for each table that allows the user the ability to make any changes they need to make. There is obviously a lot more to the application, such as posting and reporting (accounting software). Anyway, my next project I was thinking of trying a much more object oriented design. I would love to hear from anyone who has any database application experience.
Last reply by grip003, -
I am in the process of upgrading my VB6 app to .net I make extensive use of InstrB for byte searching within an array of bytes eg: Dim test(3) as byte test(2) = 1 test(3) = &HB3 r = instrB(offset, bArray, test) Now i see there is no intrinsic equivalent in .net or is there? Are there any functions that can be used for byte searching? Many thanks
Last reply by Zeul1, -
Can I run both vs2003 and vs 2005 web applications on my local PC? IF so how?
Last reply by dinoboy, -
- 1 reply
- 1.2k views
I have a Table called 'GridGroups' with a primary field 'GridGroupID' There is a secondary table called 'GridTrans' which also has a field, 'GridGroupID', which is not primary. This second table uses a ForeignKey relationship to the primary for the two GridGroupID's. Don't ask me why - not my database, and I don't like Foreign Keys for just this reason. Now I want to delete the GridGroups, so (and correct me if I am wrong) I should: 1. Delete all of the rows in GridTrans with this GridGroupID 2. THEN delete the one row in GridGroups with that GridGroupID I can do (1), (2) throws this error: Integrity constraint violation: Primary key for row in table…
Last reply by dinoboy, -
-
- Administrators
- 4 replies
- 1.1k views
Hi all I am using the following cmd in the post-back section of my page to identify what page I came from. Here is the code that I am using: If Not Page.IsPostBack Then ViewState("ReferenceURL") = Request.UrlReferrer.ToString end if I am however getting the following error: "Object reference not set to an instance of an object". I can't understand what is causing the error, as when the page is called from another page it works perfectly. Any suggestions? I have a sample application using the smae code and there is no problem. Could it be anything to do with the fact that I am using the asp.net 2.0 menu control to redirect the user? Mike55.
Last reply by dinoboy, -
-
What do you use for a graph on the form? I don't see anything in the tools section. I am pulling data from a text file and want to plot a graph for the user to see.
Last reply by snarfblam, -
- 0 replies
- 890 views
I have written a visual basic application that interacts with 2 types of scanners the Kodak and the Visioneer scanners. My problem is when I get a document that is too light. In the Kodak it scans in as is however the Visioneer degrads the scan to a point where it is unreadable. Adjusting the brightness does work but when that happens the scanner will no longer read a barcode which can be associated with some documents. I am kinda of a wits end, any suggestions/thoughts on how I can handle this would be greatly appreciated.
Last reply by lothos12345, -
- 1 reply
- 2.1k views
Does the GraphicsPath have any method for determining whether a given point is within a certain distance of any point on the path? This would seem quite a natural facility for it to provide, but I can't see it anywhere. In its absence it looks as if I will have to call the Flatten method and then test for each pair of points as if they were a short line.
Last reply by rbulph, -
- 2 replies
- 1.7k views
Hi all, I'm struggling to create a generic mesh class which will load a mesh, apply the materials and also allow for an effect file to be rendered too. Has anyone done anything like this before?
Last reply by ardman, -
-
- Administrators
- 1 reply
- 1.4k views
Hi all What is the most effective way of passing a sqlDataReader from a web service back to a web application? I have tried to pass it back as an object data type, but problems arise when I try to convert that object back to an sqldatareader using ctype. Any suggestions? Mike55.
Last reply by PlausiblyDamp, -
-
- 0 replies
- 966 views
I created a small app after watching a tutorial. I didn't have to code anything just click my way through Visual Web Developer Express. I have a Datagrid which is connected to the DB through a DataAdapter. This was pretty easy. Now I have to populate the DB with a large amount of dummy data. How do I do this? Writing C# code to create random data is easy but how do I connect to the Database? I guess this is the downside of building the app through a GUI :rolleyes:
Last reply by Malfunction, -
- 0 replies
- 1k views
This is the first time I really have to work with a SQL Express DB. It looks like my favourite datatypes (from mysql) SET and ENUM are not available here. Will I have to use an extra tabe for the types or is there a solution I ddin't come accross yet?
Last reply by Malfunction,
-
Who's Online 0 Members, 0 Anonymous, 53 Guests (See full list)
- There are no registered users currently online