Patrick Huynh's Q&A profile
Visual C++ CoInitialize has not been called
void CDeleteDlg::OnBnClickedButton1() { CComPtr<IShellLink> spLink; HRESULT hr = spLink.CoCreateInstance(CLSID_ShellLink); //HR result is here :CoInitialize has not been called . . } HOw to call CoInitialize .Any help would be appreciated. -Rups Thanks , cgraus .. I t working now.. ...Show All
SQL Server SQL Server Setup Fails
Dear, When i installing SQL Server in my server then i recieve this massege can any one help me regarding : TITLE: Microsoft SQL Server 2005 Setup ------------------------------ SQL Server Setup could not connect to the database service for server configuration. The error was: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Refer to server error logs and setup logs for more information. For details on how to view setup logs, see "How to View Setup Log Files". For help, click: http://go.microsoft.com/fwlink LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.06&EvtSrc=setup.rll&EvtID=29515&EvtType=lib%5codbc_connection.cpp%40Do_sqlScript%40OdbcConnection%3a ...Show All
SQL Server Where the data source and reports stored in reporting services
Hi, I am wondered after creating a data source into the reporting services where the details of that data source stored in the backend, is it saving in the tables or somewhere else I need the details. And even i would like to know after uploading the reports where these details are also stored. This is little urgent, please help me. With Regards, Prashant Mulay Hi Brad, Thank you for the reply. I want to create a small tool from where user can upload the report. I gone through all the tables but unable to find the right table which stores both data source and reports. Please help me out to identify. With Regards, Prashant ...Show All
.NET Development Finalize() & Destructor(), which is used for finalization?
Hai frendz, I knew that destructor() in C# is not similar to destructor() in c++. But for performing finalization, which method is used, either destructor() or Finalize() method of System.Object class. Does both performs the same thing (OR) Finalize() uses destructor() (OR) Either one can be used to perform shutdown activities (OR) Both are necessary . Pls, make me clear in this regard.. thanks... Hi ahmedilyas I believe you were mistaken about when destructors are invoked (deterministically, when the pointer is deleted by user code), and their relation to finalizers (destructors don't call finalizers). My post above should clarify the distinction. If you have any specific questions, feel free to repond. -C ...Show All
Visual Basic Upgrade Issue
Hello I am updating a VB 6.0 program to .Net using Visual Basic 2005 Express Edition. I have the program running on one computer but when I try to move it to another computer (by copying the /bin directory, I have the same problem using publish) the program crashes. The program seems to crash when it tries to load the second form which uses a grid (used to be Grid32 and is now MSGrid). Below is the error dialog I get (long). What is JIT debugging Help! Thanks See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for detail ...Show All
SQL Server Help on OPENXML with NameSpaces
DECLARE @batchXML XML DECLARE @docHandle INT -- <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/windows/test/XMLSchema.xsd"> SET @batchXML = '< xml version="1.0" encoding="utf-8" > <Response> <Student> <Name>Tony</Name><Status>Success</Status> </Student> <Student> <Name>Pam</Name><Status>Fail</Status> </Student> <Student> <Name>Sam</Name><Status>Success</Status> </Student> </Response>' EXEC sp_xml_preparedocument ...Show All
Visual Basic Accessing RSS Feeds
I need to get data from this RSS feed: http://feeds.feedburner.com/WikinewsLatestNews to create a desktop ticker. Any suggestions on where to start accessing the feed There is this vb learning resource that was released as part of Whidbey (I think). It walks you through how to build an RSS Feed Reader (using videos and projects). This may be of help - http://msdn.microsoft.com/vstudio/express/vb/learning/ ...Show All
SQL Server sql problem
hi, i have this sql statement. set @stmt = 'select distinct * from (' + @stmt + ') as ax, (' + @st + ') as bx where ax.invoiceid = bx.invoiceid and ax.pono=bx.pono' now suppose it returns select a.s , a.t , a.u , b.s, b.t , b.total from a,b where a.s=b.s how can i reduce this to select a.s , a.t , a.u , b.total from a,b where a.s=b.s . i cannot use named fields but i need a way to prevent duplicated fields. Hi, If I get it right, you want to create a join between two tables without knowing the tables in advance To do this you will need to use the sp_sqlexec stored procedure. This stored procedure allows you to execute dynamic sql statements. Here is a possibility to retrieve ...Show All
Visual Studio Team System Problems adding solution to TFS source control through solution explorer
Ive also added this thread onto the Visual Studio MSBuild forum I have read the link about VS integration with MSBuild http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=64816&SiteID=1 which was very useful but I have a slightly different scenario I think. I am using WiX to generate setups in my organisation (which basically uses XML source code to generate msi's via a command line tool). I want to integrate this into VS2005 so that when my devs do an IDE solution build, aswell as building all the c# projects' code to produce dll's, there is also a project that builds all the WiX source code into an msi. To achieve this I added a basic c# class library project to my solution called 'Setup', then I stripped out all text in Set ...Show All
SQL Server Deployment of SSIS package fails with AcquireConnection error
G'day, I created an ETL package within SSIS on a development server, tested it out initially using SQL Authentication, and the package ran successfully. However when I created a deployment package for it, and tried to install it on the same machine, it gave me an AcquireConnection method call to Connection Manager XXXXX failed with error code 0xC020801C. So, I changed the authentication on the db connection manager to have Windows Authentication, and in the config file had the parameters ServerName, and Connection String configurable, and then tried to install it...and it installed fine, and ran without a problem. But, when I tried to install this package on a production server with SQL 2005 installation (9.0.2153 as opposed to development ...Show All
.NET Development C# equiv of isdate?
Hi, How do i check if a string contains a valid date Ex, i have a string ="jan 6 15:15", I want to set the year to 2006, but only if it's not already a valid date as is the case. so, the resulting string should be "jan 6 2006 15:15". but if the string already has a valid date, ex "jan 7 2005", I don't want to touch it. I try to use the datetime.parse inside a try/catch, but i couldn't get it to fail. It keeps setting the date to now(). Has anyone done this before These posts were extremely helpful when trying to find the most efficient way to validate a date. But since we are in the dark ages and not using 2.0 framework, let alone 3.0 that is now out, I used th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Ray - Mesh intersection
Hi. Here i have some simple room and moving camera: Now I am searching for something like D3DXIntersect() to check intersection with mesh, not with simple b-boxes, but now all i can find is Intersects() with planes and bounding-things. Maybe i missed... or there are some other solution As you can see Boundingbox would not help a lot (i guess) , because there are a door hole, where camera should pass-through. I would try to check multiple ray to mesh intersections from camera's eyePos to 6 directions ( forward, back, left, right, up and down) for camera movement control, but not unless a principle is found Any ideas P.S. Thanks XNA Dev. team for Beta 2. ContentPipeline & X files rocks! The simplest way is perhaps to subdi ...Show All
Visual Studio Team System Determine if there is a label already applied to the latest version
Is there an easy way to determine if there is already a label applied to the latest version Thanks for the info. It's good that there is a way to accomplish the task, I just hesitate to tell our developers about this solution because it exposes deficiencies in the product when compared to VSS. Don't get me wrong, I absolutely love VSTS but I do hope that future releases to the product (especially the Team Foundation Server and client) are released on a more regular basis. ...Show All
Visual Studio Express Editions error in connecting to SQL Server 2000
Hello, I have a problem when I try to connect to SQL Server 2000 I got this error message http://arabicpro.arablycos.com/myerror.JPG please how do I solve it --------------------------------- and I want to know how do I connect to it by code please give me full information (I`m a beginner in .NET) Thanks Thanks Bruno Yu - MSFT for ur reply, This error appears when I use the wizard you know in the data source wizard we choose the connection provider (to Access or SQL Server) the normal state have to be when I choose access then I have to enter the database path, and when I choose SQL Server provider it hides the database path`s Textbox but the problem is when I choose SQL Server provider the wizard still shows the ...Show All
Visual Basic Usage of My.Settings Error
I am trying to use the settings page to save user changeable options and when I try to read in anything from the settings I get the following error. Reference to a non-shared member requires an object reference. Example: Me.textbox.text = My.Settings.Servername Thanks... You dont need to do anything except set up a setting in My Project -> Setttings -> add a new setting call EmailServer which is of type string And on form ensure there is a textbox control called txtmailserver. Create a simple project with a single form and a setting and see if this works for you - it sounds like something has gotten screwed up on the project to me. This works fine for me. The error is interesting as it occurs when you are ...Show All
