biscuitlad's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Catching/reporting effect file errors at build time
Hi, Is there any way to set things up in Visual Studio so that fx files get compiled at project build time, and errors get shown in the Output window It looks like currently there is no compilation of effects at build time, but at run time when the effect gets compiled from file, the CompiledEffect will just get set to null, and you'll get a NullReferenceException when you try to make an Effect from it. Maybe instead CompileEffectFromFile should throw an exception if compilation fails, and it should make the compilation error info text available in the exception detail But I'd mostly prefer to catch the fx errors at build time. XNA is lots of fun, great work! -Mike Ah, you're right. The C ...Show All
Visual Studio Team System Case Sensitive?
I get a ton of "errors" using Subscriber Release (Dec 06) for new Schema generation actual DB (SQL 2005) to Project that seem to be related to the parameters case. For example if the Parameter type is UDT_ id in the Stored Proc and PCA.UDT_ Id in the UDT SQL Server VS reports an error that the Type cannot be found. It'll be real handy if I were working in a case sensitive mode.. Is it configurable Thanks Pat in New Hampshire USA It is configurable. There are 2 things you might need to do to get this to work. First, on your design-time validation server instance, make sure the collation is set to a case-insensitive collation on the master database. Second, make s ...Show All
Visual Basic two question??
Whats the difference between CType() and DirectCast() also what is the difference between Dim val As Integer and Dim val as Int32 Following should answer you. Difference between CType and DirectCast http://forums.devx.com/showthread.php t=53922 ...Show All
Visual Studio 2008 (Pre-release) Http password setting in WCF
Hello, I want consume a Web Service with a WCF Client. The Web Service server supports only a http connection. In a old console application i set the password setting with ICredentials: ICredentials creds = new NetworkCredentials("myUser", "myPassword"); service.Credentials = creds; When I try to use this in a WCF application i get an error that I have to use a https connection. How can I set the password and user in a WCF application with a http connection Best Regards, Boris You cannot use transport level security without SSL when using the "username" credential type, as this would be a security risk (username and password sent in clear text). WCF prevents ...Show All
Visual Studio 2008 (Pre-release) Configuration help.
I am having some configuration problems and I would like to solicite some help from this group. I have tried reading "Programming 'INDIGO'" on configuration but it seems that many of the tag names and configuration sections have changed so that it is very hard to take samples from the book and apply them. Is there a better reference on configuration of server and client Where would be the best place to go for samples At a very basic level I would like to configure a client and server to use or listen on an HTTP address and a TCP address. This seems simple enough but the configuration has me tripped up right now. Thank you. Kevin "Programming Indigo" is pretty out of date. For sam ...Show All
SQL Server Temp tables in Integration Service
I am trying to move a flat file into a temporary table but the pre-execute phase looks for the table and fails the package. Is there away around this I have set the connection RetainSameConnection to true but that doesn't appear to help in the dataflow. The pre-execute phase of which container The package or a task (N.B. Remember that packages and tasks are themselves containers). Try setting DelayValidation=TRUE on the offending container and see if that helps. -Jamie ...Show All
SQL Server How I can pick between 5 - 20 rows in table
Mostly we are using to get 100 or more record with Top operator, but I want to take specific row in between like 10 - 100 or 100 to 200 etc. How I can pick it. plz give suggestion ...Show All
SQL Server Move data to DB2 on AS400 with SSIS
Anyone writing data to DB2 on an AS400 with SSIS I cannot get the OLEDB destination configured correctly. I can set the destination up with a SELECT sql query, and preview the resultset. Yes, we have. I have found the IBM OLEDB provider easier to use than the MS driver for DB2. Are you able to establish a connection I could not tell from your post. ...Show All
Architecture O/R Mapping
O/R mapping is quite interesting. I would like to post this question for discussion. I have the following classes: Employee, FullTimeStaff, PartTimeStaff, etc. FullTimeStaff and PartTimeStaff have many attributes and behaviors in common and also many other unique attributes and behaviors. So, FullTimeStaff inherits from Employee and PartTimeStaff also inherits from Employee. Do you think it is good to map both FullTimeStaff and PartTimeStaff to a single table called Employee (the table contains an extra field to identity whether he is full time or part time) in the database There is an excellent article discussing this at the URL http://www.utexas.edu/its/windows/database/datamodeling/dm/hierarchies.html ...Show All
Visual Basic Storing the Contents of a textbox control to a text file
I have a Form1 that has 4-controls textbox1 and tbox2 botton1 botton2 I want to enter text info on the textbox and send it to a textfile.txt file I am getting six declaration errors on fs and sw, Why ***************Here is my Code************************************************** Imports System Imports System.IO '\\ Create a Form2 add two buttons and two textboxes '\\ Name one button Save the other Recall ' Storing the Contents of a textbox control to a text file Public Class Form2 Dim sw As StreamWriter Dim fs As FileStream fs= new FileStream("c:\textdata.txt", Filemode.Create) sw= new StreamWriter (FS) Sw.write (TextBox1.text) Sw.write (TextBox2.text) Sw.close() fs.close() End Class Thanks Guys, Fernando Pen ...Show All
Visual Studio same problem
A requirement of my reporting system that I'm developing is that it be possible to localize the reports. They don't need to be localized dynamically -- we can provide different RDL files for each language and report combination. When I put japanese characters into the RDL file I get mixed results. When I export to Excel, it exports fine (except for the chart labels). When I export to PDF, I get the following error: A call to PInvoke function 'Microsoft.ReportViewer.Common!Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionPDF+WindowsGDIWrapper::GetGlyphIndicesW' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention an ...Show All
Visual Studio Invalid argument for database
Hi, I have a report that is connecting to two different databases and retrieving data from a stored procedure in each. My problem is that when I try and set the destination of the database at runtime, I get the following error: Invalid Argument provided. Failed to open a rowset. Error in File C:\DOCUME~1\JAMES\LOCALS~1\Temp\temp_{5E8F9D66-6EFF-47E9-96F7-65D32A761DCC}.rpt: Invalid argument for database I have other reports connecting to the two databases and I am setting their destination at runtime with no problems. The only difference in this report is the fact that it is using stored procedures rather than tables directly. Strangely enough, when I set the designtime location of the database to be the location that i am sett ...Show All
Visual C++ Changing Group box frame color
Is there a way to change the color of the frame of the group box controls Please see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=789657&SiteID=1 . This forum is dedicated to C++ Language issues, so GUI questions are best directed to the proper newsgroup at http://msdn.microsoft.com/newsgroups . Thanks. ...Show All
.NET Development .Net Remoting Problem
Hello All, I am having a big problem with .Net Remoting Framework. I have two Applications and both are console based. I am using .Net Remoting to pass messages from these applications to my Console Listener. The applications are sending messages alright but the problem is that when the two applications are running at the same time the console listener is showing the messages from both the applications instead of one. Both the application are using the same logging framework . I am registering the object as SingleCall and even though the objects are being registered at different ports the .Net remoting framework is not able to differentiate the messages in terms of port. Can anyone please help me with this problem. Please post ...Show All
SQL Server How do can I do this?
Hi, I have this table: colA ; colB 1) 1 2 2) 2 1 3) 2 6 4) 3 6 5) 6 3 6) 6 7 7) 7 6 and I need to select from it only the rows that do not have an opposite pair, i.e. only line (3) as it is 2 - 6 and there is no line 6 - 2, all the other lines have opposites, like line (1) 1 - 2 has line (2) 2 - 1 and line (4) has line (5), etc. any ideas thanks. Maybe something like this: declare @mock table (colA int, colB int) insert into @mock values (1, 2) insert into @mock values (2, 1) insert into @mock values (2, 6) insert into @mock values (3, 6) insert into @Mock values (6, 3) insert into @mock values (6, 7) insert into @mock values (7, 6) select * from @mock x ...Show All
