N8WEI's Q&A profile
Visual Basic Need to call external DLL that takes structured parameter
Hi, My application needs to call an external unmanaged DLL supplied by a third party. That DLL is written in C I suspect, it takes a struct parameter that holds some 30 fields, most of them of type char[x] where x varies for each field. What I did was a wrapper class, that has a declare statement like this Private Declare Ansi Sub ExternalSub Lib "ExternalDll.dll" (ByRef struct As strParam) The struct is defined like this & ...Show All
Visual C# Adding Dialogbox
hi i have created installer package for my application. I want to create the new dialog box which is not in add dialog box pane. How to add new dialog box . In Add dialog pane set of dialog box is available. My requirement is i want to add new dialog box. How to do that Pls tell me It's not possible using the Visual Studio Setup project. You will need to use a custom tool such as Wise for Windows Installer or InstallShield . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to prevent the KeyDown event delay?
I'm currently trying to design a simple 3D engine that will run in a window so I'm using windows forms and not the DXUT. I'm trying to get keyboard input working to move my camera and although the following code gets seems to do the job it has an annoying delay if you hold down the button. It moves as soon as pressed but then there is a delay before it continues moving... I don't want this delay however. Here is the code i'm using. &nbs ...Show All
Windows Forms Can't DataBind Combobox (System.Data.DataRowView)
When i run the code below the only results i get back in my combobox is (System.Data.DataRowView). Anyone one have any ideas why I'm using vs.net 2k3 w/ 1.1 framework. To me this should work unless im forgetting something or doing something stupid. thanks&nb ...Show All
Visual Studio Express Editions How to use C# sqlConnect.connectString for MS SQL server 2005 Express?
what's wrong with these lines String connectionString = "Data Source=(local);Database=loler;Integrated Security=SSPI" ; SqlConnection cx.open(); it give me exception as: {"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Pro ...Show All
SQL Server New features/bug fixes in Sept CTP?
Does anyone know where I can find a list of new features/bug fixes in the Sept CTP I've been having a hard time tracking down this info. If someone could post it that would be great! Thanks, Adrian It would be very hard to combine a list of all the changes SSIS team did in 3 months (plus all the changes .NET & Visual Studio teams did in 5 months). Mostly the changes are bug fixes, stab ...Show All
SQL Server Create Flat File source programatically
I created a SSIS package, added Script task. created data flow task programatically, trying to add a flat file source component programatically. stuck at this point. my goal is to add flat file source component to the data flow task and insert into a table in sql server using oledb destination component all programatically. any help is appreciated. thanks. You have to build a Flat File Connec ...Show All
Visual Studio Team System Unable to create unit tests...
Hi, I am trying to create VSTS unit tests for my ASP.NET 2.0 application classes which resides in App_Code folder. Whenever I right click on the code editor and select 'Create Unit Test' against a method in the class, the 'Create Unit Test' window does not list my method. None of the methods in my classes are displayed instead it only shows two classes 'ProfileCommon' and 'ThemeLoad'. TFS Version: B3Refresh Any one got into ...Show All
Windows Forms Docking Problems
I have a form with a menu and a toolbar, a splitter panel and other controls in the splitter. If I dock the splitter, it slides up under the toolbar and the menu bar. I put the menu and toolbar into a panel and docked that panel to the top. then dock the splitter to fill or to the left. Fill puts the splitter under the top panel and left moves the top panel to the side. Is there an attribute I am missing to prevent this S ...Show All
Visual Basic Combo box entry
I placed a combobox on my windows form to present a list of strings that can be selected, however, I would like the user to have the ability to enter any string they may choose. The attached code takes whatever is chosen and prints it in a messagebox. It works great except for the -1 index. How can I accept a string that is input Public Class Form1 Inherits System.Windows.Forms.Form Dim strNucleotide As String Private ...Show All
.NET Development Type.EmptyTypes and its empty object array equivalent?
I have found the Type.EmpyTypes convenient (and readable) for invocating parameterless methods or constructors. In such case, something like Object.EmptyObjects (instead of new object[0]) would be nice to have since its required by the invocation. Does such shorthand exists in .Net 2.0 Thanks in advance, Joannes I asked for something like this a long time ago except that I suggested it come in the form of a st ...Show All
.NET Development Another Reflection Question
Hi, I am working on using Reflection for a plug-in application, using dlls, the app will be done in C+.NET. I have been able to see the meta-data in the dlls, and that is about it. How can I take a class that is in the dll and create an imstance of it Is there a method within the Reflection class, MethodInfo, that I can use to do that Thanks in Advance Hoop Hi, I finnally got it. Took a cast, BaseModuleClass *pl ...Show All
Architecture What about Software Architecture?
All I have seen so far in VSTS 2005 is new tools for the System Architect, Developer, Tester, and Project manager. I'd like to hear what Microsoft is planning for the Software Architect. In my Blog on DSL tools ( http://realworldsa.dotnetdevelopersjournal.com/dsl.htm ) I summarize my thoughts on how much of a mess I think they are going to create in the industry. I would like to hear some thoughts on what MS is planni ...Show All
Visual Basic VB 2005 references problems
Long time C# user and used 2005 since beta 1. Have done some VB class libraries with no problem but the Web IDE is telling me I have references I don't have in my project and don't show up on property pages...Is there a patch for VB 2005 Or am I missing something I think you need to explain further. The IDE says you have references - why And what makes you think that you don't have them if it says you do ...Show All
Visual C# Populating combobox using loop
Hi. I have a combobox. It has 7 items in it. I want to add a different value to each item. Is there any possibility this to be done by using loop. for example I want the 0 item to have value 1000, 1 to have value 10000, 2 - 20000 and so on... Just do something like this: myCombobox.Items.Add( 1000 ); for ( int i = 10000; i < 90000; i += 10000 ) { myCombobox.Items.Add( i ); } ...Show All
