JP Beaulieu's Q&A profile
Visual Basic .Net certification
Do you know any web site for .net or SQL server certification practice. I m beginner and I have no idea how they look like. Also if any web site to prepare for them I appreciate your help. (sorry I didn t know where to put my question) There are tons of web sites out there. For eLearning and practice exams, try www.selftestsoftware.com . If you just want the paper and not the knowledge, try www.testking.com . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. buf.Write(byte[] buffer): Can't convert to byte[]
Hi. I'm writing a code that houses a sky class for showing a skycube. The skyV is a PositionTextured data type and PositionTextured struct is in a DirectX.Direct3D.CustomVertex namespace in the Managed DirectX/.net 2.0. The problem is, I can't write the vertex data to the GraphicsBuffer which is renamed from GraphicsStream in MDX/.net 1.1. Here's the code: Questions about MDX 2.0 should be asked in the beta newsgroups. See http://msdn.com/directx/beta for more information. But to give you a starting point you should take a look at the new generic GraphicsBuffer class and the generic Lock method. PS: ...Show All
Microsoft ISV Community Center Forums last Modified date in Excel spreadsheet
Hello Can anyone help me read details about a current workbook. Bascally everytime an excel spreadsheet is opened I want to saved the last modified date to say Sheet1.range("A1") Thank you in advance. Hey man, The Workbook has a property named 'BuiltinDocumentProperties' that you can use to get pieces of information about the document. One of these is the Last Save Time Cells(1, 1) = ActiveWorkbook.BuiltinDocumentProperties(12) 12 is the last saved time property. This will return an error is the workbook hasn't been saved. ...Show All
SQL Server Migrating SqlServer2000->2005 and classic ADO: problem with AddNew to recordset, related to adFldUnknownUpdatable attribute?
The application is running ADO (MDAC) version 2.81.1117.0. The application gets an recordset created by SQLServer by an select statement. In this case the recordset is empty. The application adds a record to the recordset by AddNew(). Works fine. But when assigning the first field (smalldatetime in database) I get ADO error -2147217887. I have inspected the recordset and I found a difference between the working one from SQLServer2000 and the new one from SQLServer2005: The Attributes item for the fields in the recordset has the flag adFldUnknownUpdatable set in the working SQL2000 version but is not set from SQL2005. The database ...Show All
Visual Basic How can i use nullable (of t) to handle nulls in DateTime
Hi, As we all know the Datetime in vb.net 2003 cannot handle nulls. I see that there a system.Nullable (of t) How can I make use of this in order to handle nulls in datatime. An example will be appreciated Thanks a lot.That is exactly the kind of thing i was looking for. I will use it as a base to create generic functions. I wish there were links or books on the matter. Thanks again for taking time to answer my question ...Show All
SQL Server SQL RS Subscription Status Message
Hi, I received the message "Failure sending mail: Cannot access a closed Stream" when I ran my standard subscription. Can you tell me what it means and how to fix it Thx. This may be a bug in RS 2K (should not be in RS2K5). Some potential workarounds: Set <MaxQueueThreads> to 1 in the <Service> section of the RSReportServer.config file. If report is a snapshot execution, make sure there is a scedule associated with it. If the report is cached, see if not caching the report makes a difference. ...Show All
Windows Forms Hosting WinForm Controls in VB6
I want to know if anyone has ever successfully hosted a .NET WinForm control in a Visual Basic 5.0/6.0 Form I have seen code posted that does register the control as an ActiveX control via adding a few extra registry keys, and as a result these controls are available in the Visual Studio ActiveX Control Test Container. However, these controls are&nbs ...Show All
SQL Server Control flow drawing bug
Minor issue here. But I just wanted to point it out. I think this is how to reproduce it. If I disable a dataflow task and run the package, after it is complete, but yet still in the debugger, reenable the dataflow task. When I close the debugger, the dataflow task is still shaded as if it were disabled, but it will execute on the next run. Close the package and re-open it and the work flow task is drawn correctly. ...Show All
.NET Development Having problems running a web service in Visual Studio 2005
I created a web service following the steps laid out in http://msdn2.microsoft.com/en-us/library/87h5xz7x.aspx I have encountered several problems. 1. When I open the project I get the following. "The site http://localhost /BriConvert1 has not been configured for use with ASP.NET 2.0. Microsoft Visual Studio has been designed for use with ASP.NET 2.0. If not configured some features may make incorrect assumptions, and pages designed with the tool may not render correctly. - Would you like the site to be configured now" Click Yes and I get the following. "Configuring website http://localhost/BriConvert1 to ASP ...Show All
Visual Basic Refactor! - cannot get it to work
I just loaded Refactor on my system that has VS 2005 Pro on it. After starting VS2005 I edited a few projects. I placed the cursor on a line and pressed Ctrl+~ , but nothing happened. I even created a new project, added some code, and pressed Ctrl+~ ...again nothing. I have even rebooted (when all else fails). Still cannot get it to work. Any ideas would be appreciated. Thanks, Tom What is refactor If it's this: http://www.knowdotnet.com/articles/netrefactorproducthome.html then you need to ask them. ...Show All
Visual Studio How to create file associates in the Solution Explorer?
For example when you have a file of type Default.aspx and Default.cs it would make a tree branch type of architecture. I'd like to add a .js file for example and have that file put into the branch that the solution explorer creates for the aspx file and it's code behind. Thanks, Hello Darren, Assuming you control the addition of that file to the project, getting the EnvDTE.ProjectItem for the parent node and adding the child node to it's EnvDTE.ProjectItems to it should do that. Rusty ...Show All
Visual Studio MSBuild Copy Task works intermittently
For some unknown reason, the Copy Task sometimes works, and sometimes doesn't. Does this happen to anyone else I'm running from the command prompt. Thanks for the tip, I'll keep it in mind for my test assemblies. For the recursive copy of my output, I'll stick with XCopy; Its simple and easily understood by others. ...Show All
Visual Studio Team System Is it possible to have multiple configuration in Single FXCop project file.
Hi, In our regular Visual Studio project, we can have multiple configurations like Debug, Release, Albha, Final Release. The same way, is it possible to have multiple configurations in FxCop Project, like Begining of the Development time - I want to include only subset of the rules, even in Naming rules, include only subset of naming rules. At my 2nd Stage of development, I want to use different set of rules to be included. I could do this now by manually selecting and unselecting those rules check box. Is there a way to configure automatically If not, It could be an additional feature to FxCop tool Thanks Charles For more ...Show All
SQL Server Parsing Data Import?
I am trying to import a large amount of data from an Oracle DB into a SQL Server 2005 DB. Most tables have >5M records with one having >40M records. Because of the read-only segment on the Oracle DB when I get to >1M records Oracle crashes or stops the transfer because the segment has filled. How can I bring over 1M records at a time I would like to bring over the first 1M records, then 2M-2.9M, then 3M - 3.9 M, etc... Thank you, db55 CVF ...Show All
Visual Studio VC 2005 does not copy files when publishing a web site
I have recently converted a .net 1.1 web application to .net 2.0. The conversion went very well. I was very pleased with the wizard. The application runs well from inside the development environment. Problem is when I try and publish the web site... no files ever get copied to the output directory. Any ideas would be appreciated Bill I am experiencing this same problem. I have two projects in this solution one will publish to the server through a mapped drive and the second indicates it has published with no files being copied. There is only one web.config file. In the site. There are no errors/warnin ...Show All
