ruk_walled's Q&A profile
Visual Basic R
I'm sure this is possible to do. I am working with a UTF8 encoded file. When the file is opened in VB and loaded into a text box, the line breaks are converted to squares. Each line break is represented by two sqaures. I have been using code to replace bad chars, but the problem with it is that it replaces a single instance of the square with a LB. So I am getting too many LB's. How can I replace this with a single line break TIA So just to clarify my problem. If in the file I have... A line of text with two line breaks It is represented by four squares. I need to replace every two square chars with a LB. My code replaces every single one with a LB. ...Show All
SQL Server Calculated/derived measures
Hello again. I'm wondering if it's possible to add some form of calculated field to my fact table. Scenario... I have a fact table that records customer account balances a the end of each day. As this is a bank we're talking about, some of the balances are in credit & some overdrawn. Since the AccountBalance field aggregates by default to sum, if for example I wish to view balances by product I get the NET balances (i.e. all debit & credit balances summed). This is OK, however obviously my people will want to be able to split these in to Credit Balances Product a 100 b 100 c 100 Debit Balances Product a -50 b -50 c -50 as opposed to the current situation where I get Balances Pro ...Show All
Software Development for Windows Vista help on Pinnacle PCTV Stereo install for vista
Hello! Sorry about so many questions by me, but i just installed vista rc 2 today and i have lots of questions :) I want to know if it will be possible to install and use my pinnacle pctv stereo tv tuner card with vista do i need special drivers where can i find them/ Thanks! I have installed the Windows XP Driver for my Pinnacle PCTV Stereo under Windows Vista RC1, but when you can't see the picture on live TV, and when you're not watching it you get the current channel's sound through the line-in even when PCTV Vision is not up. If you want to install it anyway, insert the original PCTV Stereo installation disk that came with your card, and instead of letting it autoplay, go to My Computer, browse to your CD/DVD drive and ...Show All
SQL Server NULL funkiness!?
Iterating a WHILE loop, the following statement is executed repeatedly: SELECT @groupContractId = contract_id FROM Import.dbo.GSGPAncP g WHERE g.group = @emp_group_code AND g.sub= @emp_subgroup AND g.plan= @emp_plan If the statement returns NULL, @groupContractId ought to be set to NULL, correct SQL Server is (unfortunately) running in 65 compat mode, if it matters ... Instead, what I'm seeing, unexpectedly, is that variable retaining its value from the last iteration when the statement returns NULL. Have I gone crazy Is my brain cramping Should I lay off the coffee Should I drink MORE coffee Like I said, I expected that if the statement returned nothin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Coding4Fun: Beginning Game Development Help
I am new to programing and I am a little confused with one part of the tutorial (towards the bottom). The instructions say: "Since the timer class is contained in a different namespace we are going to add a using statement so we can use the FrameworkTimer without having to write “Microsoft.Samples.DirectX.UtilityToolkit.FrameworkTimer” every time. At the top of the class in the using directives region add the following line of code: Visual C# Microsoft.Samples.DirectX.UtilityToolkit;" I am having trouble with what I put in italics. I have no idea where to put the code. Do I put it in the dxmutmisc.cs class ( ), or my actual "GameEngine.cs" class ( ), or is it something that was changed ...Show All
Smart Device Development hook Keyboard , to AlexY and any helper
Hi, Could anybody tell me please how to use Alex Yakhnin hookkeys class. http://blog.opennetcf.org/ayakhnin/PermaLink.aspx guid=84b95802-76d7-499c-b266-e2251ab15706 i want my application to detect any key pressed in the keyboard, even if the application was in the background. thanks in advance. Dear AlexY, thanks for replying, please tell me how to use your code to capture pressed keyboard key and enter them into textbox for example. for example if the "a" key is pressed then TextBox1 becomes = "a" and so on, and of course i'd like this to work wether my application has the focus or it is in the background. I appreciate your help very much, thanks in advance, ...Show All
Software Development for Windows Vista WF Designer - How to display Activity Full Name
Hi Dear, I would like to take a print screen of my WF Design to document my work but when the activity name is long then the WF Designer cuts the end of the name and replace it with dots (e.g., receiveCustomerOrder is displayed as receiveCustomer...). It would be nice if the WF designer allows adjusting the size of the Activity shapes (just like controls in a WinForm) but unfortunatly it does not. The shape size is fixed. Could you please advice on how to get the WF designer to display the Activity Full Name How can we resize the Activity shape (I hope that I wouldn't need custom activities for such simple feature) Thanks Karim This feature (ability to resize/auto-adjust Activity shape) ...Show All
SQL Server temp table naming
I have a procedure that creates temp tables. I made the temp tables local - using # instead of ## - but I still get a 'table exists' error, when I run it from 2 qa sessions at the same time. I am deleting tables at the begining of the proc and again at the end - using IF EXISTS(SELECT name FROM tempdb.dbo.sysobjects where name = '#Archive_In')DROP TABLE #Archive_In Is this expected behaviour I thought using # would make it local to the connection If this is expected, how do I make it work I thought SQL used the spid or something, appended to the end of the table, and maintained that reference My guess is that the query just brings back no rows, so the Drop command will not be executed, try the following o ...Show All
Visual Basic how to Run application as admin
Hi... How do I run a app. with admin priviliges I’m a noob in this, so maybe its simple... I have tryed this... but got some errors with the password, how does it works Dim p As New ProcessStartInfo( "IEXPLORE.EXE" ) p.UseShellExecute = False p.Domain = "domain" p.UserName = "administrator" p.Password = "password" p.Arguments = ( www.homepage.com ) Process.Start(p) The error is as follow.... Error 1 Value of type 'String' cannot be converted to 'System.Security.SecureString'. ...Show All
SQL Server CTE and XQuery
I'ev been playing around with CTE's and trying to query a table that has the following structure tbl Projects{ id (int), Project (xml) } sample data within the project column is id = 100 Project = '<Projects> <SubProjects> <id>150</id> <id>160</id> <id>170</id> </SubProjects> </Projects>' basically i'm trying to set up a recursive query to get all sub projects for a given project.. this is PART of a bigger query .. WITH MySubProjects(SubProjects) AS ( SELECT TblProjects.*, P.SubProjectIDs.value('(.)[1]','int') AS SubProjects FROM RB_Projects TblProjects CROSS APPLY Project.nodes('/Projects/SubProjects/id') AS P(SubProjectIDs) where id = 100 ) but i keep getti ...Show All
SQL Server Integrate more than one SSIS packages into one package
Hi I'm new to SSIS field. I'm importing data from flat files to sql server 2005 through SSIS packages. I have around 30 packages which transfers data from flat files to corresponding database tables. I want a single package that will run all the 30 packages by running that single package. Like in a single stored procedure we can run multiple stored procedure, I want the same solutions for my packages. Is there any method which can solve the above issue Please kindly guide me . Its urgent. please reply soon. Thanks in advance. Rafael is right on about package configurations. You can find info on this here, here and here. ...Show All
Visual Studio Express Editions how do i select a form as a startup object when....
when i add a new project (project->add new project) then selecting a startup object is easy...(by right click on the project in the solution bar) but when we ADD NEW ITEM to a existinfg project the i don;t get any option to select that form as a startup object In VB you can click on "My Project" and under the "Application" tab you can select your "Startup form" In C# you will need to update Program.cs to call your new Form by modifying the line: Application .Run( new Form1 ()); ...Show All
Visual Studio Express Editions Set two methods to the same button_click
I have a problem to set two methods to the same button_click: One method is called 'grabber' and grab a picture from a video stream and display it to a picture box. The other method simply save the picture from the picture box. They both work if i use two buttons. If a click to grab the picture and then click to save it...no problem . If I use 1 button to do both methods (first grab and then save) it doesnt work , and visual shuts the window form and a yellow arrow appears on line saving command line. If someone had this problem before or just know the answer to my problem, a little help would be great. Thank you. private void Detect_Edge_Click( object sender, EventArgs e) { grabber(); //saver ...Show All
Visual Studio Super slow installation for VS2005 SP1 beta
Well, it’s not something new, there are people at Microsoft that work hard to make our life easier, like the Microsoft Windows Vista installer for example, an entire OS in 20 min; and there are some less experienced developers (my assumption only) who are given for some reason the task of creating the VS2005 SP1 installer. Whoever wrote that thing, he, she or they, can say whatever they want, but to take 2 hours to get the SP1 beta installed is just damn stupid, here are 2 hours by a million people in the world, a total of 2 million hours lost, thanks to a group of developers at Microsoft, maybe they could have spend 100 more hours to learn math, or to profile the installer, and could have saved the world a million hours ...Show All
Visual Studio Visual Studio 2005 Service Pack 1 Beta
Has anyone else tried to install the beta of Visual Studio 2005 Service Pack 1 Just running the setup program hogs my machine. It literally took over an hour, maybe more, for the message box to come up asking me if I wanted to install it. I tried it around 4:15pm yesterday and since it was still going even past 5pm I just left work figuring it would be installed by the time I came back in the morning. Well, I'm back and all I see is the message asking if I want to install. I say yes and then a few minutes later it comes back saying I have to uninstall the Web Application Projects addon because the release version is included in the service pack. Great, I hit OK and now I have to start all the way over! I've never seen an install program h ...Show All
