computerbill's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Stenciltest never fails
For some reason I can not make my stencil test fail. I would think that the code below would allways fail, but it does not. The object is always rendered. device.RenderState.StencilEnable = true ; device.RenderState.StencilFunction = Compare .Never; device.DrawUserPrimitives( PrimitiveType .TriangleList, 2, groundQuad); What am I missing here Setting the test to always or to never doesnt change a thing. It always passes. The actual code is more complex than the above, but that is what it all boils down to. The problem was fixed when i turned away from a hardware devic ...Show All
Visual Basic Add connection wizard fails with Access database
I have the RTM version installed. I am quite puzzled at this wizard. It works fine with SqlClient. But for Access databases, this wizard completely fails. In this wizard, I only have one option to do - setting the ConnectionString. I set it to Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\path\abc.mdb, which works fine in my code. But when I click OK, it complains: --------------------------- Microsoft Visual Studio --------------------------- Format of the initialization string does not conform to specification starting at index 0. --------------------------- OK --------------------------- And more, the Advanced button is dis ...Show All
Visual Studio Team System MSF for CMMI - InterationPlan.xls
This is a great resource. I am working with the Iteration Plan spreadsheet and have a couple of questions. 1) On the first worksheet what should be populated on the (number) column 2) On the Iteration Number worksheet shouldn't the total cost formula be D40+C33+D24 rather than D40+C33+C24 The total does not currently reflect the total cost for the FTE Quantity. Thanks Thanks for this. 1) The number is simply a place to put a name or number for the iteration e.g. 1, 2, 3, ... n, or One, Two, Three, or Jan, Feb, Mar - you get the idea. Call them Dave, Frank and Betsy if you like - as long as you c ...Show All
.NET Development .NET 2.0: Setting WebServiceBindingAttribute.Location leads to a NullReferenceException
Hello, I currently try the contract-first approach when making Web Services on the .NET 2.0. Trying to set the WebServiceBindingAttribute.Location to point on my hand-made wsdl file leads to a NullReferenceException. Does anybody have an idea about what's wrong here Here is the stacktrace: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object . Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: ...Show All
SQL Server Invalid Object Name 'OlapObjects'
We are using Microsoft Analysis Service with SP3 on Microsoft SQL Server. The Repository has been migrated to SQL server on the same machine. Recently for no reason, using Microsoft Analysis Manager, we would unable to log in to the repository. We have tried to do reinstallation of the Analysis Service component. After which when using local Analysis Manager to connect, it would show "Cannot connect to the repository. Analysis server: WEBTEST. Error: Not a valid account name or password." Local Repository Connection String then was: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Microsoft Analysis Services\B ...Show All
Visual Basic How do I execute a form "FORM.VB"?
How do I execute a form "FORM.VB" Michael yes great code dude iam a total newbie to thiss hehe :p is it also possible to open a forum but then not a new window well yes a new window but i can also click the other window now is there a way to open a new window and then disable the other window thanxs alot ...Show All
Visual Studio Tools for Office Unable to Delete Name Ranges in Excel
i'm creating Named ranges in excel with following code :- ObjExcel.Names.Add(Name:=RangeName, RefersToR1C1:=MyExcelRange) But when i give following code objexcel.Names(RangeName).Delete it's giving a compile time error. Whereas when i create macro, it gives me this line only to delete Named Ranges. ActiveWorkbook.Names("Range1").Delete Pls help. Finally this is working. I'm very very very thankful for providing your valuable comments and detailed explanation, this is very very helpful. Add my many Thanks to all other members who helped in replying this problem. ...Show All
Windows Forms shared SQLconnection accross all forms.
okay. I decided that making a connection to the database eachtime each forms opens up is a bad idea.... bad idea in the sense its slow.... is possible to share a sqlconnection from form to from by using a class. like this ---------------------------------------------- Public Class myFormlib Public Shared my_con As SqlClient.SqlConnection End Class then in any form m ...Show All
Visual C# Delay an application
Hi, I'm trying to delay an application for a few minutes (5 seconds for example) without using Threads. Does anyone knows how it can be done Thanks. I recently got a simulation project to do, and i have to delay a for loop which is running for 200 times, i have to delay the looping for the user to see the event for every seconds.. i included a call to the pause() procedure inside the for loop which delays it This really helps your pause() procedure, Thanks a lot ...Show All
Windows Forms Creating an uninstaller for your program.
I realize that this probably isn't the best forum, but I couldn't find anything more approporiate. Basically, I have no problems using a deployment project to package my app into a nice installer. However, most programs out there have an uninstaller shipped with them, which's very convinient when you want to delete your program (most windows users don't evne know what a Control Panel is, save Adding/Deleting programs). I searched all the help and I couldn't find anything about uninstallers. Can someone shine some light on those Also, the installer thing talks about being alble to modify/repair installation, but whenever I try to run my inst ...Show All
Visual Studio Express Editions csv/text file read into a database?
im sure this is something that is frequently asked, but as i couldnt find anything VB related on here for what i need i thought i would create a thread. being new to vb.net and sql ill be needing some guidance for all you experts out there! i'ev listed below what i would like to acheive: receive csv files and store in a set folder (maybe at later date change the delimiter) monitor a folder that files are being received in input / amend database when file is read in from folder csv file is deleted/moved after being successfully read into DB any help will be much appreciated! Hi Rob, To a ...Show All
Windows Forms How to wrap the checkbox/radiobutton label
Is there any way to wrap the long label of checkbox/radiobutton Thanks, Alan Hi, Isn't CheckBox and RadioButton controls are auto-wrapping already I mean, when the text of CheckBox/RadioButton control exceeded the client area, it wraps automatically. Regards, -chris ...Show All
Windows Forms disposing a control created at runtime
hi ... this is my first post,.. yah for me :) sorry for a long drawn out question. but from the replies I have seen here.. I think some one could help me :) my question is a 3part question 1) if I dispose a control(tabs, panels, forms,yadayda) that has controls a added to it. Does it dispose/destroy all those controls that where added& ...Show All
Visual Basic SetPrinter
I am trying to use SetPrinter to set a printer offline/pause/resume and its throwing an error 87 from the Marshal.GetLastWin32Error(). I am using the following declaration for SetPrinter <DllImport("WinSpool.drv", SetLastError:= True )> _ Public Function SetPrinter( ByVal hPrinter As Int64, ByVal Level As Long , _ ByRef buffer As Long , ByVal Command As Long ) As Boolean End Function and following call If Not SetPrinter(hPrinter, 0, 0, PRINTER_CONTROL_PAUSE) Then Throw New ApplicationException("Cannot pause printer " & Marshal.GetLastWin32Error()) End If to PAUSE the printer. Any suggestions ...Show All
.NET Development custom marshalling of System::Object* to VARIANT and back again in IJW assembly
I have two native C++ functions: One takes a VARIANT as its argument and the other returns one. I'm compiling these functions using the Managed C++ compiler to create an IJW assembly, and I want to provide real managed functions that take and return System::Object* instead. They would just marshal the arguments and call the VARIANT version to do the real work. I know that this must be possible without too much magic involved because the P/Invoke automatic marshaller can do this, but I'm unfortunately not using P/Invoke here... Actually... I finally got it to compile, but I still don't know if it's ...Show All
