Senormic's Q&A profile
Visual Basic System.DllNotFound Exception
I'm migrating from VB 6.0 to VB.NET 2003. There is a particular file abc.dll that I'm not able to add reference to, though its a dll file. When I try to reference it, the error is 'This is a not a valid assembly or COM component. Only assemblies with extension 'dll' and COM components can be referenced. Please make sure the file is accesible, and that it is a valid assembly or COM component' How can I reference this file If this is not being seen as a COM component you likely need to do a P/Invoke against it. In your old VB6 project, did you have a few ‘define function’ statements that reference ...Show All
Windows Forms [ANN] Cool new stuff in the Animal Farm.
I finally finished by pathfinding (and other utilities) package. Check it out! My hope is that new bug developers will find it much easier to get started and thereby increase competition. Good luck to all! LOL! I understand the man-hour investment all too well! I had the top herbivore for the majority of last year. Pax ...Show All
Visual Basic MyMovieCollection up to 153 build errors
Quick q before going deeper: Unzipped MyMovieCollection into C:\Dokumente und Einstellungen\gy\Eigene Dateien\Visual Studio 2005\Projects\Moviecollection\MyMovieCollection.vbproj and get up to 153 build errors. WinXPPro sp2 fully patched, VS2003, VB Express, SQLExpress,... Did I fail to install something Thx G Hi CRChambers, I've tried downloading online; however, I am unable to reproduce this error. Let's walk through the steps, to make sure I am executing the same steps you are. Then we will have a better chance of reproducing... Go to any of the following 3 download pages: http://msdn.microsoft.c ...Show All
Visual Studio Team System Call Dispose on each disposable field
This message is not shown by FxCop for .NET 2.0 if owner class is Windows form. public partial class Form1 : Form { Server server = new Server(); // IDisposable class // other code } If owner class is not Windows Form, message is shown. Is there any reason for this Alex, This is actually by-design. Unfortunately, as controls/forms typically have a number of Control fields that its base class is responsible for disposing, this rule had more noise than valid validations within these classes. Because of this, the decision was made to simply avoid firing in any class derived from Control. ...Show All
Windows Forms DataGridView: why not remove new row when saving?
I have a DataGridView bound to a BindingSource which in turn is bound to a collection of objects. In the BindingSource's AddingNew event, I will create a blank object, like this: private void myBindingSource_AddingNew(object sender, AddingNewEventArgs e) { MyClass obj = new MyClass(); e.NewObject = obj; } The problem is after I finish editing the current row, and press Tab key, it will go to the next row and a blank object will be inserted in the collection. Then whe ...Show All
Visual C++ Including resources in EXE?
First: Nikola Dudar - MSFT , this is a question about COMPILING C++ and resources and if I'm MISSING A STEP, it has NOTHING to do with crystal reports, my reports work FINE..now back to the question... I'm converting an app from VB to C++ that uses the CrystalReportViewer in a winform. The VB App seems to include the *.rpt files in the EXE file. When I compile the C++ program, move the built EXE to the network, it says it can't load the report. if I move the *.rpt files to the same network directory, the program runs fine.(I did not have to copy the .rpt's with the VB App) Am I missing something or is this just how it is when c ...Show All
Visual C# Inheritence of web forms
In .net 2005 when defining a web form (.aspx), the partial keyword is added, which as I understood, doesn't allow inheritence. How in this case can I inherit a web form Thanks. Partial type definitions allow the definition of a class, struct or interface to be split into multiple files. Just that. See: Partial Class Definitions (C#) , partial (C#) ...Show All
Visual Studio Team System Team Server - Settings - Security is disabled
Occasionally when I bring up the Team Foundation Server Settings menu, all but the last option will be disabled, presumably implying that I'm not allowed to use those menus (but I'm an admin on everything). Closing and re-launching Visual Studio restores the menu to correct operation. Anyone else seeing this behavior I haven't upgraded to the RC yet. I guess it's about time to do that - I'm not looking forward to it, but it's got to be done sooner or later :) Update - I've upgraded to the RTM version and haven't see this issue since. ...Show All
Visual Studio Tools for Office Revisions in Bookmarks
When I access a Microsoft.Office.Tools.Word.Bookmark object in my code I was hoping to use the Revisions property to get the revisions within only that bookmark. I seem to get all of the Revisions of the entire document. Is this the way it is supposed to work Bill Microsoft.Office.Tools.Word. Bookmark book; IEnumerator books = Controls.GetEnumerator(); while (books.MoveNext()) { if ( books.Current.GetType().ToString() == "Microsoft.Office.Tools.Word.Bookmark" ) book = (Microsoft.Office.Tools.Word. Bookmark )books.Current; else conti ...Show All
Visual C++ Can I build a simple Console application that does not use Sxs.
Basically I just want to build some simple console programs that I can move from system to system (2000/XP) as a single .exe without having to get into the detail of Isolated Applications or Side-by-Side Assemblies. I currently get an error at execution of 'This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.' if I just bring my SimpleC++program.exe to a Windows XP sp2 system. They all run like a champ on the system with VS2005 beta2. Any help would be appreciated. If you build an application in C++ that does not requ ...Show All
Visual Studio Express Editions Refresh a file
Ok what i'm doin is havin a crack at making my own mini messenger which operates over a network. it gets it's text from a textfile so what i need to do is refresh the file every so often. in other words i want it to open the same file every 2 seconds, so it does a kind of refresh effect on my richtext box. if u know what i mean. can u help me anyone thnks ...Show All
.NET Development Connecting to SQL Database
Can someone please tell me what I am doing wrong. I am not certain why I cant make the connection to my database. Any pointers would be greatly appricated. I keep getting the following message: Object reference not set to an instance of an object. 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.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 445: Line 446: Dim CPhoneNum, CWorkNum, CCell ...Show All
.NET Development Win32_StartupCommand lists only the First alphabetical entry of Startup Folders.
Preview Message Win32_StartupCommand lists only the First alphabetical entry of Startup Folders. Hi All I am trying to list all the Startup Commands of a computer using Win32_StartupCommand class. The code is: strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colStartupCommands = objWMIService.ExecQuery _ ("SELECT * FROM Win32_StartupCommand") dim strOut For Each objStartupCommand in colStartupCommands strOut = strOut &a ...Show All
Visual Studio Problem with PDF Export CR10 / VS.NET 2003
Greetings all, Im wondering if someone could shed some light on a problem im having with exporting to PDF. Im updating a report in an existing system - this report used to work fine until I installed VS 2005 on the system and now its stopped working. The project is still being deployed from VS2003 and the IIS on the local machine is using ASP 1.1 What is happening is quite strange - if we try to use the ExportToStream() method to populate an iFrame it works fine and Adobe Reader populates the report in the browser - if we are just sending it to HttpContext.Current.Response then it stops working. This is the code we are using: ...Show All
SQL Server Error: The task with the name "Data Flow Task" and the creation name "DTS.Pipeline.1" is not registered for use on this computer
Hi, I am trying to create a simple BI Application for SSIS. In Visual Studio 2005 I just get a Data Flow Task from the toolbar and add it to the project. When I double click it I get the following error: The task with the name "Data Flow Task" and the creation name "DTS.Pipeline.1" is not registered for use on this computer. Then when I try to delete it it gives this other error: Cannot remove the specified item because it was not found in the specified Collection. I am creating this application in an administrator account in this computer, so I doubt the problem is related to permissions. I am running ...Show All
