BerndMei's Q&A profile
SQL Server OLE DB2 Provider
Hi Running SQL 2005 standard edition, using OLE DB2 provider from Host integration server. When connected we can acces data with select statements, but cannot browse tables from import wizard in SSIS. Is there a hint or solution rgds It's probably the provider. The Enterprise Edition of Sql Server comes with a DB2 provider. You could also use an ODBC connection instead and see if that works. Finally, IBM might have a provider as well ...Show All
SQL Server installing sqlExpress (Advanced Services) will this break existing sqlExpress?
hiya, I have sqlExpress and sqlServerManagementStudio on my XP pro box. Will the installation of sqlExpress (Advanced Services) cause any problems IS thereanything that I shold be aware of in advance many thanks, yogi hi, it should not cause problems, as up to 16 different instances can be installed side by side, and at different service pack level as well.. so you can install a new instance of SQLX + Advanced Services as long as you provide a different instance name.. regards ...Show All
Visual Basic Edit properties of controls on other forms
I understand how to change the value of a textbox by making a new form in the code Dim Form2 as New form ... Form2.show() This however does not work for me, i need to edit existing form controls that i make in the designer. So instead of making a new form in the code, i wnat to just edit one i already made. Right now i can only get the code to run when I dim Form1 as new Form I cant dim it as new, then nothing works and i get null erros and such. Any help will be greatly appreciated, I did search the forums and all i found was what i have above and that wont work, atleast i dont believe it will. The reason you are having a problem referring to the controls you are creating in t ...Show All
Visual Basic Failed to add TableAdapter error
I've created a solution with a windows forms project and a class library project. In the class library I added a "DataSet.xsd" file. When I try to drag a "TableAdapter" from the toolbox to the design surface of the dataset I get the following error: Failed to add TableAdapter. Key not valid for use in specified state. in a messagebox... Any ideas how to get around this When I hit OK the tableadapter goes away. Thanks, Jason I've gotten the same error numerous time only it goes like this: Failed to add TableAdapter. An item with the same key has already been added. To resolve this problem : 1- Delete all data connections from your Data Connections Toolbox 2- Retrieve TableAdaptor ...Show All
Visual Studio Team System How to migrate a TeamProject for .NET 2.0 to .NET 3.0 ?
Hello! I have a TeamProject that has been created with VS 2005 and .NET 2.0. If I install now the .NET 3.0 extensions for VS 2005, will it be possible to use the .NET 3.0 features like WCF And after installing .NET 3.0 extensions will the TeamProject automatically become a .NET 3.0 application Or do I have to install the .NET 3.0 extensions for VS 2005 ***BEFORE*** I create the TeamProject in order to use WCF Best regards CSharpNewbie22 Put it this way, I've happily made a project use WCF by simply adding a reference to the assembly System.ServiceModel which is put into the GAC as part of the .NET 3.0 installation. As yet, I have not installed the .NET 3.0 extensions so I can't really provide a ...Show All
Visual C++ How to set Multithreaded DLL compiler option on compile time ?
Hi I am having a little problem. I have searched a web and msdn but didn't find any real solution. I have a static lib, with bunch of classes and functions. What I want to do is, when I create a new empty project and link to one header, it automaticly links to all required libs and sets compiler option. Multithreaded dll is the only thing I have no idea how to set. I know that this option is defined as _DLL. So is there any way I can do that P.S. I am using Visual Studio 6.0 The VS2005 CRT libraries are all multithreaded. The single-threaded versions of the CRT are no longer supported. #pragma comment(linker,...) is used to inject linker comments into obj and ...Show All
.NET Development specifying custom tracelistener needs strong assembly name
I've build a trace listener that traces out message to a rotating log file. The thing works fine. The deployment packages nicely registers it in the GAC so that I can reuse it wherever I like. What I would like to do is add it to the <system.diagnostics> section of for instance an simple application. The problem I have is that I have to specify a strong assembly name. like: < add name ="testGateway" type ="UnitedMobile.Diagnostics.LoggingTraceListener,UnitedMobile.Diagnostics.LoggingTraceListener, Version=1.0.1.0, Culture=neutral, PublicKeyToken=e861178d28f74af2" initializeData ="c:\log\Refund\{0:yyyyMMddHH}.log;1" /> For for instance the System.Diagnostics it is necesary to only specify the weak name: < ad ...Show All
Windows Search Technologies "Index Location" change does not work in WDS Advanced settings
We need to change the location that WDS stores its index. The WDS "options", advanced tab appears to offer this option, but when you enter a new location, it does not actually change anything. WDS continues to store its index in the same location. How can we make this work It is very insecure as it stands, and our company will not be able to use WDS if we cannot change the location of index storage. Thank you. Is there some other way to "restart" the service that I am missing-- what do you do Thank you. BTW, we just uninstalled WDS from several of our computers because system resources were suddenly overwhelmed by WDS and we had multiple crashes. I do not know why. Thank you. ...Show All
Software Development for Windows Vista Equivalent of ShowWindowAsync in .net
Does any body know equivalent of the following in .net ShowWindowAsync. Which is used to maximize the control by getting the handle. Thanks & Regards, M.S.Basha .NET does not have an equivalent for ShowWindowAsync. If you need it you'll need to p-invoke it: In C#: [DllImport("user32.dll")] private static extern int ShowWindowAsync(IntPtr hWnd, int nCmdShow); In VB: Declare Auto Function ShowWindowAsync Lib "user32.dll" ( ByVal hWnd As IntPtr, ByVal nCmdShow As Integer ) As Integer Note that you can maximize a form by setting its WindowState property to WindowState.Maximized. You only need ShowWindowAsync if you have a handle to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C vs C#
Currently I'm taking a C class at my university and I was wondering how different is C# from C code wise. Thanks Sebastian I started programming about 30 years ago with Basic. Many years later when I learned C I found it a bit different as far as the syntax was concerned, but conceptually I could do the same things in pretty much the same way. C had a few advanced features that let you get closer to the hardware and optimize your code, so you needed a better understanding of the machine to get into that part of it. Learning C++ and other object oriented languages has been a huge challenge for me. The difference between C and C++ is a much larger gap than going from BASIC to C. I felt the sam ...Show All
Visual C# how can I convert the system array to integer array?
Hello, How can I convert the system array to integer array Thanks, Tammy No problem, glad to be of assistance. The method I put above isn't terribly efficient. So if your code needs to be super quick then give me some more details of what you're trying to do with it and I can maybe make some suggestions for more efficient ways to copy arrays. ...Show All
Visual C# Problems adding a Excel Reference in ASP .NET
Hi I'm programing with C# in Visual Studio 2005... i'm trying to athomate a process using Excel.. but when i try to add the reference it doesn't do anything..what could be the problem I had the same problem today and I would highly recommend Microsoft to dig into that problem. My solution after several testings was to build the wrapper DLL using Visual Studio 2003 and using that DLL instead of the one that Visual Studio 2005 did not build ... Cheers Gerhard ...Show All
Windows Forms Graphics: How to create smooth Clip region?
Hello, I am trying to create a graphic that looks like a donut. The outside of the donut is smooth, but the inner circle of the donut is not smooth. Question: How can I make the inner circle smooth Here is the sample code. Thanks for any suggestions: ' ' Create circle Dim myCircle As New Drawing2D.GraphicsPath myCircle.AddPie(80, 80, 80, 80, 0, 360) ' Create cutout Dim innerCircle As New Drawing2D.GraphicsPath innerCircle.AddPie(95, 95, 50, 50, 0, 360) Dim innerRegion As New Region(innerCircle) ' Display e.Graphics.SmoothingMode = SmoothingMode.AntiAlias e.Graphics.ExcludeClip(innerRegion) e.Graphics.FillPath( New SolidBrush(Color.Green), myCircle) ...Show All
.NET Development How do I send an e-mail from a winform application?
I'm using C#, VS2005 and developing an application that needs to be able to send an e-mail when the user clicks a button. I've searched the web trying to find an example and I'm still lost. Do I try to interface with OutLook Some folks are using System.Net.Mail Any samples, suggestions will be appreciated. thanks, gary take a look at this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=760457&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=904133&SiteID=1 you would be better off using System.Net namespace to send emails as: its the correct way of doing this the end user may not have outlook installed at all the user may have a different email c ...Show All
SQL Server Publishing Web Application
Hello to everybody. I got a problem like this: I developped a project using Visual Studio 2005 Standard Edition on a XP pro x64 Machine using a developpemet data area on a SQL 2005 Express Edition. Everything is ok, even the user and profile management. But when I try to publish my application on IIS (we're talking about a little Intranet), I get my problems. I think is important to say that the server is a Windows Server 2003 and data (database reproduced as a backup of the developpement one) are under an SQL 2005 Standard. The strange thing is that by publishing the "site" VS create a DB under SQL Std named with the path of local ASPNETDB.MDF. I can reach everything, all data are ok, but when I pass the login page g ...Show All
