baldeagle16's Q&A profile
Visual Basic Passing a VB6 Oracle Connection to a VB.Net dll
Hi All, I've written a VB.Net dll which requires an Oracle connection to be passed so that database operations can be carried. The dll needs to be able to operate with .Net and VB6 so it's been stongly named, interfaced and been registered for COM Interop. When I try and pass an Oracle connection from VB6 to the dll i receive an 'Unable to cast object of type System.__ComObject to type System.Data.OracleClient.OracleConnection' error message. In the VB6 code I've declared the ADO connection as; Dim gadocon As New ADODB.connection gadocon.ConnectionString = "Provider=OraOLEDB.Oracle;Persist Security Info=False;User ID=OraUser;Password=OraPass;Data Source=OraDB" gadocon.Open Dim lclchart As New clsChartControl lclchart.NewChartOra ...Show All
.NET Development Web Service getting "Unable to connect to remote Server"
I have a very simple windows form with a button that calls a very simple web service. The web service should just return "true". When I run within visual studio, it works correctly and I can see the .net development server running. However, if I close visual studio and try to run the application, I get "Unable to connect to remote server". I created the web service in c# using visual studio 2005 and I selected "File System" for the location option but specified C:\Inetpub\wwwroot\TestConnection as the folder location. I am using .net 2.0, IIS 5.1, and asp.net 2.0.50727. I created a web setup project for the web service and ran the install. From IIS management, I can see the virtual directory and can browse ...Show All
Smart Device Development Power off/on with EXE on SD Card
If you run an EXE that resides on an SD card, then while it is running, you turn off, wait a few seconds/minutes then turn back on, will the app continue to work correctly or will it crash because the PPC had to remount the card and reassign file handles I developed an app, runs fine in main memory and runs fine on the SD card. However, when I power off, then on, the app will crash when it is on the SD card, but run fine it in main memory. Any docs, PDFs, URLs that go into detail about this issue Thanks, Hilton I'd like more on this one. I've had a few customers that have had the same experience - running an app from mountable storage fails after a sleep wake. The failure was not immediate - it usually ...Show All
SQL Server How to Refresh a Data Source View and autogenerate/Re-Deploy the corresponding Report Model
Hi everyone!, Our team is new to SSRS and we are trying to figure out how to refresh the data source view, autogenerate the corressponding report model and Re-Deploy the Report Model (rewrite existing Report Model) on the server on a periodoc basis or trigger the whole action whenever there is a change in the database on some specific tables. We prefer to do this action through a Agent job ( a diff approach is also welcome). Are there any stored procs out there Appreciate your time. -PN Hi, My project requirements goes the same way. I was trying to refresh the Report Model in the way mentioned by Teo. But the GetModelDefinition will fetch the report model SMDL. How to get the ...Show All
Visual C# Versatility/Practicality of C#?
Hey all, new to posting but ive been reading here for a few weeks. Anyway, on with my question (which probably has been asked in some way already)- How versatile is VC# compared to VC++ All I generally see are simple (*duck/cover* ) desktop applications. I've read that its possible to do game dev (including DX and OpenGL), but I have yet to find any engines done in C#. I have just looked at API's/engines/SDK's for games, but I have not gotten actually into manipulating/programming in them yet. I've done some basic reading on C# and I sort of want to get into it, but I plan on in a few years down the line working for Lockheed (or a defense contractor of some sort) or EA-Tiburon. I've been programming since I was probably around 10, ...Show All
Visual Studio Tools for Office VSTO 2005 Outlook Add-In Security Access Popup
I've built a VSTO Outlook Add-In that uses OOM to access properties of a MailItem. It is my understanding that Outlook trusts COM add-ins and therefore does not pop-up the Security Warning dialog when certain properties are accessed. This is the case in our development and test environments - no pop-ups. However, when we install the add-in at the customer site they get the Outlook Security Warning pop-up. What configuration settings or security policies should we compare between the test and production machines to see what might be causing the Security Warning The add-in is being installed on Windows Server 2003/Outlook 2003 SP2. Are you referring to the Outlook security template that has to be de ...Show All
Visual Studio Error on generic-classes having interfaces for where-clauses
Hi Anand, When a generic class has a where-clause that defines interfaces, these interfaces aren't displayed. The documentation of where-clauses only works for class-where-classes. Example: I would expect: public class PageBase<controllerType> : PageBase where controllerType : IControllerBase Instead I get: public class PageBase<controllerType> : PageBase where controllerType : If the IControllerBase was a class-definition,... it works ok! Stephan - This is a bug and I will log an issue for a fix by RTW. Thanks for providing me with this information. Anand.. ...Show All
Visual FoxPro LIST BOX
I can not use a list box.RowSourceType is 6.I am using a database with 37 records.The list box is showing nothing.Sometimes is showing some items but I can not select them. If I build a string from database the list box is working fine. If I not use "SET FILTER" list box is also working fine.Some ideas Thanks I tried but no result.This time I found the answer at : http://support.microsoft.com/default.aspx scid=kb;en-us;135754 I will work with strings, but your ideea is good and I will save it for future. Thanks, Daniel ...Show All
SQL Server Extending Derived Column Transform with custom function library
When data is imported from our legacy system, the same functions need to be applied to several columns on different tables. I want to build a kind of "Function Library", so that the functions I define can be re-used for columns in several packages. The "Derived Column" transform seems ideal, if only I could add my list of user-defined functions to it. Basically I want to inherit from it, and add my own list of functions for the users to select. Is this possible What other approaches could I take to building about 30 re-usable functions I know what you mean, but you should be able to use your existing transforms or one of the samples as a template, and then add your specific functions, which you would ...Show All
Smart Device Development Upgrade to Windows Mobile 6 from PPC2003
Hi, I own a Dell Axim 5 I haven't been using for 2 years now. For some reasons, I need a mobile device again as well as develop for it. I just upgraded to Vista and by re-installing my Axim, I notice that the now current version is Windows Mobile 6. My questions are... ...how can I upgrade my Axim 5 running PocketPC 2003 to Windows Mobile 6 (found nowhere on the web on where to buy/download/upgrade) ...which is now the current version of the .NET Compact Framework Thank you for your time ! Nico Unfortunately you can't just upgrade your PocketPC OS like your PC. Your OEM in this case Dell has to offer some way of reflashing the ROM. Check with them. v2.0 SP1 is the current version of .NET Compact Framewor ...Show All
Visual Studio Sandcastle : Attributes on methods
If I have attributes assigned to a method then Sandcastle displays the attributes as part of the Syntax block. This is acceptable (and possibly a good idea). However Sandcastle is also adding extra blocks to the output for the attribute. Consider the following example code: /// <summary> /// An example method, just for demonstration purposes. /// </summary> /// <param name="parameter"> This is the description of the parameter </param> /// <returns> The input parameter will be returned, along with a friendly greeting. </returns> [ SuppressMessage ( "Microsoft.Performance" , "CA1822:MarkMembersAsStatic" )] public string SomeI ...Show All
Windows Forms Datagrid: hange while scrolling
Hi I am using datagrid control in my one form. In each 2 second I am repopulating datagrid data using timer control. Problem is : while i am keep scrolling datagrid and same time datagrid is getting repopulate. i.e. objDatagrid.datasource = objdataTable; This point of time datagrid's scroll bar is stop working and when I drag the scroll bar the datagrid getting resize. then after you can not scroll the datagrid. So please help me out what this is heppening and please help me out to find out soulution. Thanks Thanks again for your help... using BindingSource object, i am facing similar problem. It is not sovling datagridview hang problem. I am using MS SQL Server. Well, I have also ...Show All
Visual Studio 2008 (Pre-release) DLINQ Designer and SQL Server 2005 schemas
Hi, I'm trying to use the DLINQ designer for tables in SQL Server 2005 that use schemas... so if I drag the table dbo.EXAMPLE.Sample into the designer... nothing happens, nothing on the deisgner, no code. SQLMetal WILL generate the code however. There's a lot of tables in the database, so I don't want to use SQLMetal... it generates everything. If I use a table without schema (eg: dbo.Sample), everything works ok. Anybody hit this problem Kev There are two distinct Orcas CTPs. The Feb CTP is where LINQ to SQL (formerly called DLinq) and the O-R designer have the bits to supercede May 2006 LINQ CTP. You should have the Jan Orcas CTP very soon but it is not a replacement for the May LINQ CTP. Thanks. ...Show All
Visual Studio 2008 (Pre-release) What is the status of Windows Presentation Foundation Everywhere (WPF/E)?
Hi, I'm interested in Windows Presentation Foundation Everywhere (WPF/E) as a possible alternative to Adobe Flex development. All the information and blogs that I can find are from back in March to May, e.g. http://blogs.msdn.com/mharsh/ Has anything happened since then What tools do I need to develop in WPF/E Where do I get the browser plug-ins (miniturized CLR for IE, Firefox, and Mac) Thanks, Mark I think this blog might be the one also to watch http://blogs.msdn.com/webnext/archive/2006/11/15/welcome-to-web-next.aspx ...Show All
Visual Studio Team System TFS Fails - Report Services Cannot be confirmed
Just a note to MS - TFS installation is a joke. A travesty. An embarassment. And as it's taken 10+ hours just to get to this point and we've decided to abandon this endeavour I wanted to let you in on some error the Reporting Services Configuration tool spewed out. Good bloody luck with this unfortunate product. ReportServicesConfigUI.WMIProvider.WMIProviderException: An unknown error has occurred in the WMI Provider. Error Code 80070003 at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.SetWebServiceIdentity(String applicationPool) David, I am sorry to hear you have had trouble with the TFS installation. I don't know if you were using the installation guide or not ( http://www.microsoft.com/ ...Show All
