bijuintouch's Q&A profile
.NET Development A Tale of two ServerDocument instantiations
Question I have a VSTO solution which requires that the manifest of an Excel file be written to so that it will associate with VSTO related assembly. One of the steps required is to write a console application which will write to the manifest in a programmatic fashion. To do that one must use the ServerDocument class and pass in the location of the Excel file. What I have discovered is that ServerDocument quietly fails on any file were there is a space in the directory name such as C:\Program Files\xxx.xls. One can instantiate the class, but under certain scenarios sub objects are not intialized while others they are...on the same file. I have created a test application that looks at the same file placed in different directories such as ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Transparency Level
Hello All, I know all about the alpha blend and all that great jazz.. I can create sprites with transparency pre defined in them with no problem. The problem is what if i want to change the transparency of the hole sprite on the fly in XNA say for partical effects as fire and water... I cant seem to find a property to allow me to do this such as_sprite1.transparency = 69 is it possible to do this in XNA Game studio.. I hope so dagfari wrote: In the spriteBatch.Draw method, instead of using Color.White, you can use your own color like so; Color Shadow = new Color (0, 0, 0, 64); the parameters are (Red, Green, Blue, Alpha) Thanks for the info this worked great for me.. ...Show All
Visual Studio how to use stored procuders in crystalreports
hi Friends, Any one know how to use stored procuders in crystalreports please Yaar... help Hi Ghanshyam, I hope the following link will help you a lot. Check it out. http://msdn.microsoft.com/msdnmag/issues/02/05/Crystal/ Regards Ram ...Show All
Visual C++ error C2664: 'gethostbyname' : cannot convert parameter 1 from 'class CString' to 'const char *'
when I use the following code in the unicode project of vc, it has the following error: error C2664: 'gethostbyname' : cannot convert parameter 1 from 'class CString' to 'const char *' Can you tell me how to do this data conversion and make this statement workable Thanks you very much. lpHost = gethostbyname(pstrHost); Samuel Hobbs wrote: You will definitely get that error whether the string is Unicode or not. So try the following and please refer to the documentation of "CString::GetBuffer". LPTSTR p = pstrHost.GetBuffer( 10 ); lpHost = gethostbyname(p); pstrHost.ReleaseBuffer( ); [...] (In my opinion the GetBuffer / ReleaseBuffer pair is required when we need to build a string. In case of gethost ...Show All
SQL Server Newbie looking for direction
Happy Friday afternoon, all, My task is seemingly simple. I have data on the server in MS Excel Files. I need to get the data into multiple tables in a SQL Server db on the same server. I have been only working with SSIS for a bit, so please bear with me. I can load the data directly from the Excel worksheet to one table, but I need to run an already defined stored procedure on the data from Excel before putting it into tables. I need to loop over all the rows and run the data from each row through the stored procedure. So, I think I need an Execute SQL Task withing a For Each Loop, but neither is available on the Data Flow page, and I don't see how to use them in the control flow page. I don't see that any of the Data Flow tr ...Show All
Visual Basic Excel's Undo buffer
Hi All, I need a utility that will flag a row as changed. Excel's Worksheet_change does the job well ( http://www.mvps.org/dmcritchie/excel/event.htm#autodate is an example of how to achieve this) except that the undo buffer is cleared when any VBA code is executed. Is it possible to have the best of both if I were to use VSTO Thanks in advance for any insight into this. HS I'd pitch this question to either the VSTO Forum http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=16&SiteID=1 Or the VBA Forum http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=74&SiteID=1 As these appear to be the two products you talking about in this question. ...Show All
Smart Device Development Error: the operation could not be completed. the device is not connected
One weird thing happened to one of my application. When I want to do the debug and sync with my pocket pc device it gave me this error. I have check the device and it's already connected. I even debug other programs and they are fine. why only this one is giving me this problem I solved this by recreating my application. Either i messed up some setup or configuration or not but i notice that Visual Studio crashes several times or at least unable to rebuild a project. ...Show All
.NET Development Search, create or update a record
Hello, I'm trying to do a search on a dataset and if I find a record matching a value, I want to update the record; If i don't find any record, I want to insert a new. I've the following code: Imports System.Data.OleDb Dim cmd As OleDbCommand Dim dsNR As DataRow Dim cb = New OleDb.OleDbCommandBuilder(da) con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & DbSource & ";" sSQL = "SELECT * FROM [Numeros_Dia] WHERE (Data= '" & DataRelatorio & "')" da = New OleDb.OleDbDataAdapter(sSQL, con) ds.Clear() da.Fill(ds, "Numeros_Dia") If ds.Tables(0).Rows.Count = 0 Then dsNR = ds.Tables(&q ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is there a way to define default values for properties in a GameComponent?
Hello. I was wondering if there's a way to define which default values appear in the designer view of a component's properties. You know, the values that are not bolded, and appear as a default when you first add a component Thank you in advance. :) Edit: Ok, shortly after posting this, I found out how to define the default values (you just have to initialize the correspondent private variable with the value you want), but how do you make the default values "unbolded" You can also define default values without System.ComponentModel like this: private int _myInt = 5; public int MyInt { get { return _myInt; } set { _myInt = value; ] } ...Show All
Visual C++ Fatal Error in vs2005
Hi all, I am getting a fatla error while debugging 2005 (32 bit win -static lib ). Error 1 fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h> c:\program files\2005 microsoft visual studio\vc\atlmfc\include\afxv_w32.h 16 Can anyone help me Regards, Rupesh I think you should first try to comment a line from your stdafx.h file: #include <windows.h> and maybe from other files too. (This file is already included by MFC). Then rebuild the project. I hope it helps. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Beta 2 announced (date 'in a couple of weeks')
http://blogs.msdn.com/xna/archive/2006/10/23/announcing-xna-game-studio-express-beta-2.aspx I doubt any such templates will be very usefull for the second beta, because from what i've read and seen, the Content Pipeline is integrated with the IDE, and the content is processed at build time. I would like to use Visual C# Pro, mainly because the Express Edition doesn't integrate with Team Explorer, but I am afraid I'll have to manage my source control in another way, since it looks like it's either this, or loosing the Content Pipeline. Hope I'm wrong, though. Any official opinions ...Show All
Visual Studio Team System TF30059: Fatal error while initializing web service
Hello, I hope someone can help me here. I have a VSTS subscription, but since I'm trying to install and evaluate the Trial version of TFS, Microsoft won't provide telephone support. I have installed TFS Trial on a virgin Win2K3 R2 server (single server install). There were no issues during the installation. The network is using ISA 2004 firewall. The TFS is inside of our firewall. Our client machines are outside of the firewall. I can connect to the TFS from VSTS but cannot create a project, either when I Remote Desktop into the server, or from the client machines. All required ports for TFS are open. I have searched, high and low, on the various error codes and messages, but none of the solutions have worked. 1. When connectin ...Show All
SQL Server Failed to use 'sp_identitycolumnforreplication' after one sucessful trying
I failed to use 'sp_identitycolumnforreplication' to disable the 'not for replication' property on the identity columns. However, it was succeessful before. But it doesn't work any more. Restore the database, and re-install SQL server, no use. How to fix 'sp_identitycolumnforreplication' Here is my query: declare @int int set @int = object_id ( 'tbl_wsSTUAPP_WEXP' ) exec sys.sp_identitycolumnforreplication @int , 0 GO Thank you! Are you getting an error back or is it silently not working Note that setting up replication through SMSS will reenable the not for replication property again. If it is failing silently for you, you may want to try stopping and restarting the serv ...Show All
.NET Development Problem Making Requests to a non-.NET Web Service
I'm attempting to utilize a web service written in something other than .NET. (Not sure what it is... probably J2EE.) I grabbed the WSDL via VS.NET (I'm using .NET 2.0, btw) and it created the proxy classes. When I make the request the remote server just returns an empty request body. After poking around a bit I discovered that their example SOAP request and my actual SOAP request differed quite a bit. First, their namespace prefix differed from mine. Their's is SOAP-ENV and mine is of course just SOAP. I assume that's fine. But then it gets more strange. The particular method I'm calling is called makePurchase. My SOAP request, however, looks like: <soap:Envelope ...> <soap:Body> <Purchase> Their example SOAP req ...Show All
Visual C++ Web Service Utilizing Managed C++ Wrapper Class Has Problem
I have a web service which uses a managed C++ dll that wraps some native code. I have built and tested this on my local machine and all is well. When I deploy this to a server I run into problems. I get a message that says "This application failes to start because the appliction configuration is incorrect. Re-installign the application may fix this problem." I have narrowed the problem down to what seems to be some manifest file problem. If I put this code on a server that has Visual Studio 2005 on it all is ok. I also did a Dependency Walker on it and the dll's missing were MSVCM80D.dll MSVCP80D.dll MSVCR80D.dll DWMAPI.dll Can anyone tell me what I need to do to get my code happy It doesn't seem to work to ...Show All
