Alex DeJarnatt's Q&A profile
Visual Basic Yoda needs help sending Data to Hardware! ALL NERDS COME QUICK!!!
I am trying to send ATAPI commands to a cdrom in VB.Net. While researching this it seems to me the VB is not the best at this. I am sure there is a way though. Can anyone steer me in the right direction I read something on calling the Windows API to do some hardware speaking, but it said that that is being Phased out with VB.Net. Is that true I am able to send these commands through another CDROM test program that we use. The program ...Show All
Windows Forms Listview VirtualMode AutoGroup
Hello, I have a form with a listview and since I have a lot of items to read into my listview, I have to use the property "VirtualMode". But when I set this property to TRUE, my code to group the listview doesn't work anymore. This is my code Dim aItems(0) As ListViewItem ' Fill array of listviewitems If Not aItems Is Nothing Then Array.Clear(aItems, 0, aItems.Length) ReDim Me .aItems( Me .ds.Tables(0).Rows.C ...Show All
Visual FoxPro Accessing VFP9.0 Stored procedures with .NET
I've been fighting an almost epic battle these last few days with Foxpro, to try to access its Stored Procedures with ADO.NET. Here is my code: Dim conn As String = "Data Source=Q:\network\Gestion\stage.dbc;Provider='VFPOLEDB.1';password='';user id=''" Dim OleDbConnection2 As OleDbConnection = New OleDbConnection(conn) Dim cmmSelect As OleDbCommand = New OleDbCommand("ProcGrillePosteA", OleDbConnection2) cmmSelect. ...Show All
Visual Basic Login in VB app
Can you help me! I have a SQL Server 2005 with a database on it. I would like to create a login form on a VS 2005 VB app that validates a user's credentials. Thanks guys, Zack Owens sure, no problem mates. any extra problem, please email me / pm me on silkkeng@hotmail.com(removethis) For dataset and datatable. their structures please refer to msdn. in one dataset, you can have as many datatable as you like. Treat datatable like your da ...Show All
Visual Studio Express Editions SQL Server 2005 Express Edition April CTP fails to install
I have spent the last hour trying to find other cases of the same install error on the web, but w/o luck. Does anyone know how to fix the following. I have Windows XP SP2 with VS 2005 Beta 2 (April 2005). When trying to install the "SQL Server 2005 Express Edition April CTP" I'm getting an error at the end of the install. Here's some of the messages: The initial error dialog: "Microsoft SQL Server 2005 CTP Setup" (window title) Mi ...Show All
Visual C++ Looking for some structure like a tree ...
I'm looking for a structure, something like a tree or map, which allows me to check if a key is in there but also if the path to it matches in a specific order. Think of "hello". I'd like to know that the o is in the map but also that I've chosen the path "h" "e" "l" "l" "o" to get there. I'm not sure what structure I can use for this. background: I want a tree of commands that will be read character by character out of a file. To avoid searchin ...Show All
Microsoft ISV Community Center Forums How print picture
Hello, I have small question about printing graphic file. How send to printer picture ( graphic file) under VBA Per our support engineer: Hi, you need a container in office to contain that picture, then print it out. For example, you can insert that picture into a word file, then print that word doc. Here is a sample code for you. === Selection.InlineShapes.AddPicture FileName:= ...Show All
Visual Studio What makes IntelliSense work or not?
If I add a new cpp-sourcefile to my project, that is just supposed to provide simplification funcs and macros for some API tasks, IntelliSense no longer displays function declarations when I begin typing a function call. I've #included the same headers Visual Studio did in my main source file, so I assume this about the IntelliSense DB beeing built just for those source files VS itself created. How can I get Intellisense to help me accross all m ...Show All
SQL Server Bulk Load Failure
I have numerous jobs that use the Bulk Load object to transfer data. Once or twice a day, one of the jobs will fail with the folowing error: Error: 0xC0202009 at Data Flow Task, SQL Server Destination [73]: An OLE DB error has occurred. Error code: 0x80040E14. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E14 Description: "Could not bulk load because SSIS file mapping object 'Global ...Show All
Visual C++ A problem deleting a map
Hi, I have a problem with a map. I've created a map where I store couples of int and pointer to object, and it works almost properly. When I try to delete all the map's elements using this piece of code,it tries to delete more elements than really exist: Tablero::~Tablero() { maptype::iterator i=m->begin(); while (i!=m->end()) { delete ((*i).second); i++; } //m is the map delete (m); } Can anybody ...Show All
Visual Studio Tools for Office Can Outlook folders simulate Listview presentation of ADO records
Hi, I’m in the middle of planning a new project where VSTO and Outlook will be the keystone in the architecture. Outlook will be used as the main client performing search and presenting (read-only) data from our main application which is based on web services. I’m thinking of using an Outlook folder that simulates grid/ list view functionality. Post ADO records in to the folder after running some predefined search in a combobox. I ...Show All
Visual Studio 2008 (Pre-release) Building custom lookless control
Hi, I'm trying WPF and I want to create a custom control but I'm kinda lost with how to add inner control to my control. What I'm trying to do is to have a control which have a UIElementCollection. These UIElement will be added to a Grid (which will have custom event handler etc... and cannot be styled) which will be the content of my control. The ControlTemplate will be around my inner grid. Anyone has resources on how to do this Thanks, ...Show All
SQL Server Get trailing spaces when import data from FoxPro
Hi, We have a problem regarding the Visual FoxPro OLEDB driver. When we import data from FoxPro into SQLIS using Microsoft OLE DB Driver for Visual FoxPro, all string fields get spaces upto the it's field length. Example: Column A has a length of 10 characters. If we insert "bob" into that field in FoxPro and then read it from FoxPro and store it into SQL server. The resulting value in column A in SQL Server will be "bob &nb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sprite Problem
I'm trying to do some simple 2D graphics with DirectX 9.0 (April version), so the first step is to display bitmaps. I found a tutorial that applies a texture to a rectangular triangle fan (quad), and that works perfectly. However, when I try to display a bitmap with the ID3DXSprite object, it looks a little blurry, as if the bitmap is offset from the screen coordinates by some fraction. When using the texture-quad method, apparently you must ...Show All
Visual C++ Where is CWnd::CreateControl ?
Hi, I am investigating if MSVC 8 provides a viable upgrade path for us. I have ported my MSVC 6 applications to MSVC 8 and have gotten all my libraries to compile. However, every application that uses an ActiveX control generates a linker error regarding CWnd::CreateControl. But my other MFC based applications link and apparently run correctly. What gives This is hand copied so ...Show All
