Rhapsody's Q&A profile
.NET Development OleDb issue on Framework 2.0
Hello All, I got the following exception when this line of code "strItemNumber = dr("ItemNumber")" was executed on the machine with .NET framework 2.0 installed. Same application works fine on the machine with .NET Framwork 1.0 installed. I am hoping that someone can shed some light on how to solve it. Thank you in advance. Tony Exceptions: System.Data.OleDb.OleDbException: No error information available: DB_E_BADROWHANDLE(0x80040E04). at System.Data.OleDb.OleDbDataReader.ProcessResults(Int32 hr) at System.Data.OleDb.OleDbDataReader.GetRowDataFromHandle() at System.Data.OleDb.OleDbDataReader.FindValueBinding(Int32 index) at System.Data.OleDb.OleDbDataReader.PeekValueBinding(Int32 index) at System.Data.OleD ...Show All
SQL Server AS2005 OWC11 HTTP - Connection Problem.
I am trying to get an OWC11 pivot table ActiveX component to work over the internet with AS2005. I have read so many articles, and I have moved forward, but there doesn't seem to be any final answer. Here is the set up. 1 Server that is running IIS6, WIN2003, SQL2005/SP1. I set up the connection string as PivotTable1.ConnectionString = Provider=MSOLAP.3;Data Source=http://<ip to server>/olap/msdmpump.dll;Initial Catalog=<olapDatabaseName> PivotTable1.DataMember = "<CUBE NAME>" I set up the HTTP pump described in this article: http://www.microsoft.com/technet/prodtechnol/sql/2005/httpasws.mspx I set up an IUSR role for the cube to be read. I set up SQL and AS for remote access over TCP/IP. I eve ...Show All
Visual C++ how to display a child process in the window specified
hi, i am using createprocess/shellexecute to create a child process in VC++. The child process is getting created and running in a separate window. But I want to execute the child process in the window specified by me. Can anyone help.. i want to display the childprocess in a dialog box. i am giving the handle of the dialog box as the first parameter in shell execute but again the child process is getting executed in a separate window... i have used hwd = dialog ::getsafehwnd(); to get the handle for the dialogbox.. can u tell me where i m going wrong. thanx ...Show All
Internet Explorer Development window handle for active tab
hi folks, when a document completes loading in a new tab, my bho gets notified via DISPID_DOCUMENTCOMPLETE. how can i get the window handle for the tab window i've tried the EnumChildWindows/IsWindowVisible combo but it's not always reliable. it would seem IE7 has the handle but how to get it any ideas per my previous comments, i'm using john's code above to get the tab window handle, find its child window via EnumChildWindows for the handle to the docObjView, and finally get its child window which is the tab. for what it's worth, here's my code snippet: ::EnumChildWindows(htabwnd, cTabWndEnumProc, reinterpret_cast <LPARAM>(&hsdovwnd)); if (hsdovwnd) { hbwnd = ::GetWindow( ...Show All
.NET Development SQL Table Lookup Methods
I am looking for a good method to do table lookups in a 2003 SQL database. I am retrieving products from an item table and then want to do value lookups in related tables in the same database like category name, category type, brand name etc. These values are referenced in the item master file by guid links to related tables.I am using a datareader to loop through the Select records and then I am writing results to a tab delimited data file for a data conversion. I am limited to net 1.1 and so can't use the 2.0 executescalar for single lookups. What would be the more efficienct method to use 'Dim myItemData As New DataReader Dim myItemReader As SqlClient.SqlDataReader Dim myItemCommand As New SqlClient.SqlCommand ...Show All
Visual Studio 2008 (Pre-release) My buttons are classic?
First, Hello one and all! This is my first post here, so I'm sorry if this question has been answered before. I have searched , but not found an answer. I have been playing with the Style element in WPF, using XamlPad and a WPF Application created in VS2005 C# Express (Nov CTP VS Extentions). I don't know what I have done, but now my buttons have gone into the Classic style and I can't seem to get them back into the 'Normal' style. System: Windows XP SP2. Everything up to date. Release version of .Net V3.0 installed. Nov CTP of VS2005 Extentions Installed. Windows SDK V6.0.6000.0.0 installed. Here's what I did: Downloaded and installed the Segeo UI font, Changed my theme (Zune) to use Segeo UI for Title Bar and messagebox te ...Show All
Smart Device Development Delegate and event handler to change the focus of dynamically created textboxes
I am working on pocket pc. I have created the number of textboxes dynamically. Now I want's to change the focus on keydown and key up event to the next textbox I know I have to create a delegate and event handler to achieve it.Can any body help me regarding this. I would have thought this would be done automatically even if you programmatically create the textbox and add it to the form controls collection. You can implement the form's keyup/keydown event and then check the keypress event to see if they moved up/down using the Keys Enumerator, then focus on the next textbox ...Show All
Software Development for Windows Vista Runtime Error while CreateWorkflow in Vista build 5472
I'm always getting the following error at the CreateWorkflow statement, workflowRuntime.CreateWorkflow An unhandled exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll Additional information: Access to the registry key 'Global' is denied. when I run any workflow. I have, > Vista Build 5472 > Vista SDK July > Orcas June CTP > Visual Studio 2005 Extensions for Windows Workflow Foundation RC4(EN) Is there any rights issue involved However, I'm working as administrator. Is it again due to the Orcas version mismatch. When can we expect the matching Orcas for the July CTP. I did not face any such error with the build 5456. Can anyone help me out o ...Show All
.NET Development Dns.GetHostEntry doesn't resolve when Dns.Resolve does
I have written a tracert function for SQL Clr by using the Ping object. I am trying to resolve the names of the ip addresses on the route and find that Dns.GetHostEntry doesn't resolve to a name, whereas Dns.Resolve does. This is my line for resolving an Ipaddress object returned in the PingReply to a hostname host = Dns .Resolve(_address.ToString ()).HostName; the Dns HostEntry version host = Dns .GetHostEntry(_address).HostName; Just returns the IpAddress. I obviously don't want to use Resolve as its deprecated why does GetHostEntry not work https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=97815 ...Show All
Smart Device Development Irregular Sized Forms?
How do i create a form in WM5-NetCF2 that only takes up the bottom half of the screen.. e.g. is like more like a dialogue box that hovers over the undeling form without taking up the full screen.. I tried changing the form size "this.Size = new Size(100, 100);" but that has no effect and seems to be ignored.. Thanks On WM forms are supposed to be full screen and NETCF enforces that. You might be able to do something like this though. ...Show All
Visual C# HttpWebRequest Read(byte[], int, int) timeout in Vista
On Windows Vista (download works to 100% on Windows XP), the following code will download a PDF to about 6% completion, and then pause and timeout in the function: " Read(downBuffer, 0, downBuffer.Length)) ". Any idea on how to get it to download completely I'm using one of the PDF links on MTA for an example. To run the code make a new FileDownloader, like this: FileDownloader fd = new FileDownloader("http://www.mta.net/images/201.pdf", 15000, null); It may also help to create a Form with a Label, and send the label as the third parameter. public class FileDownloader { private bool bStopThread = false; private bool bThreadFinished = false; private long downloadST = 0; private int timeOut = 0; ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to setup view and perspective matrices, please?
I can't find a way to set the matrices for the device, could someone enlight me, please I have the same question , I think because XNA has moved from fixed pipe line functions to shader !! it does not use the same stle as directx, the help file has some camera demonstartions...... ...Show All
Visual Studio Accessing parent project from invoked child project
When a project calls msbuild on a child project - is there any way to access anything in the invoking/parent project Is there any way to determine the project filename, or anything about the parent project This could be either via the msbuild XML or from a custom task, ie via the object model. I've been looking at the object model and at the internal classes but haven't found anything appropriate. /marcus Ok, this is interesting; if I build the parent project from the command line, the solutions in the child project file will build, but the output is going in BinariesRoot\Debug or BinariesRoot\Release instead of the path I want to set. If I run the team build from VS, nothing in the child project builds. ...Show All
SQL Server System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Dat
I have created a windows library control that accesses a local sql database I tried the following strings for connecting Dim connectionString As String = "Data Source=localhost\SQLEXPRESS;Initial Catalog=TimeSheet;Trusted_Connection = true" Dim connectionString As String = "Data Source=localhost\SQLEXPRESS;Initial Catalog=TimeSheet;Integrated Security=SSPI" I am not running the webpage in a virtual directory but in C:\Inetpub\wwwroot\usercontrol and I have a simple index.html that tries to read from an sql db but throws the error System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, ...Show All
.NET Development FTP Client
Howdy I'm trying to write a small FTP client with VB.NET 2.0 Any attempt to connect to the FTP server gets me the exception "(501) Syntax error in parameters or arguments." I've tried using My .Computer.Network.DownloadFile and also the FtpWebRequest class, both times supplying a URI, a method, a username and a password, but I get the same problem. Any ideas anyone I tried doing it on an FTP/webserver I have and it worked fine. The only thing for now is the whole "dude" thing - is this a local server I understand it works when you do it via the MSDOS prompt approach however. However this should not be the problem any way since you do get a response from the server Have you tried connec ...Show All
