kittadc's Q&A profile
Visual C# turn this algorithm into code...help please
The following algorithm is for checking a person's birth date / birth number combination (an equivalent to social security number). The birth date / birth number combination consists of a 10 digit number, YYMMDDNNNN, for example 7401204933. To decide if this number is correct, you multiply each digit alternatively with 2 and 1, starting with 2. Next, you add the results together. Finally, you have to be able to evenly divide the sum by 10, for the number to be correct. For example, checking the number 7401204933 would look like this: 7 * 2 = 14 ---> 1 + 4 4 * 1 = 4 ---> 4 0 * 2 = 0 ---> 0 1 * 1 = 1 ---> 1 2 * 2 = 4 ---&g ...Show All
Visual Studio Team System Project Level Attributes
I'm attempting to create a process template, and I'm wondering if there is a way to create/store project level attributes. For example, a project would have a client, maybe some billing information, but it would only need entered once per project. Any help is greatly appreciated. I don't know of a way to create/view/edit any project level properties. I would suggest that you create a special Work Item Type. You could define it with a couple of fields: "Property Name" and "Property Value". Your template could create several of these records during Project Creation to hold the d ...Show All
Visual C++ Directory Search Order & Link Error
Hello, I am using VS 8 on WinXP Pro. I recently installed the Windows Server 2003 SDK and the DirectX SDK. I have recently moved to VS8 from VS6. When I put the path to the SDK include & lib directories at the top of their respective lists, the linker generates link errors. unresolved external symbol "wchar_t * __stdcall _com_util::ConvertStringToBSTR(char const *)" ( ConvertStringToBSTR@_com_util@@YGPA_WPBD@Z) referenced in function "public: __thiscall _bstr_t::Data_t::Data_t(char const *)" ( 0Data_t@_bstr_t@@QAE@PBD@Z ) When I put the path to the SDK include and lib at the bottom of their respective l ...Show All
SQL Server LinkTarget not working
I have tried from every angle to get rc:LinkTarget=_blank to work, but it won't. Is there something I'm missing Here is a sample of what I'm doing. http://[server]/ReportServer /[reportname]&rs:Command=Render&rc:Format=HTML4.0&rc:LinkTarget=_blank After going to this URL, as I understand it, the LinkTarget should cause all hyperlinks in the report to open in a new window. Unfortunately, it continues to open all links in the same browser window. Any help is appreciated. LinkTarget only works for hyperlink links. I can see how the description on http://msdn2.microsoft.com/en-us/library/m ...Show All
Visual C++ Unable to build native Win32 apps
I am using Visual Studio 2005. I get error messages when I build a native Win32 app in Visual C++ .Net 2005 The first error is d:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' This is the line: typedef void * POINTER_64 PVOID64; How can there be an error in winnt.h Anyway, I changed the line to typedef void *PVOID64; The remaining errors didn't occur anymore. Now there are no errors. But this is obvio ...Show All
SQL Server Replication performing UPDATES as INSERTS and DELETES on the subscriber
I have transactional replication set up between two SQL Server 2000 databases. In some cases when I perform an UPDATE on a published table on the the publisher, SQL Server attempts to perform a DELETE followed by an INSERT on the subscriber using the stored procedures created during the initial snapshot. Why does it do this How can I stop it doing this and force an UPDATE on the publisher to call the UPDATE procedure on the subscriber Thanks Cut paste from a different thread, see if this helps: >> If you can limit the update to unique columns as singleton (each update affects one row) , S ...Show All
Visual Studio Team System Invoke Static Method
I am trying to test a static method. The method takes a DateTime parameter. How do I enter a DateTime value in the Invoke Method dialog box for this parameter I have tried: #1/1/2005# new DateTime(2005,1,1) and others with no luck. It keep getting a type mismatch message. It looks like the other way to do this is to use the Immediate window. You can type something like System.DateTime date = new System.DateTime(2005, 1, 1); which will put the DateTime object in the Object Test Bench. You can then use it in the Invoke Static Method dialog in the same way as before. However, this is ...Show All
Visual Studio How to use Application Verifier?
The Application Verifier did work fine with Beta1, but I can't get it to work with Beta2. When I try Debug -> Start with Application Verifier I get the message "Application Verifier could not be enabled. Please refer to the release notes and supporting documentation". I tried installing the Application Compaitibility Kit (tried both 3.0 and 4.0), but that didn't help. I did remove some features from the default installation. Mainly VB, J#, Web development, SQL and smart devices. Which feature in the setup contains the verifier Thanks Ivo The AppVerifier team told me that a QFE is needed and th ...Show All
.NET Development Is .net framework 2.0 redistribuable freely redistribuable with commercial product
Hi, I know .net framework redistribuable is free, but is it also free when shipped with a commercial product JRE is free, but fees (1 $ per product) are to be paid in case of providing in with a commercial product, so it could be the same for .net framework I've been googling a while about this, but could not find a Microsoft official information about this. Could you give me a link about this Thanks a lot! Thibaud It is completely free. In fact the default setup for most installation programs will include it automatically. Furthermore anybody running Windows Update will probably already have it installed ...Show All
Visual Studio Team System Trial Edition & Source Control
I received my trial edition today and am about to install it, and I've put the system on the projected budget for next year. But, I'm concerned about what happens if my employer doesn't cough up the big bucks to buy the thing. Particularly the code that is saved in the source control portion. Will it be available when the trial expires Can I get it out easily Thanks for your time. If you are using the 180-day trial edition, you'd no longer be able to get history, checkin, checkout, etc. You would still have the latest copy of the files on your disk. Buck ...Show All
Visual Studio Express Editions BalloonTipText on NotifyIcon1 Hover over?
I've been looking at how to use BalloonTipText, and I found this small section of code: NotifyIcon1.BalloonTipTitle = "Balloon Tip Title" NotifyIcon1.BalloonTipText = "Balloon Tip Text." NotifyIcon1.BalloonTipIcon = ToolTipIcon.Error That isn't working for me though, in the test app I made to try it out. I put it in the NotifyIcon1_Click event and nothing showed up. I'd really like to be able to display something when the user hovers over the notify icon too, and I couldn't find a hover over event. Also, can I use a variable for the text in the balloon tip Any help would be appreciated. ...Show All
Software Development for Windows Vista So can I call into Indigo Service ?
So I have been playing with Indigo (WCF) in the last few months and now I come across this cool WWF technology. I guess I should be able to call into Indigo Services, within a Code Activity block. But I have seen advice that a code block should not depend on external services. So I am not sure that my return values will become visible. Of course in true message based SOA, I should also really be able to set up Channel.Send(message) Send and and Receive. So I guess I wait for a proper RPC and Message orientated Indigo Invocation Activities to appear. Any other opinions/expectations Jules James C ...Show All
.NET Development Table Adapter and multi-user environment
I am writing my first .NET application after years of using VB 6.0. As I understand it, the new table Adapter takes a "snapshot" or "cache" of the records in the table, until you TableAdapter.Update. Is this OK in a multi user environment I am writing an inventory program. I want to avoid the following problem... POS computer A sells an item, so my program changes it's quantity from 12 to 11. Two minutes later POS computer B sells one of that same item. It's Table Adapter's cache or snapshot may still think there are 12 of that item, and it would do the same calculation, and it would appear like there were 11 of th ...Show All
Visual Studio Express Editions Can not use a Sub using graphics
This is my code. Sub Proces( ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me .Paint Dim i, j As Integer For i = 0 To 200 For j = 0 To 200 If rd < alpha Then If grid(i, j) = 0 Then grid(i, j) = 1 aantal = aantal + 1 e.Graphics.DrawRectangle(Pens.Beige, i + 10, j + TextBox1.Height, 1, 1) End If End If Next Next rd = randomgen.NextDouble() Label1.Text = CStr (rd) E nd Sub I can not draw by using this. I need to draw a pixel in a procedure that is called when pressing on a button. Can somebody please help me ( the error says that :Argument not specified for parameter 'e' o ...Show All
SQL Server problem with Transfer SQL Server Objects Task
I have the following problem: All Sp's and UDF's in one base database have to be compiled into five identical databases located in the same SQL Server in order to keep all those five db's stored procedures synchronized. I made a simple SSIS package which content one "Transfer SQL Server Objects Task" component. Hardcoded connection/Source db/Destination db and setup properties as " Drop object first " = True " Copy All Stored procedures " = True " Copy All UDF " = True Then I executed the Package right from Visual Studio environment and after the substantial thinking finally it s ...Show All
