Aaron Sulwer's Q&A profile
Visual Studio Team System display full details in cruisecontrol dashboard
hi, i integrated fxcop in cruisecontrol using nant and merged the output of fxcop's with cruisecontrol's, but when i can't see on the dashboard all the details of the errors. how can i do that with 1.35 this is from cconfig.config: <tasks> <devenv> <solutionfile>X-Solution.sln</solutionfile> <configuration>Release</configuration> <buildtype>Build</buildtype> <executable>C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.com</executable> <buildTimeoutSeconds>1200</buildTimeoutSeconds> </devenv> <nant> <executable>D:\Program Files\NAnt\bin\nant ...Show All
Visual Studio Express Editions Help getting just a file name
I have a OpenFileDialog1.FileName and I get the file name plus the path - which is what I do want. But I also want to get just the filename to save in the database. How do I strip off the path here is what I have now. Dim indx As String = TextBox1.Text.LastIndexOf( "\" ) + 1 but this does not work. I just want the file name itself. thank you OpenFileDialog1.ShowDialog() Dim F As String = OpenFileDialog1.FileName Dim FName As String = My .Computer.FileSystem.GetName(F) obviously there's no error checking in there but it should give you the general idea. ...Show All
Visual Studio Express Editions reusable functions
Hi there I'd like to be able to write some standard (for me) functions, and then "include" them in different projects, as if they were some library functions. Doing that, if I change the original function, all projects referring to that function will change automatically. How can I do that thanks! Hi, You can create a webservice for that. Just create a webservice and place it in a webserver (IIS). Then you can point all applications to it. So that if you decided to change the source of the function then you do not have to redistribute dll's for your application to be updated. cheers, Paul June A. Domag ...Show All
Visual Studio Team System Server name in Changeset.aspx
I changed the name of my TFS server in all sorts of places, but there is one left which I can't figure out. When I get an alert email that something new was checked in, I get an email with a link to the changeset. It ends with /VersionControl/Changeset.aspx artifactMoniker=16&webView=true. In there is a reference to a XSL stylesheet, but that reference is using the old, original server name. How can I update that one as well Thanks, David As I wrote, TFSUrlPublic is already set to the full DNS name. But the changeset.aspx does not seem to pick that setting up. Best, David ...Show All
Smart Device Development How to use check boxes in Owner Drawn Listview
Reaspected Sir/madam I have used owner drawn listview in my project. But according to requirements I have to place check boxes before each item. unfortunately I am unable to add check boxes before each item. If any body knows the solution please help me Regards Bijay Kumar Pathia ...Show All
.NET Development Decrypting XML from a service
Hi I have a service where I want to encrypt the database connection string at install time, store it in an XML file, and then have the service decrypt it when it is started. The encryption works well and I can decrypt it from another windows application without any problem, however when the service tries to decrypt the XML document it receives a "bad data" exception. I assume this is because the service cannot access the key container. So what do I have to do to get the service to access the key container here is the solution: makecert -r -pe -n "CN=XML_ENC_TEST_CERT" -sr localmachine -b 01/01/2005 -e 01/01/2010 -sky exchange -ss my -sr localmachine Now the certificate works ...Show All
SQL Server executing stored procedure with parameters using execute sql task
Hi , I am trying to exectue a stored procedure through execute sql task which takes two input parameters table name and filegroup to create a table and it also returns a value. i am using the oledb connection but i am getting the following error [Execute SQL Task] Error: Executing the query "declare @rtn_value int exec spm_Utopia_FinanceUsage_Create_MonthlyTable , select @rtn_value as rtn_value " failed with the following error: "Syntax error or access violation". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. i tried with ado.net connection by directly giving the para ...Show All
Visual C++ Removing Titlebar of the frame
I want to remove the Titlebar of a SDI FrameWnd class. could you please tell me which style should I specify I fixed the problem with following code. I put it in the OnCreate function ModifyStyle(WS_CAPTION,0); SetWindowPos(NULL, 0, 0, 0, 0, SWP_NOZORDER|SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE| SWP_DRAWFRAME); ...Show All
SQL Server Encryption and the client
I have a basic understanding of the encryption using T-SQL, but is all of this at the T-SQL level Like can a client have a certificate, be sent the encrypted value (that was encrypted on SQL Server), and using the same cert that is on the server decrypt the data Is there a good article/book that covered encryption in detail that you can suggest Or is this something that you would build in .NET If your concern is to protect data in transit, I would strongly recommend you to use SSL to protect the data between your server and the client. If your goal is to protect data at rest, but in such a way that the protected data cannot be decrypted by the server (i.e. the decryption key is never stored/used in the server host ...Show All
Visual Studio Express Editions Use of RegistryKey
I have been looking in the forums for info on RegistryKey and found lots of good info on read/creating/deleting/etc. My question is very basic...Can I use Registry Keys to store flags that one program sets and another reads (at some subsequent time). I basically want to know if a user interface program has set a flag that other programs read and execute some functions based on it. Note that these are not programs running simulataineously, but will query this flag later on. Thnx so just what kind of cigs does your cat smoke OK great example...I almost had it ...one last question... where is strSettings.xxx defined they come up undefined...must have missed an import or something. ...Show All
.NET Development PickupDirectoryFromIis
I'd like to configure <mailSettings> in my machine.config so that all developers can use the setting specified there. The applications should send mail using the local IIS SMTP server. What is the correct format for my machine.config I've seen it done a few different ways. <mailSettings> <smtp deliveryMethod="PickupDirectoryFromIis" <network defaultCredentials="true" host="localhost" port="25" </network> </smtp> </mailSettings> OR <mailSettings> <smtp deliveryMethod="PickupDirectoryFromIis" </smtp> </mailSettings> Thanks. It ...Show All
Visual C++ Change DLL Search Order Dynamically?
Is there a way I can alter the dll search order dynamically (launching executable process) * SetDllDirectory( ) only works with LoadLibrary/LoadLibraryEx * CreateProcess( ) doesn't seem to have any flags/parameters to toy with. * LoadLibrary( )/LoadLibraryEx( ) don't load executable bits for executing (only for resource manipulation) * Changing values in the registry upon load is unacceptable and would likely break anyway. I am trying to use my own copy of kernel32.dll, for example, for instrumentation purposes. I *can* use the myappname.exe.local but that's a PIA and is ignored when I use manifests. Doesn't look like this load-time linking applies. ...Show All
Audio and Video Development DMOs Operability in Media Foundation ?
I thought I remembered hearing somewhere that DirectX Media Objects could be directly used by Media Foundation. However reading the current docs for Media Foundataion Transforms ( http://windowssdk.msdn.microsoft.com/en-us/library/ms703138.aspx ), it sounds as if you can implement IMediaObject on an object that implements IMFTransform but one cannot directly use DMOs in Media Foundation. Is this correct Thanks! Scott Hi Scott, You're right: The Media Foundation pipeline is prepared to handle Media Foundation Transforms (MFTs), not DMOs. And you're also right that if you write a wrapper for the DMO that you want to use that translates IMFTransform calls to IMediaObject calls, you should be good to ...Show All
Visual Basic Windows service
hi guys, i made a windows service that monitors the time spent on the internet. i can install it, run it, stop it with no problem.but the service doesn't run on windows startup. why even though i told it to start automatically. and in the "Services" window, it shows me that the startup type is automatic. in the event log, everytime i start the windows, i see two errors: -Timeout (30000 milliseconds) waiting for the Time Counter service to connect. - The Time Counter service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion. plz help me. :( You are experiencing an error in the service during ...Show All
Windows Live Developer Forums Want to write asp or asp.net pages in IFrame in activity?
I want to write one activity,which includes one IFrame. The IFrame content will be made by reading database. Can this be true You should be able to. Get the asp .net page to generate content from the database based on passed in parameters in the POST/GET. Then simply pass the parameters from your messenger application to the asp.net page and show it in the IFrame. If you've having difficulty passing in the paramters to the IFrame itself, pass the parameters to the asp .net page and write them to some javascript variables. Then simply get the IFrame to retrieve the variables from the parent document when it loads using javascript. ...Show All
