proecco's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. How do you implement Fog into a scene?
Hi All, I have finally got some 3D up and running so things are whizzing about (which is always fun to watch... for a while, yeah I know, small things...) and I was wondering if anyone had any examples of putting fog into a scene. I tried last night and succeeded in turning all my meshes to white, not matter how far away they were from the camera. No matter what I did to the values, nothing changed. As always, any help is greatly appreciated. Cheers vidalsasoon wrote: code please Here is what I had as far as I can remember... I tend not to leave code that doesn't work in a project, it becomes a distraction... in my Draw function... graphics.GraphicsDevice.RenderState.FogEnable = true ; graphics.G ...Show All
.NET Development Help trying to Insert to Access DB with error No value given for one or more required parameters.
I am trying to delete all the quotes from a csv file and then grabbing each line as a row in Access' database. Right now I am stuck after hours of research about the error: No value given for one or more required parameters. I have tried using @companyName and also the question mark. Here is the code that give me the error: Public Sub InsertLine(ByRef line As String()) Dim dbname = "dbase1.mdb" Dim dbpath = Server.MapPath("access_db") Dim commandStr As String, dbcomm As OleDbCommand Dim conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ dbpath & "\" & dbname) conn.Open() commandStr = "INSERT INTO [Contactsdb] ([company ...Show All
SQL Server Find/Replace Not Working in Management Console
I have the 2005 Standard Edition of Sql Server, and the managment console tonight stopped responding to quick find/replace requests either via menu or (ctrl+f, ctrl+h). The UI bars above just grey out a bit and nothing happens. I saw a MSFT dev for VB (visual studio) respond with a fix that was to run "devenv.exe /resetsettings" that restored the defaults and fixed the problem for those affected. Anyone know how to do that for management studio, since going to customize (restore) each of the individual bars didn't do it. Thanks in advance, Greg I found it thanks to your hint though not quite in the way you describe. In fact I found a way of making the Find dialogue pop up center ...Show All
Visual C++ filebuf::sh_none - compiler error
Hello , I am tring to compile code that was previosly built with v.Studio 6.0 with v.Studio.net 2005. pFileStream->open(buf,ios::app,filebuf::sh_none); I am getting the following error: Error 2 error C2039: 'sh_none' : is not a member of 'std::basic_filebuf<_Elem,_Traits>' e:\varicom\version 6.0\smpp_service\datawriter.cpp 33 sh_none is used for exclusive access to the buffer, can I rewrite this line maybe without sh_none thanks in advance I think in case of Windows OS you should try this: #include <share.h> . . . pFileStream->open(buf, ios::app, _SH_DENYNO ); I hope this helps. ...Show All
.NET Development Use XML as data source in VB
hi! I have a large collection of softwares, so i decided to catalog them. I have created the catalog in XML, is there anyway in which i would be able to create a program in VB 6 that would enable me to search through the contents of the catalog. If yes please explain. PS I am just 15 so explain in detail. any tutorial or reference sites are welcomed. Thank you Raveesh With VB 6 you can use Microsoft MSXML to parse XML. IE 6 installs MSXML 3 which already supports SAX parsing, DOM, XPath and XSLT. Other versions of MSXML are available for download . The MSXML SDK is online here . It has both introductory/tutorial like sections and reference sections where you should find anything you need, one secti ...Show All
Visual Studio Tools for Office Office 2003 Calander Options
Hi All, I have an issue using Office Outlook 2003 on Vista. Everytime I send an email with calander/meeting attack, instead of only applying the schedule on the calander for 1 single day, it will apply itself on a daily basis. Tried to send out email with a calander schedule attach and same thing happened, instead of applying for 1 single day on the schedule it will apply on a daily basis aswell. Any idea on the configuration which may have caused this to occured Hi Nick These forums are dedicated to answering questions from developers, programming with Microsoft software. End-user support is in the newsgroups (as listed in the "Please Read First" message at the top of this forum"). You can find support for ...Show All
Visual Basic Type conversion problem
I'm using the .NET framework v1.1 and dominantly C#, but am having a problem with some VB code. First of all, I have a type: public class Field { object _fieldValue; private object FieldValue { get { return _fieldValue; } set { _fieldValue = value; } } public static implicit operator Field(string fromRawString) { Field untypedField = new Field(); untypedField.FieldValue = fromRawString; return untypedField; } } (Compiled using "csc /target:library MyType.cs") I then write a program to use this type: public class Klass { public static void Main() { string s = "Hello World"; Field f = s; } } (Compiled using "csc /r:MyType.dll MyProg.cs") I then write a similar program to use thi ...Show All
.NET Development Cryptic exception...A call to SSPI failed...
Hi All, Been working this issue for a few days now, here's the deal. I have a bit of VB.NET code that uses an SslStream object to communicate with a Java application over SSL. The Java application uses JSSE to facilitate SSL. The VB.NET SslStream code works fine on any machine thus far except for one. On this particular machine, when the VB.NET code calls the AuthenticateAsClient method, the following exception is raised: System.Security.Authentication.AuthenticationException: {"A call to SSPI failed, see inner exception."} Data: {System.Collections.ListDictionaryInternal} HelpLink: Nothing InnerException: {"Invalid flags specified"} Message: "A call to SSPI failed, see inner exception." Source: "Sy ...Show All
Visual C++ CryptoAPI and FIPS 140-2
Does anyone know with authority if the CryptoAPI is 140-2 certified Example, if I create an application that uses Microsoft's CryptoAPI, i.e. key exchange(Diffe/Hellman), data encryption, etc, will my application be 140-2 certified, validated or compliate I have read some blogs stating CryptoAPI is 140-2 certified but when I go to the NITS database I do not see it as a listed certification, at least a 140-2 certification. As a note: I see that the FIPS.SYS is 140-2 certified, but only for Window Server 2003 and the last certification for the CryptoAPI, number 103 from the NITS database, is for 140-1. Thanks Sorry if this gets double posted, new to these 'forums'. I asked around ...Show All
Visual C++ class destructor not operated.
Hello, I have a question about destructor in a class. In the below code I was expecting the destructor part of the code to be executed and the message printed out. However, I only see the constructor message. This is the output: "We're in the constructor with arguments Press any key to continue . . ." Why is the destructor message not printed #include <iostream> using namespace std; class Point { public : Point( float f_x = 1.0, float f_y = 1.0, float f_z = 1.0); ~Point(); private : float x, y, z; protected : }; Point::Point( float f_x, float f_y, float f_z) { cout << "We're in the constructor with arguments" << endl; } ...Show All
Visual Basic in vb.net 2005 i want to select all my commented text and delete them
in vb.net 2005 i want to select all my commented text and delete them is there any short cut key or procedure to slect all my commented text in the program and delete them since i have many number of commented text in my program *gee* just think of it: is there any possibility to multi-select text at all If you hve the answer for this question, answer this question: can you multi-select in order to delete something Regards ...Show All
SQL Server Default data/log path
Hi, Is there a SQL stored procedure or command to retrieve the server's default path for data and transaction log files Thanks. Part of the Profiler trace created by opening the New Database dialog: declare @RegPathParams sysname declare @Arg sysname declare @Param sysname declare @MasterPath nvarchar ( 512 ) declare @LogPath nvarchar ( 512 ) declare @ErrorLogPath nvarchar ( 512 ) declare @n int select @n = 0 select @RegPathParams = N 'Software\Microsoft\MSSQLServer\MSSQLServer' + '\Parameters' select @Param = 'dummy' while (not @Param is null) begin select @Param =null select @Arg = 'SqlArg' + convert ( nvarchar , @n ) exec master . dbo . xp_insta ...Show All
Visual Studio Team System how can i remove files from my drive
and have TFS be aware for instance, i synchronize the entire tree in TFS. later i decide that i only need some of it and want to free disk space. how do i remove those unwanted files from my drive and have TFS be aware when i later decide to get those files again remember, directly deleting files on the local HDD defeats the purpose of TFS. TFS does not know they were deleted so it thinks you still have those files. attempting to do a "get latest" only shows a dialog telling you that your files are up to date. thanks, scott I'm hoping Brian Harry will blog our feature roadmap in the near future. For now, let's just say we are very very familiar with Perforce. ...Show All
SQL Server Performance problem: SSAS 2005 + ProClarity #2 (Update)
Hi, I have updated my earlier post on performance (Thomas was helping me), had some updates, thoughts and queries. Please do check that. here is the link: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=929316&SiteID=1 apologies for this post, but I am not sure if the older ones that get updated are seen. if you want me to open another post for it , please do tell me. thanks a lot. Regards ...Show All
SQL Server fails using LoadFromSqlServer
hi everyone, I'm trying to load a dtsx from my front-end app but says the following: pkg = app.LoadFromSqlServer(ActObject.packageName, "SRVDESASQL2005" , "usrSSIS" , "ninot" , Nothing ) ActObject.packageName = "\SSISdev" usrSSIS is a sql user which own enough permissions over MSDB Try returns me: "Specified package could not have been loaded in Sql Server" Any ideas I'm stuck. TIA ok, works I set this path:"Maintenance Plans\Tru_DevolucionesRecibidas" but another error raises (there is another post related with) Acquire Connection. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=646743&SiteID=1 ...Show All
