Can-Ann's Q&A profile
Visual Studio Team System check differents elements
Hello, I would like to create some rules to check the naming conventions. I found alot of differents things really interesting. But i(d like to check if an element is : -constant -registerKey -parameter -control -delegate classe -exception classe -collection classe with the the override method "check". Can you help me Thanks Constant - Check(Member), cast it to Field and look at Field.IsLiteral Parameter - Check(Parameter) Delegate - Check(TypeNode) and cast to DelegateNode Properties - Check(Member), cast it to a Property Events - Check(Member), cast it to Event Try the above, this will get you started. Determining the other types is little ...Show All
Visual Basic Sub Main
How can I collect data from the registry before showing the main form. Hey bro, this is the exact method and should work May be in your code (in the form's activate, load event) you might have written something that closes the form. Please paste the sample code that you are trying so that i can give you a better support. You also need to change the Form Startup Object to "Sub Main" from Project > Properties. You can alternatively try Application.Run(frmServer) instead of Those 2 lines that creates an object of the form and then call the .Show() event. ...Show All
Visual Studio Express Editions Ugh....Driving Me nuts....
I am in the middle of writing a prog that takes a file within a directory on a HD renames it to the directories name and then places the newly named file on the root of that HD. Here is the code. and I am not getting it.....I would really appreciate your help. Thanks Imports System Imports System.io Imports System.IO.DirectoryInfo Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dlg As New FolderBrowserDialog Dim FileNamesSelected() As String Dim SelectedFolder As String 'Dim FileFound As String SelectedFolder = Me .FolderBrowserDialog1.SelectedPath FileNamesSelected = System ...Show All
Visual Studio Can you publish a web application using MSBuild on the command line?
Hi, I tried doing it like a website: <MSBuild Projects="C:\MyTempWebsite.sln" Targets="Publish" Properties="Configuration=Debug; Platform=AnyCPU; PublishDir=D:\todelete\FINAL\; ApplicationVersion=0.1.0.0; PublisherName=my site; PublishUrl=http://localhost/MyTempWebsite/; InstallUrl=http://localhost/MyTempWebsite/"> <Output ItemName="OutputFiles" TaskParameter="TargetOutputs"/> </MSBuild> But it tells me that its an unpublishable project... Thank you I also attempted to use We Deployment projects using my WebApplication template type project, and kept getting "unpublishable project" type errors. Perhaps on my case it has to ...Show All
SQL Server Unable to install SQl Server 2005 SP2 - Unexpected error
I am trying to install SQl Server 2005 SP2 but it was throwing an unexpected error when trying to install "setup support files". O/s: Windows Server 2003 SP1 Product: SQL Server 2005 Standard Edition Log file shows: +++++++++++++++++++ === Verbose logging started: 2/20/2007 16:05:42 Build type: SHIP UNICODE 3.01.4000.2435 Calling process: F:\SQL2005sp2\hotfix.exe === MSI (c) (74:68) [16:05:42:635]: Resetting cached policy values MSI (c) (74:68) [16:05:42:635]: Machine policy value 'Debug' is 0 MSI (c) (74:68) [16:05:42:635]: ******* RunEngine: ******* Product: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\Cache\SQLSupport\x86\1033\SqlSupport.msi ******* Action: ******* CommandLine: ********** MSI ...Show All
Visual Studio 2008 (Pre-release) HwndSource & the Adorner layer
I have wired up an MFC app to display a WPF panel as a view using the HwndSource mechanism. It all works fine, except nothing on the adorner layer (which I use extensively) is visible. Is this a limitation of the integration technique or is there some way I can see adorners Thanks, Jeremy You need to follow normal HWND rules. Integrating an MFC component within an HwndSource will put it above any wpf content, so nothing will show on top of it. It's a limitation of the interop scenarios. ...Show All
SQL Server Merge Statement
Is there a merge statement in SQL Server 2000 I want to combine update and insert statement into single statement as follows. MERGE INTO MyTable USING MyTempTable ON MyTempTable.MatchingField1 = MyTable.MatchingField1 WHEN MATCHED THEN UPDATE UpdateField1 = MyTempTable.UpdateField1 WHEN NOT MATCHED THEN INSERT VALUES(MyTempTable.MatchingField1, MyTempTable.UpdateField1) Currently if I try to run this stmt, it gives error "Incorrect syntax near the keyword 'INTO'." Thanks No, SQL Server has no such statement. The closest pattern I've found is: UPDATE Tbl SET Col1 = @Param1, Col2 = @Param2, &nb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. playing audio file with a foot pedal in vb.net
I've done a lot of seac hin g and grinding snippets of code to try to use my foot pedal. Here's where I am at: I am able to see my device of concern and two others with this line myList = Manager.GetDevices(DeviceType.Device, EnumDevicesFlags.AttachedOnly USB to PS2 Adaptor v1.12 USB to PS2 Adaptor v1.12 USB Footpedal Here's my problem....I can see it, how do I read it's 3 pedal switches on/off states When I look at the deviceinstance properties, I see - odi {Microsoft.DirectX.DirectInput.DeviceInstance} Microsoft.DirectX.DirectInput.DeviceInstance DeviceSubType 0 Integer DeviceType Device {17} Microsoft.DirectX.DirectInput.DeviceType - ForceFeedbackDriver {System.Guid} System.Guid Empty Nothing System.Gu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rendering to Form's PictureBox
Using this post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=728525&SiteID=1 and other help from this forum I have build this sample: http://www.tonigreco.it/_XNA_/RenderToPictureBox.jpg (image) To download the project use this link: http://tonigreco.spaces.live.com/ . Fill free to use it, I hope this can help. If you have any comments or suggestions please post it here in this forum, thank you. Toni Thank you, mybe you will like also this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=793239&SiteID=1 "Game Scripting and Effect Editors rendering to PictureBox", for Beta 1 version. Toni ...Show All
Visual C++ how to fix "unresolved external symbol __environ" while building with /MD option.
Hi all, In few of our code we declare "extern char **environ;" and use this value for some environment stuffs. This code causes following linking error when we started using Visual Studio 2005. libabc.lib(nlsconv.obj) : error LNK2001: unresolved external symbol __environ abc .exe : fatal error LNK1120: 1 unresolved externals This problem occurs only when we use /MD option during compilation. I found some thing related to this in http://msdn2.microsoft.com/en-us/library/stxk41x1(VS.80).aspx But I am not sure how to get a alternative for this variable. Is it proper to use the out put of GetEnvironmentStrings() as alternative for this Thanks in advance, Sanjith. ...Show All
.NET Development SqlDataAdapter: Unable to save data in a SQL database, What's wrong?
Hi All, I am unable to save data in a SQL database, What's wrong I am coding with VB .NET and I am unable to retrieve data from the database, beside I can read from the database without problems. How can I do, This thing is driving me crazy, it is 4 days that I am tryng to write in the database and I ahve tried everything update, insert. Somebody Know how to manage the SqlDataAdapter, beside the SqlDataReader is working perfectly. I am not used to the SqlDataAdapter. Is there anyone who know how to write in the database or where I am in mistake Thanks in advance. Here is the code: Dim oCmd As SqlClient.SqlCommand Dim oDR As SqlClient.SqlDataReader Dim strSQL, strSQL1, strSQL2 As String Dim adapter As System.Data.SqlClient ...Show All
Visual Basic include DLL widthout make reference....
Hi everyone. I use an external DLL and I want inlay the DLL into my exe program. (I don't want copy the exe program and the dll file, just 1 file!) How can I do that and I can call the dll file in the code 1 question, everytime my program run need run the code that you indicated from http://objecthead.blogspot.com/ Another thing: can give me the example code in vb I'm trying pass to vb but it's not working. Thanks very much ...Show All
Visual C++ Virtua; class compile problem
Hi, I have a compile problem with a virtual class. The base class is a dll. Interface is, public interface class BuildModule { virtual void saveModuleDataTiny(TiXmlElement *startElement); } There are a few other virtuals in the above class that work fine, syntax is the same. The above class is then inherited in the class below, which is also a dll. public ref class BuildInputModule : public BuildModule { virtual void saveModuleDataTiny( TiElement * startElement) { //some xml code in here that compiles fine } } Both the above classes compile fine. Problem is in my application that uses the BuildModule. When creating the code in the app intellisense sees the method but when I create an insta ...Show All
Visual C# Xml documentation: how much is ideal?
Below, you’ll see a complete example of Xml documentation of a method. One at our company has suggested that we do this for **all** methods, private or public, properties private or public, etc..everything. As much as I think xml docs are great, esp. on public, this seems like overkill to me. I feel that we’ll spend most of our time writing XML documentation for small methods (mostly private), and that this will encourage devs to not properly factor code into smaller chunks. Do you agree or disagree Where do you suggest drawing the line //<summary> /// Save a <see cref="Foo.Bar.Client.Document"/> to the repository with a new name. ///</summary> ///<remarks> /// The content location is an alternative w ...Show All
Visual Studio Express Editions Running Windows-Command Lines in 2005 Express Ed.
Hello! OK. I have a batch script that I am using and it works awesome! However, I want to make it work using Visual Basic 2005 Express Edition. Can someone show me examples on how to run windows command lines under a Visual Basic 2005 Express edition program So in other words… Having a form that shows an OK button disabled until my script that is running Windows Command lines in the background is finished. Then the OK button will enable. I know how to make the OK button disable and enable…I just want to know how in the world you can have command lines work in VB. Another quick question…what is a good book out there for a beginner Thanks Chapio Tall dud ...Show All
