AlucardHellSing's Q&A profile
Visual Studio 2008 (Pre-release) A couple of Image problems
1. < Image Source = " http://c.live.com/c.gif " /> crashes my application. Is this a bug If not, how can I trap the error and let my application (and the visual tree that contains this element) live. If I trap exceptions globally I can sometimes get by, but other times the render thread dies (I'm not sure if it's this image or another which is responsible). 2. Images at http locations which are redirected (HTTP 30x) do not appear to ever be displayed. Any ideas for a workaround ...Show All
SQL Server Turning a stored proc into SQL
Hi, I would apreciate some help on this problem. I have this stored Proc that some of you on this forum helped me out with: CREATE PROCEDURE Initials_sp @IDclient int , @Initials NCHAR ( 2 ) OUTPUT AS SET @Initials =( SELECT ( substring ( firstname , 1 , 1 ) + substring ( lastname , 1 , 1 )) as initials from tbl_ress where IDresscreatedby = ( select idRessCreatedBy from TBL_quotation where idClient = @IDclient )) Return It's not working, can anyone help me turn that StoredProc into just regular SQL so I can just use SQL in my php code instead of a stored Proc SELECT ( substring ( firstname , 1 , 1 ) + substring ( lastname , 1 , 1 )) as initials from tbl_ ...Show All
Windows Forms Can't override ProgressBar OnPaint
I'm trying to create a custom control extending the ProgressBar. I want to draw the Value property on the surface of the control but overriding OnPaint does not work. In fact I discovered that OnPaint isn't even called during execution. Is it because ProgressBar is one of that classes which does not use OnPaint How can I get what I want without inheriting from Control or UserControl Thank you. At code project I found exactly what I was looking for. Do you know other sites with free reusable controls like codeproject I already searched but found a lot of sites with useless or shareware stuff. ...Show All
Software Development for Windows Vista Get data values from workflow.
Gurus, I am trying query tracking database using TrackingDataItemValue. I am trying to find, lets say all the running workflow instance where order amount > 2000 or some matching criteria. Order amount is a public property of my workflow. I am using default tracking service without any custome tracking profile and I am able to get all the workflow instances from database but the problem is when I try use TrackingDataItemValue with my search criteria, I dont get any WF instance. Do I need to use user track points and custom tracking profile Here is code I am using. IList < SqlTrackingWorkflowInstance > queriedWorkflows = new List < SqlTrackingWorkflowInstance >(); SqlTrackingQuery sqlTrackingQuery = new ...Show All
Windows Forms Printing
How I can print document Report.rdlc by press button on Form, without use reportViewer Thanks for any help. ...Show All
SQL Server Count(*)?????
I am trying to find the significance of using the Count(*), does that mean it only pulls one value according to the query that the procedure calls or what i am a lil lost on this particular feature CREATE PROCEDURE dbo.Sales ( @UserName varchar(256) ) AS DECLARE @Exists int SELECT @Exists = COUNT(*) FROM SalesPerson WHERE UserName=@UserName IF (@Exists <> 0) BEGIN SELECT SalesPersonId FROM SalesPerson WHERE UserName=@UserName END ELSE BEGIN SELECT -1 END RETURN GO For this particular SP, you don't need to do any check. Simply do below: create procedure dbo.Sales ( @UserName varchar(256) ) as select coalesce( (select SalesPersonId from SalesPerson where UserName = @U ...Show All
Windows Search Technologies Highlighting of words
Windows desktop search does look good but a feature I feel that is missing is that the words being searched for don't highlight in the preview window. I'm using Copernic Desktop search as this does do this and is extremely handy. Even if this feature was a toggle button that can be turned on and off. I downloaded version 3.0 hoping that this feature would be included. Richard, We are aware that word highlighting is something users find very useful. We have heard this feedback from many users and are evaluating it as a possible feature for the future. cheers, Ed ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Please help me im new, debugging trouble
is there any way to create an xbox 360 game out of the template, write the code, develop the game, and then debug it on a pc, and the reason for doing this, is that i dont have the money for a creators club memborship right now, some one help One thing you might find helpful is an XBox Controller for Windows. That's a hand-held XBoX controller that's designed to work with a PC, and includes a USB plug to plug into your PC. That way you can build an XBox-oriented game on your PC and build the interface around the XBox controller. Be sure it's the kind of XBox controller that specifically works with Windows, though; it has to say XBox controller for Windows. I would think that would minimize any adjustmen ...Show All
Visual Studio Team System Limitation in MS Project ?
Hi, I have a problem in MS Project. I have define a field of type "string" in my process template with 253 listitems in the allowedvalues. In Studio, all values are displayed correctly, but not in MS Project (no combobox and no values appeared). Does somebody have an idea Thank you! Myself I would place all these values in a global list and reference the global list in your <ALLOWEDVALUES> tag. It would be easier to maintain if you ever need to update it. ...Show All
Visual C# SQL DB or XML DB?
I have a (new patient) form which has lot of combobox objects, eg. nationality, gender, country marital status.. etc and all these objects are currenlly reading data from tables in SQL Server but I am not sure if that's a good idea specally when it comes to application performamnce so I though why I can't store data in XML file(s) located in on the network instead of SQL tables.. But before moving to the XML file option I just wanted to ask you as an expert about this option what do suggesst best way would be to use either SqlDataReader to read the data, the SqlDataReader is a class that reads data waiting to be read in the buffer after getting the results returned back from SQL and is a fast forward only reader. You can acces ...Show All
Visual C++ While loop blocking interaction
This is my problem: I have to write a program which reads a text file and modifies an audio sample in real-time depending on the content of the file. The text file simulates a signal stream, so an integer is read from the file every 3s. I already have some routines written in C++ working in a console application. This routines use a while to read the characters in the file untile EOF is reached and a wait() instruction to wait the 3 second between each value is read. When I call this routines in a Winforms application I get a strange behavior. In fact, when the while loop starts I can't interact with the form anymore, until EOF is reached. What is the best way to solve the problem Do I have to use threads or there is another solution ...Show All
Visual C++ Flicker in Dialog Based
Hi I am drawing on a dialog box (MFC Dialog-Based) but there are too much flickering in the Dialog how I can get rid of them. I searched the net, but every body uses the either SDI or MDI no one explain it in Dialog-Based. Thanx that's why I said "You can replace the things in OnPaint, OnEraseBkgnd etc" because that's the part of CWnd Both SDI Frame and CView, has bee derived from CWnd You can make use of the memory dc class for drawing. You can employ it instead of CDC and CClientDC ...Show All
Visual Studio Team System CTP5: Takes hours to load a very large database project
We have a database with more than 4000 schema objects. It takes literally hours to load the SQL Server 2000 database project using CTP5. We could never get it working in CTP4 because of a large number of errors. The long time it takes to load the project makes it practically unusable for us. Is there any other workaround for this We are also unable to import any DB schema changes into the database project because the 'Write Updates' button always remain greyed out. I am sure this feature was one of the team's deliverables in CTP5. Sameer Same to me. I have created a solution with 2 Database Projects (SQL Server 2000) which took about 1 hour to import. After saving the solution I quit Visual Studio and after reopening Visual ...Show All
Visual C++ Compile assembly language program in Visual Studio 2005
I am curious how to compile an assembly language program from the IDE. The program is in full segment definition and I can compile and link it using ml and link on the command line, although, I would like to be able to do the same thing from the IDE. The only examples I can find are for compiling inline assembly for previous versions of Visual Studio. That said, I have just upgraded from visual studio 6 so the interface is a bit new also. Hi All, I have cpp and asm files in a huge project and I am trying to migrate the project from VS2003 to VS2005. I am not able to generate the obj files for the asm files. I am getting the PRJ0019 errors. Below is the buildlog. BUILDLOG ...Show All
Visual C# DirectorySearcher Filter.
I am utilizing DirectorySearcher filters to get users that haven't logged in a specific amount of time using the following code: public long filterDateTime = DateTime.Now.Subtract (TimeSpan.FromDays(15)).ToFileTime(); DirectorySearcher ds = new DirectorySearcher(); ds.SearchRoot = new DirectoryEntry(""); ds.Filter = (&(objectCategory=user)(name=*)(lastLogonTimestamp<=filterDateTime)); ds.PropertyNamesOnly = false; ds.PropertiesToLoad.Add("name"); ds.PropertiesToLoad.Add("lastLogonTimestamp"); When searching using (&(objectCategory=user)(name=*)) the filter works fine, but when trying to get the lastLogonTimestamp as aforementioned, it doesn't. Any idea of what I am doing wrong P.S. ...Show All
