cplusplus1's Q&A profile
.NET Development Page Load Firing Twice
I converted to 2.0 and now hte page load fires twice on my web sites. I understand there may be a place where the converted inserted code that loads the page twice, but I can't find it in the code behind. I'm using vb. Thanks. Hi, Maybe it can help but I have a similar issue and was because an event was fired on one of my controls (remember that events triggered on the page will execute the PageLoad before executing the event handler). You can check it puting a breakpoint and querying the IsPostBack property. Otherwise explain a little more your architecture or page contents. Regards ...Show All
.NET Development Modifying Access query from .NET
We have application where we need to be able to update the access 2000 queries at startup of applications. How do I do that programatically I can do Drop Procedure and it does drop the query in Access but Create Procedure doesn't work. Here is the code I am using. Here is the where I call the CreateQuey sub. m_ModifyQuery.Sqltxt = "SELECT CaseManagers.[First Name], CaseManagers.[Last Name] FROM CaseManagers" m_ModifyQuery.CreateQuery() Here is the CreateQuery sub. Public Sub CreateQuery() Dim cmdUpdate As New OleDbCommand cmdUpdate.Connection = clsDB.BuildConnection cmdUpdate.CommandType = CommandType.Text cmdUpdate.CommandText = "Create Procedure &q ...Show All
Windows Search Technologies Desktop Search 3 Beta 2 doesn't remember window size and position
Windows Desktop Search 3 beta 2 does not seem to remember window position size and column settings. In some cases it will remember and then in others it just defaults to the original size and position. Hi all, I have completely uninstalled all previous versions and installed the latest one ~ twice. Every other program (including windows explorer windows) do maintain their window size and position. So far the latest version has caused the following annoyances: 1 - Still doesn't remember window size/position. 2 - Occasional crashes (Windows Explorer restarts) when I click on the Search Box in the Task Bar. 3 - Rather slow performance. I am not sure if this is due to me indexing more files ...Show All
SQL Server Poor performance: SQL Server 2000 & Analysis Services with 20% aggregations
I would really appreaciate some advice: We use SQL 2000 and want to move new hardware but we're experiecing performance problems on the new hardware compared to the old hardware. Old hardware spec: Entry level intel server, 64b Pentium, 4GB RAM, 1TB Raid 5 SATA , 64 bit Windows 2003 New hardware: HP Intel Zeon Server 3.4 GhZ * 2, 64bit Windows 2003, 6GB RAM, Fibre Optic SAN - 1TG Raid 5 Software on both the same: SQL Server 2000, sp4, 32bit Data volumes: 15GB DB, 12Cubes, 4virtual, 20dimensions-biggest leave member count of 350000 Problem: Huge performance difference between the entry level server and the new hardware. Huge improvement in performance on the new hardware when populating the DB and running the DTS packages, ...Show All
Architecture Question about UI layer
I'm designing a very data oriented application where there will only be two physical tiers: the user's machine (with maybe up to 50 users) and a database server. Most of our customers will be using SQL 2005, but some have said they would like to use their existing Oracle db. Therefore, the UI was going to consist of two layers: a Windows.Forms layer and then a .dll containing classes that will marshal data to and fro the db, and take care of any business logic. By having the objects in the .dll implement interfaces, I can basically swap in different .dlls for different backend databases. The problem is this: our user interface is HIGHLY interactive and customizeable. For example, the Customer List form features your basic databound grid ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ... VB.net 3D Level editor for XNA .. Tridex .... Beta 1
Hi, I have good news for VB.NET developers any ways, I have used XNA 1.0 extensively and have converted a 3D lever editor tool I am calling Leveler 3D to XNA , here is the demo of the old direct x version: http://www.tridexconsultants.co.uk/pages/DirectxLevler3D.htm Details: 1. Drag drop Xna files (Textures and Meshes) 2 Extensive Maths classes, trigonometry, Vector, Matrix, Planes, Spheres, Bounding etc. (Many More) 3. Extensive animation tools 4. Fast load save levels (XNA is brilliant at compressing X files!!!! 5 Fully Serialized scenes 6.Mouse click selection of games objects 7. Animation (Curves, Circle, Path, Waypoints, Interpolators etc... 8. Lighting (Curr ...Show All
Visual Studio 2008 (Pre-release) Explicitly requesting security tokens from a STS
Hello. I’m trying to write some code to explicitly request a SAML security token from a STS. I’ve tried unsuccessfully the following 3 approaches: Approach #1 1. Create and set a IssuedSecurityTokenParameters object 2. Create a SecurityTokenRequirement from the IssueSecurityTokenParameters 3. Create and set a ClientCredentials object 4. Get a token manager from the ClientCredentials 5. Get a token provider from the token manager, using the SecurityTokenRequirement as parameter · Problem: there doesn’t seems to be a public way to convert from a IssueSecurityTokenParameters to a SecurityTokenRequirement Approach #2 1. C ...Show All
SQL Server Normalize data
Hi, I have a table like this: Pk_QuestionID Question Choice1 Choice2 Choice3 Choice4 correctChoice 1 XYZ a b C d 3 This has to be transferred to a more normalized schema like this Pk_QuestionID Question 1 XYZ And Pk_OptionID Fk_QuestionID Choice_Description isCorrect 1 1 a 0 2 1 b 0 3 1 c 1 4 1 d 0 We can use either the unpivot-merge or a SQL Union ALL statement to achieve ...Show All
Visual Basic Search using tableadapter.fill returns: There is no row at position -1. (Index out of Range)
Hi, I am working on a form (details) and I need my form to allow to search on some char fields. I have a button next to the field users can search. The button calls a pop-up form to enter the string to search. ItemsTableAdapter is the table adapter used for the form. I have 1863 records in the Items table. My goal is to show only the records matching the string using the same form. I have modified the DataSet to add a query using a parameter: SELECT No, Type, ..... Interest3 FROM items where nm_latin like @srch_nm_latin order by nm_latin This code is executed when I return from the pop-up. The string contain a string. Example: "thing%" If (String.IsNullOrEmpty(Me.Recherche.Text) = False) Then Dim rech_str As String = Me.Recherche.Tex ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Warm Up Contest Is Up
Just letting everyone know that DreamBuildPlay's first warmup contest is live. I have to agree with you Oasis -- it's crazy for Microsoft to restrict this to those over 18. It won't affect me (I'm well over twice that age), but I think they should be trying to promote computer programming by high school (and even younger) students. I think the old Atari game Caverns of Mars was written by a high school student, and Atari published that. I could understand needing a minor's parents or guardians to sign a permission or waiver of some sort, but precluding them completely seems unfair and unproductive. ...Show All
Visual Studio Tools for Office Save MailItem as MSG file
Hi, How can I save the an Outlook.MailItem as .MSG file on Hard Disk Andy Ho Hi, I saved a mail message in .msg format using olMsg. Its works fine in my machine. When I used the same in another machine, it saved as note (appointment or notes) item. What may be the reason I'm using Redemption. ...Show All
Audio and Video Development XPath - selecting an element by index
Seemingly this should be a valid XPath select for a <cue> or <par> -- why does it's inclusion cause iHDSim to report an "Unknown Exception" //div[@id=$chapter]/button[1] This should identify a specific <div> (using an XPathVariable set in script), and get the first button it contains. In fact it seems that the bracketed subscript notation doesn't work at all... Thanks Josh, that's very helpful to know. I suppose the best workaround then would be to fire an event to script which looks up the <div>, then loops through the children using element.childNodes . When the first element with .nodeName="button" is found, set an XPathVariable containing the id of the butt ...Show All
Visual Studio 2008 (Pre-release) Animating a ListBox Scrolling Text
I have a small project i'm working on thats Similar to the RSS Feeder in the Vista SideBar...I havent done alot of Animation so i'm fairly new to it in general.So the Question is where can i get a good example for Scrolling the RSS Feeds Upon the ListBox being Populated As of right now my project just uses a Veritcal ScrollBar,i want it to Auto Scroll on its own as the Feeds are Feed into the project,and have a Fading appearance,as the Feeds reach the top of the ListBox,along with making the Articals Clickable..It lists the URL in the Feeds but as of right now i cant Navigate to that Particular RSS Feed.. here you were animating the entire li ...Show All
Smart Device Development edit and continue supported - vb2005?
Hi, I've been trying to find the answer to this but can't find a definitive answer: Can I use edit and continue in my VB2005 CF 2.0 project I can't seem to now but tools\options isn't telling me I can't ...Show All
Visual Studio Express Editions Where do I start, Classic-C++ or .NET style?
Hey there everybody. I wanted to learn Visual C++, completely in and out. But now I can't decide where to start. Do I start learning : i) The Classic style, Visual C++ 6.0 using the windows.h header an' all, OR ii) Do I start with the .NET Eventually, I wanna learn both. But can anyone tell me which would be the better way to start I know the generic C++ completely (I've worked on Turbo-C++, which means I don't know the windows core libraries). I have several questions, I'll just organize them into a list : Note : I refer to programs written in C++ using the windows.h header as Classic-style C++, and those C++ programs using .NET as C++ .NET, or simply .NET 1) Where do I start, Classic or .NET 2) Which is of higher prior ...Show All
