dragonfireking's Q&A profile
Windows Forms Drive Mapping
Hi again - can someone tell me how to map a network drive via vb.net. I can use Net Use in DOS to do it but is there anything in .net that keeps me from having to use a bat file to do this I have looked in the IO namespace but to no avail. thanks Rick I dont think there is anythin in .NET (though ...Show All
SQL Server The Clr-Enabled Option was missing!
Hello, where can i read about using .Net language triggers in SQL-Server 2005. If i try to set a breakpoint in VS-Studoio and choose Debug/Attach to Process i get the Message "The breakpoint will not currently be hit. No symbols habe been loades for this doucument." And what is the correct syntax for the SQLTrigger Attribute Partial Public Class Triggers ' Enter existing table or view for the target and uncomment the attribute line <Microsoft.SqlServer.Server.SqlTrigger(Name:="Trigger1", Target:="Table1", Event:="FOR UPDATE")> _ Public Shared Sub Trigger1() ' Add your code here & ...Show All
Visual C++ [VC 7.1] Buggy compiler behaviour with dllexport and const members
Hi all, when I __declspec(dllexport) a class with a const member (std::auto_ptr in my case), the compiler inadvertently tries to generate a copy constructor, which obviously doesn't work and generates compiler error C2558. Please see the following code sample: #include <memory> #include < string > #include <iostream> #pragma warning (disable: 4251) # if defined(_USRDLL) # define EXPORT __declspec(dllexport) # else # define EXPORT # endif class A { std:: string *m_pS; public : A() : m_pS( new std:: string ("foobar")) { & ...Show All
.NET Development Is it a good idea to throw exceptions in constructors?
Hello, Are there any pitfalls involved with throwing exceptions in constructors I use C# and VS2005. Many thanks, Ben I am currently experimenting with the using statement and throwing exceptions in a constructor and think the given answer is not fully correct. - class defintion above is not the way it should be done: finalizer/destructor missing - description not complete: if exception is thrown in constructor and object is in using list then the following appears to happen: using statement terminates before entering {} all objects created before exception occurred (in using list) are correct ...Show All
Visual Studio PLK - How long does it take to get approved
Hi, Question in subject line. I have requested a PLK and I have not received any feedback whether it was approved or not . Can someone tell me how long it usually takes Best Regards, Corrie Its not automatic and requires human intervention, but should not take more than a couple days. Ping vsipinfo@microsoft.com with your company info. ...Show All
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 VS2005 July CTP under Virtual PC - shortcutCLTDbg32.txt can't be read
I've been trying to install the July CTP of VS2005 Professional under Virtual PC SP1 which is running Windows Server 2003 SP1 and it invariably fails towards the end of the main install trying to read D:\VS\Program Files\Microsoft Visual Studio 8\SDK\v2.0\GuiDebug\shortcutCLRDbg32.txt telling me the file was not found and offering me the choice of Retry (which loops failing with the same message) or Cancel (which does a rollback). That file is on the disk and appears to be a multi-stream file. It can be opened in Notepad in the host operating system (Windows XP SP2) ie outside the VPC with no problems. Notepad displays its content ...Show All
Visual Studio Team System Manage Change request & symbol using in visio file !
I can see you have Establish Product Integration Procedures, Establish Verification Procedures activities in ProcessBootstrap.vsd and I wonder what you want to show here Can you explain more detail about two activities Why do you put them in "Change request control" In my opinion, I think Manage Traceability of requirement and Perform Configuration Audit is response to Configuration Management in CMMI, right If right, why do you put them in "Change request control" :) At the first time when I read the visio document, I guess the meaning of the sign: The black circle is used to show a signal or event, the hollow circle is used to show a ...Show All
Windows Forms Invalid 'integrated security' value in the connection string
Hi all, When i try to install server msi and source code msi. i get Invalid 'integrated security' value in the connection string at the end of installation process and then uninstall itself. Could you please help me Thanks Ali ...Show All
Visual Basic EventLogs in Vb.net
I have one exception message and i want to write this exception message into logfile and as well as to maintain the event log also. Public Shared Function ShowExceptionInformation(ByVal exMessage As Exception) As DialogResult Dim errorMsg As String = exMessage.Message --->functionality Required Return MessageBox.Show(errorMsg, "Application Error", MessageBoxButtons.OK, MessageBoxIcon.Stop) End Function I'm going to move your question to a VB.NET web forum where they should be better able to assist you. Thanks. Daniel Roth ...Show All
Visual Basic threading problems
Hi, I'm a total newbie at the forums I'm not even sure how to explain this but I'll give it a shot. I have created an app that launches an external program. Like so: global scrope Dim WithEvents proc As Process in a sub Dim si As New ProcessStartInfo(strProgram, strArgument) Before I launch the app I add a new handler AddHandler proc.Exited, AddressOf ProcessExited now comes the tricky part. I have this sub Public Sub ProcessExited( ByVal sender As Object , ByVal e As System.EventArgs) 'remove the handler to avoid being added more than once RemoveHandler proc.Exited, AddressOf ProcessExited Me .lbl ...Show All
Visual Studio Team System Deleting a branch
Is there only one way to delete a branch I created a branch I no-longer need so I was going to delete the folder in Source Code Explorer. Is this the best way to delete a branch Thanks for your help Graham In TFS a branch presented the same as any other file/folder. Feel free to delete it from SCE or the command line, it makes no difference. Of course, it's not a permanent deletion -- you can still undelete it, query its history with /slotmode, etc. like you can with ordinary deleted files/folders. We will support permanent deletion (Destroy) in a future version in order to save server disk cap ...Show All
Visual Studio Adding a New XML TextDocument
Hi, I'm new the extensibililty interfaces and have managed to figure how to dynamically add a new TextDocument to the application's Documents collection. I was wondering how to create a new XML document -- meaning the XML editor is managing the new document window Thanks very much. - Erik The XML Editor has it's own EditorFactory, so you can just call IVsUIShellOpenDocument OpenDocumentViaProjectWithSpecific with the XML editor factory GUID which is FA3CD31E-987B-443A-9B81-186104E8DAC1 and LOGVIEWID_Code if you want to be sure to get the XML text view rather than some associated XMl designer. ...Show All
Visual C# SQL SELECT statement
Hello. I have a problem with a SQL statement. When I run the app, I get a Line 1: Incorrect syntax near 'GEM'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Line 1: Incorrect syntax near 'GEM'. Source Error: Line 86: SqlDataAdapter adapter = new SqlDataAdapter(dataCommand); Line 87: DataSet ds = new DataSet(); Line 88: adapter.Fill(ds); Line 89: dgResults.DataSource = ds; Line 90: dgResults.Da ...Show All
Architecture O/R mapper requirements for domain layer
I have heard a lot of talk about disadvantages of various ORM solutions. Mainly that some use attributes and reflection, making your domain layer peppered with hints about how objects are serialized and complaints (probably false) that reflection is slow. Also, some frameworks don't support caching of domain objects. Some require you to derive all your domain classes from a base class provided by the mapper. Others can't provide typed collections. I gather that the most sought after requirements are as follows (I will update the list as people respond): Mapping should be completely external to Database and Do ...Show All
