km_srd's Q&A profile
Visual C++ How to restrict a user from 'Deleting' a file by pressing DELETE key on Keyboard..???
Hi, Here, I want to restrict a user from Deleting a file Manually (i.e, 1. By pressing DELETE Key on keyboard 2. Right-Click on file and selecting Delete. ) In MS-Word 2003, If a file is Opened, and we are trying to Delete it, it gives an error message like, " The file abc.doc cannot be delete : The file abc.doc is in use by following program Microsoft word . The file must be closed before delete." I want exact functionality as above. Could any one help me. HANDLE hFile = ::CreateFile(L "1.txt" , GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); cin.get(); It works, while you do not press ENTER in console no one can de ...Show All
Visual Studio Express Editions coding help
Public Class Form1 Dim ans As String Public Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load 'whatever is in here will be executed when you start the program' End Sub Public Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'whatever is in here will be executed when you press the button 1' test() 'this gives me "test is type and cannot be used as expression" ans = InputBox( " thats it" ) End Sub Public Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End Sub End Cla ...Show All
Visual C++ Loadin mixed assemblies from byte arrays
Hi, I was trying to load a Mixed Assembly using Assembly.Load(byte[]) but it fails with "unverifiable code failed policy check". I'm able to load managed assemblies but not Mixed Assemblies. It is possible to to that I use VC++ 2005 for creating the mixed assemblies and loading them. Thanks Martin Sorry to hear that. After all, the OS loader could use the byte array and perform the needed fixups. Thanks, anyway for your response, I hope the cryptical error "unverifiable code failed policy check" gets fixed in a future version of the CLR to something more meaningful. I spent a lot of time trying to find a workaround, when actually it does not exists. Thank you Martin2006 ...Show All
SharePoint Products and Technologies any guidelines about uploading a windows folder tree to sharepoint site or just uplaoding a folder with its files into share
any guidelines about uploading a windows folder tree to sharepoint site or just uplaoding a folder with its files into sharepoint Thanks a lot One thing to keep in mind is that any file with certain special characters (or just ill placed ones) will break the upload. Specifically, and this is in no way a complete list I'm sure, all & and # characters must be removed and a file cannot have two consecutive "." characters. ...Show All
Visual Studio Team System "Unable to determine the workspace" error duing label operation
Our Team Builds are failing with the following error: -------------------------------------------------------------------- Target CoreLabel: Label Name="Daily Build_20060707.3" Recursive=True Version="WPROJECTBUILD2_NAM - Energy Partnership_Daily Build" Child="replace" Workspace="PROJECTBUILD2_NAM - Energy Partnership_Daily Build" Files="$/NAM - Energy Partnership" C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error : Error: Unable to determine the workspace. C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error MSB4018: The "Label" task failed unexpecte ...Show All
Visual Studio Team System Internet Explorer 7 and Team Foundation
One of our TFS-users installed IE 7.0 on his system. Now he can no longer connect to TFS, because this results in TF31002 error. When logging in as member of the administrator group, it is possible to access TFS. This seems more like a IE7 security problem, but I can not find what to change. I removed IE7 but this did not help. Hi Paso, Have you seen this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=500567&SiteID=1 The user was experiencing the same error and eventually resolved the issue. -Matt ...Show All
SQL Server CLR test script SELECT returns no row data
Hi, The test.sql scripts I write to test CLR stored procedures run successfully, but when I want to display the resulting data in the database with a simple "SELECT * from Employee" I get the result as: Name Address ---- ------- No rows affected. (1 row(s) returned) But not the actual row is displayed whereas I would expect to see something like: Name Address ---- ------- John Doe No rows affected. (1 row(s) returned) I have another database project where doing the same thing displays the row information but there doesn't seem to be a lot different between the two. Why no results in first case Thanks, Bahadir You maybe still have the ...Show All
.NET Development incorrect path
I am developing a webservice on my local machine using file system. So the webservice is sitting on my local C drive. In the .net 2.0 solution explorer, I can see the webservice. Not sure why the path is showing as "C:\...\CodeWS" Please note that the webservice is save in C:\Work\Code\CodeWS Why is the path showing as C:\...\CodeWS Why is it that each time i open up the .sln, then some of the webservice files appear ini the root folder, i.e. C:\Work\Code The other thing is that every time I open the .sln and close the application, then CodeWS appears under the root of CodeWS as explained above And I am not sure if IIS has to be installed on my machine so that I use http instead of file system in .net 2.0 to create a ...Show All
Visual Studio 2008 (Pre-release) how to binding complex propery
I draw two ellipse(ellipse1 and ellipse2) shape on canvas. They have the same center ,but different radius。 I want to ellipse2 follow the ellipse1 when i drag the ellipse1. I want to implement this funciton with Binding operation。 EllipseGeometry eg1 = new EllipseGeometry(); eg1.RadiusX = 50; eg1.RadiusY = 50; eg1.Center = new Point(100, 100); Path ellipse1 = new Path(); ellipse1.Data = eg1; ellipse1.Fill = Brushes.Blue; But the Center Property was in the EllipseGeometry object,and i didn't know how to extract it... could anyone help me thanks might be easier to do in xaml,the following animates, but you get the idea. you can give a name to ellipsegeometry and refer that in code when ...Show All
Visual Basic vb.net vs vb6 pros and cons help
Hi there i am a seasoned vb6 and vb.net developer and where i currently work, they use VB6. Now, we develop a range of office plugins for a client, and they currently use vb6, they also do some other projects with vb6. I want them to change to vb.net They have asked me for a list of Pros for switching, and also some Cons. The pros i have are: .Net is future proofed, VB6 will not be supported by Microsoft for much longer One standard platform to run on (.Net) removing problems of windows versions and missing dlls full OOP support and a generic Api for office application development. Integrate seamlessly with Java using bridging components (they are primarily a java house) Quicker performance On event app ...Show All
.NET Development How to use WSDL.exe and to consume a web service
I am learning how to consume a web service. I have created 10 web services. And I have not been able to consume one. Many web sites show one how to create web services ... but they are not clear on how to consume them. I do not understand what is needed and not. What steps does the 'Web References' replace. I am using Visual Studio. Do I need to use WSDL.exe. And why. And where. And how. I have read http://msdn2.microsoft.com/en-us/library/7h3ystb6(VS.80).aspx And did not understand the basics! Also I have seen two ways to run it. Which is correct wsdl.exe /l:CS /n:MathService /out:MathService.cs MathService.wsdl wsdl http://localhost:3333/WebSite7/WebService.asmx WSDL Also I get the following error msg on one of the tutorials in MSD ...Show All
SQL Server Subscribing to two publications on SQLCE
I have two publications on a SQL Server 2000 database. I am able to create two subscriptions from another SQL Server 2000 database and synchronize both in succession. However when I try to repeat this going from SQL Server 2000 to SQLCE 2.0 it fails. The first goes OK. The second fails. I get error 80004005, 28521 (The SQL Server CE database is already enabled for publication. Is it possible to do what I am trying to do on CE The reason I have 2 publications is because the first is non-filtered and goes very fast via bcp files when reinitialized. The second is dynamically filtered and not as fast. Breaking them up makes reinits go much faster. My code is included below. Thanks Ed Santosusso esantosusso@omicron.com ---------- ...Show All
SQL Server Unit Testing
Well was wondering this weekend. How do you do unit testing with SSIS Is anyone trying it What are you doing and do you have any suggestions Folks use a variety of techniques for this: - Row Count to count the number of rows that're going into their database and a precedence constraint based on the expression that says this Row Count is within a range. - A directory of SQL scripts to run after data flow is done. This is typically done with a foreach file loop over sql script files in a directory tree. - Use script task's logging functionality to log interesting information during execution. While not directly related to unit testing, this approach can be used for logging customized information that ...Show All
Windows Live Developer Forums is sandbox down?
I've been unable to communicate for several hours. I have verified that I'm using the SSL wsdls: < xml version="1.0" encoding="utf-8" ><soap:Envelope xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd=" http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Server was unable to process request. ---> |-400021|-1|ERROR_API_FAILED_DUE_TO_SYSTEM_ERROR|</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope> -Neil We are still experiencing int ...Show All
SQL Server install the database to any sql server from cd
hi friends can any body help me install the my database directly to the sql server without going to the sql server and running the script ...Show All
