Marilyn Beaudreau's Q&A profile
SQL Server Updating Connection via VB.net
Hello, I created a fairly simple SSIS package that has two connections, a Flat File and a SQL Server Connection. Now the package works great by itself but I essentially would like to run it from withing my vb.net application. Basically all I am getting is a failure with no explanation thus I am sure I make something fundamentally wrong. Any advice would be greatly appreciated. Dim pkgLocation As String Dim app As New Microsoft.SqlServer.Dts.Runtime.Wrapper.Application Dim pkg As New Microsoft.SqlServer.Dts.Runtime.Wrapper.Package Dim idtsEvents As Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEvents90 = Nothing Dim re ...Show All
Visual Studio Support for users with Team Edition products by small ISVs
We've just received a bug report from a potential customer whose trial installation isn't working the way it should. Unfortunately, his installation is Visual Studio 2005 Team Edition, which we don't have access to (for us, I'm afraid the price is prohibitive). Although we can (and do) routinely test against VS2005 Professional Edition, given the scope of the additional features in the Team Edition, a successful test in Pro is not a reliable indicator of compatibility. To be anything like certain, we need to test against the Team Edition - even a standalone client installation without a corresponding TFS installation would almost certainl ...Show All
Visual C# MessageBox behind console window when run in debugger (F5)?
I have a message which looks like this: MessageBox .Show( "Init failed!" , "Trace" , MessageBoxButtons .OK, MessageBoxIcon .Exclamation); When I double-click on the .exe file in the debug directory the MessageBox appears on top of the console window (it's a C# console application). But when I press F5 to run it in Visual Studio 2005 the MessageBox appears behind the console window (it peeks out at the bottom of the console window). How do you get it to appear in front of the console window Have this sometimes aswell. add "this" as first parameter. MessageBox.Show(this, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX Application deployment
Hi There, I am working on a Direct3D application with C# 2005 Beta. It runs fine within and outside the 2005 IDE on my computer, but It won't run on somebody else's comp. (I can deploy non-directX applications though) The other person has the same version of DirectX (9.0c), and the .Net framework (2.0 Beta) as I do. On the other computer, the program crashes right away and it says " myProg has encountered an error and needs to close... " Is it enough to just copy and launch the "myprog.exe" file Do i need to forward the 3 DirectX DLL files that my program references. If so, is it OK to just copy them next to the exe file, ...Show All
SQL Server SMO ServerConnection common dialog?
Is there a common dialog I can use to prompt a user for connection information to be used to create an SMO ServerConnection object. Thanks, Take a look at the SMO samples that ship with SQL Server 2005. It contains a good example of a common dialog. The same dialog is used in all samples. See this post for a location of the samples: http://blogs.msdn.com/mwories/articles/smofaq.aspx ...Show All
Windows Forms BUG: Microsoft.ApplicationBlocks.Data
In one of the ExecuteReader Methods, I'm pretty sure there is a bug. Public Overloads Shared Function ExecuteReader(ByVal connection As SqlConnection, _ ByVal spName  ...Show All
Visual Studio .vstemplate - how to specify different <References> for different platforms?
Hi all, I can get my item template to show for Smart Device and Windows projects by using the following in my .vstemplate file: <ProjectType>CSharp</ProjectType> <ProjectSubType>SmartDevice-NETCFv2</ProjectSubType> <TemplateGroupID>SmartDevice-NETCFv2</TemplateGroupID> My problem is that I want the References included for SmartDevice projects to be different from the References included for Windows projects. I'm using the <References><Reference><Assembly> tags. Is there an easy way to accomplish this in the .vstemplate file If not, another way I can tackle ...Show All
Visual Studio Team System 64-bit Support Clarification
I'm researching installing Team Foundation Server in a Dual-Server environment and have a handful of questions. The following 64-bit support table is from the Installation Guide: Team Foundation Server 1 No Team Foundation Server (databases) 2 Yes Team Foundation Server (services) 2 No Team Foundation Server (proxy) No Team Foundation Server (build) Yes Team Explorer Yes 1 Team Foundation Server single-server deployment. 2 Team Foundation Server dual-server deployment. My questions are these: 1. Is the "Team Foundation Server (Services)" entry really the entire App Tier 2. Co ...Show All
Visual C++ System.MissingMethodException
I'm getting a System.MissingMethodException when calling a method in a dll that I wrote from exe that I wrote. Other methods in the dll work well and when I check it with ILDasm the method is there. The method has the signature bool MyMethod(IMyInterface1^ m1, IMyInterface2^% m2) Any clues Allan Moving the faulty method I got additional information from the system. This made it possible to see that the system expected another return type than the interface definition show (UInt16 instead of Uint32). After much dll deletion, cleaning and rebuilding I finally got it to work. Allan ...Show All
Visual Studio Express Editions Print to File
Visual Basic 2005 Express Edition: My application creates a one page report and prints it out. The page includes an image. Now, I would like to save that page to a file, so, that it could later be retrieved and viewed on the screen and also have the ability to reprint it. You have several options: 1. create a file format which you write out, storing all the information necessary. When you want to print it, your application can read it in then print it as normal. 2. Use a PDF Printer Driver to print it to a PDF. 3. As above, but create the PDF Formatted file yourself (it's an open form ...Show All
Windows Forms Multiline Textboxes and new lines
Trying to add an array of strings to a multiline textbox and I want each new string to be on a new line but C# doesn't want to acknowledge the /r and /n escape sequences. I agree with Nata1 that you should use Environment.NewLine. As for why the escape sequences were not recognized, though... the escape character in C# is ...Show All
SQL Server Multilingual report ?
Hi ! Is it possible to create multilingual report. What i mean is when i create an ASP.NET page i can add as many resource file as i have different language on my website. This will change all the texte on my pages to be in the language that the user have select. So i have just one page for 4 diffrentes languages. So i would like to know if it's possible to do something like that. I mean i don't want to do 4 reports if i have 4 differents users languages. Currently we need over 300 reports. So i don't want to have to do 1200 reports. It seems a little bit crazy lol Thanks ! Sorry about my bad English ^_^ ...Show All
Visual C++ Printing to Laser vs Inkjet
This is my first post, so please guide me if I have cjosen the wrong place. I am printing from my C++ application written under Visual C++ 6.0, and I can print fine to Laser printers such as LaserJet II or LaserJet 4400, but if I direct the print to a DeskJet printer, the document doesn't print and the printer status box always seems to dhow 48 bytes printed out of whatever the document size is. The code I'm using to start printing is..... ============================================== vertpos = 0; dinfo.lpszDocName ="Membership Card"; dinfo.lpszOutput = NULL; ...Show All
Visual Studio Express Editions Visual C# Express Build Events
I need to execute a command line statement prior to a build takes place and another command line statement after the build takes place. The place to do this is in Build Events on the properties for the project. However adding any command to either of the events results in a build failure (this is not a runtime error). The error message from the compiler is: "The command "blah blah blah" exited with code 1". The commands I'm creating are very simple (makedir c:\test) and work when ran from a command promt. Are build events not "really" supported in Visual C# Express edition or am I missing some extra an ...Show All
Visual Basic Equivalent of string$(X,"X") etc?
Just a quick question - I can't find the equivalent in VB.NET of the old Basic string$(n,a$) function, which would return a string of n a$'s, eg string$(5,"A") returns "AAAAA" Thanks v much, Thanks, yes, but I what I wanted to do specifically was to check if a string (of unknown length) was all zeros. In old qb I would have just said If a$ = string$(len(a$) , 0).... It seems a bit clumsy to have to create a new string for each comparison, but it might be just my unfamiliarity that make it seem so. Thanks, ...Show All
