Jan Lonsetteig's Q&A profile
SQL Server Collation Conflict Error 368 (I think)
We just upgraded an instance of SQL Server 2000 to SQL Server 2005. When using our application to login, we are receiving an error 368, which refers to a collation conflict. Has anyone seen this I'm moving your thread to the database engine forum, where it may get more attention. Paul ...Show All
Visual C# HELP PLEASE - The type or namespace name'Office' does not exist in the namespace 'Microsoft'
Hi, I have just followed through the example on the Microsoft web site at url: http://support.microsoft.com/ kbid=316384 The code has not been altered from the example. I now get the Error: The type or namespace name'Office' does not exist in the namespace 'Microsoft' I loaded the Microsoft Word Object Library from the COM tab the entry on my machine is Microsoft Word 9.0 Object library. This successfully transfers the Interop.Office.dll, Interop.VBIDE.dll, Interop.VBRUN.dll and Interop.Word.dll files to the new project. However the line using Word = Microsoft.Office.Interop.Word; returns the following error. I tried ...Show All
Windows Forms DataGridView Master-Detail (Parent-Child) AddNew
Gents - I have a DataSet with a Parent / Child relation. On Form1 I have a DGV that is bound to the details (child) portion of the relation (tblInventoryTransBindingSource). I have a BindingNavigator bound to the Parent binding source (tblPurchaseOrdersBindingSource). On the form I also have a DateTimePicker for date control bound to tblPurchaseOrdersBindingSource - OrderDate. In order to create a default value of today on the DateTimePicker control, I have set the BindingNavigator's "AddNewItem" to NONE to handle this programmatically. I have the following code: <code> Private Sub POAddNewItem_Click(ByVal s ...Show All
.NET Development .Net Framework, compiled or translated?
Sorry but I have this basic question, is about plataform .NET Framework, I'd like to know if the final result is a machine compiled code compatible with .NET FW or is a .NET FW code to be translated in runtime as with Java . Too, I'd like to know about the same but with C# and Basic. We know that pure C++ code is optimized machine code, but how works C# or Basic about this . Thanks. Hi, The .NET compilers convert the code to MSIL - Microsoft Intermediate Language which is something similar to Java bytecodes. This is then converted to machine language by the JIT Compiler at runtime. Read more here . You can ...Show All
Smart Device Development How to create Windows Mobile 5.0 Pocket PC application using VS 2005
Hi, I want to create a Windows Mobile 5.0 application for Pocket PC using C# in Visual Studio .NET 2005. When opening VS 2005, I am not getting option to create Windows Mobile 5.0 Pocket PC application. The available options are those to create applications for Pocket PC 2003, Smartphone 2003 as well as Windows CE 5.0 only. I installed- Microsoft Visual Studio 2005 Team Suit edition Beta-2, Windows Mobile 5.0 Pocket PC SDK, Microsoft .NET Framework 2.0 Beta 2, Microsoft .NET Compact Framework 2.0 Beta 2, Microsoft SQL Server 2005 Mobile Beta 3, &nb ...Show All
Visual Studio Team System Branching and Merging: Best practice
Hello, I'm trying to design a new directory structure for a large project which is migrating from using Visual SourceSafe to Microsoft Team System for Source Control. I guess my problem is the following: I'm used to CVS, and to how CVS manages branches and merges. As to what I have understood, the only way of creating branches is to select "branch" in the Team System Explorer and to create a new branch directory. That would be fine with me, but now, the problem arises: How can I accomplish that my new branch is downloaded into the same directory as the trunk (main branch) This is needed most of the time, as it is not possible ...Show All
Visual C++ using ATL macro to change LPSTR to LPCWSTR
Hello, I'm making a 3D game and realized I would have to face many problems and maybe trying to "reinvent the wheel" on my own, if I wanted to implement SETTINGS -(for graphics mode) in my game. So I am going for DXUT framework or engine by Dx team or what it is called to simplify my life. But I am facing some problems, because it is using UNICODE and I need to change LPSTR to LPCWSTR so I use macro A2W(lpstr) and include this for it #include <AtlBase.h> #include <AtlConv.h> But then I have a compile error: fatal error C1189:#error : Need to include strsafe.h after tchar.h bec ...Show All
.NET Development Creating a REAL Object
Hi all, I've a question on Object creation. object obj = new object(); Will there be any sort of heap memory allocation for the above statment If yes what will be the contents of the object Thanks, Suresh. The answer is yes. This is the IL for the instruction: .entrypoint .maxstack 8 L_0000: newobj instance void object :: .ctor () newobj creates the object on the garbage collected heap. ...Show All
Visual C++ recompiling legacy C++ 5.0 files on VB C++ Express
I am new at this, so excuse my "dumb question" I have some old legacy files compiled using MS-Visual C++ 5.0 Project settings, and MS-Visual C++ 5.0 Workspace settings. When i try compiling with express i get errors that has to with "windows.h" file. What do i do Visual C++ Express does not include the Platform SDK: you need to install that separately. This page explains how to do it: http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx ...Show All
SQL Server Dynamic age of customer based on transactions being viewed
Hi I am after some ideas on how to deal with customer ages and dynamically linking them to transactions. For example if I purchased something 2 years ago I would be obviously 2 years younger then now but if I have age as a standard dimension all of my purchases would be tied to my current age, assuming age is updated and overwritten. The ideas I have are a slow changing dimension which means that I would have a new entry per customer's birthdate or somehow tie the age calculation to the transaction date. The reason I want this is that the purchasing decisions of say a 20 year old are different than a 25 year old for us. Anyone dealt with ...Show All
Visual Studio Team System WebTest Broken in Experimental Hive with Team Explorer
It seems that installing the latest version of Team Explorer (TFS BETA 3) will break WebTests - you cannot run them anymore. Now, I haven't gone through all the documentation to figure out whether this is a known issue, but here is a way to reproduce it. It was reproduced on 2 machines. This is the installation order: 1) Install VS Team System RC1. 2) Install VS SDK (Sept - latest) 3) Install Team Explorer (but don't connect to any TFS). Now, when I try to run webtests in the experiemental hive, it throws an exception with a dialog stating: "The test could not be run because of the following exception: Exception has been thrown b ...Show All
.NET Development SCRIPTING LANGUAGE
Hiii This is Malini,new mwmber in this group. I am very much impressed by the queries and the solution for them I have gone through few links suggested through these mails Please suggest me a url For JAVA SCRIPT and VB SCRIPT. thnq. keep smiling Malini Also check out the MSDN Scripting center at http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnanchor/html/scriptinga.asp That is loaded with excellent sample scripts. Then there are many excellent books out there, and some not so excellent ones. Try searching one of teh online bookstores ( Amazon.com, BN.com and use the recomendations to help guide you to a book ...Show All
Visual C++ Need to GetDriveType(), BUT...
I have a very large VC++ .NET (2003) program I've spent months writing. I need to use the GetDriveType() function, which seems to require #including windows.h. However, whenever I #include windows.h, it breaks hundreds of other commands in my code. I'm able to use System::IO::Directory::GetLogicalDrives(), but GetDriveType() isn't in that class. Can anybody suggest a way to get around this The DriveInfo class in .Net 2.0 may be what you are looking for. The DriveType property tells you what kind of drive (network, disk, etc) it is. http://ms ...Show All
.NET Development How to fill a textbox in a website application in VS 2005
Hi, How can i fill a textbox with a tablefield that’s in a sql server. I only can explain in Delphi pascal it looks like this: Begin Edit1.Text := adoquery1.fieldbyname('a field').asstring; end; Thanks a lot for the help. I 'am really a VS noob but willing to try. Grtz Dipsy. Well, first you need a datasource, then you will have a table you can access. edit1.Text = myTable.Rows[0]["columnname"].ToString(); Something like that. You can reference columns by index or name. ...Show All
Visual Studio Team System Reporting Services Error in Project Portal in TFS RC
After creating a new project in TFS RC and doing a Show Project Portal..., I get the error in the IE web page: Reporting Services Error This report requires a default or user-defined value for the report parameter 'IterationParam'. To run or subscribe to this report, you must provide a parameter value. (rsReportParameterValueNotSet) Get Online Help This is in the Remaining Work section of the report. I can successfully run the Remaining Work report in TFS explorer. Anyone know what this is about The problem is probably with the URL used from the portal to access the report. ...Show All
