Primate101's Q&A profile
Visual Basic ProjectName.ClassName.MajorVersion.MinorVersion
Need to know how to create components targetting web sites with class name like "ADODB.Connection.2.8". I have created a component but its class name is always being same irrespective of versions! For every version I want the class name to be ProjectName.ClassName.MajorVersion.Minor Version Please let me know how this is possible in VB You can set the assembly name to something like 'ADODB.Connection.2.8', and what will be the output, ie: 'ADODB.Connection.2.8.dll' But as far as I know there is no way to auto-increment this to match the assembly version. ...Show All
Windows Search Technologies WDS 2.6.5 - Problems with taskbar
I updated my WDS 2.5 installation to WDS 2.6. Now I have a toolbar in my taskbar that does not have a name and does not contain any icons. I can resize the toolbar but I cannot drop any icons in there so it does not seem to be a launch bar. If I open applications the windows box appears in a different tab in the taskbar. The toolbar is not listed in the properties dialog for the taskbar so I cannot turn it off. Do you have any idea how I can get rid of this toolbar/tab inside my taskbar It is taking away some space without providing any value :-( Thank you for your help. Ingo Have probably the similar problem in Win XP Tablet PC 2005. Sometimes have my taskbar doubled. Say if I open a word documen ...Show All
Visual C++ Adding filters when using Open File dialog
Hi, So I've created an SDI app using the MFC App wizard and set the Doc Template Strings' file extension as .txt, how do I add extra filters when opening a file using the default MFC file open dialog Lets say instead of: File(*.txt) I want to add more filters: File(*.txt, *.c, *.cpp) Is there a method to do this without overriding CWinApp::OnFileOpen() or creating my own CFileDialog like append the strFilter of the template I apologize for my poor explanation! In case of SDI or MDI projects, the file extension is stored in a string generated by the wizard, called IDR_MAINFRAME . You can see and edit it using Resource Editor --> String Table. Programmatically it can be accessed with GetDocString fu ...Show All
Windows Forms Possible DataSources for a TextBox (Help Please)
My question is this: What can be used as a DataSource for Formatting Text a Certain way The type of Text Formatting i'm working on in my project is a Casscading Style Sheet Generator,for a Site already In use(sorta like myspace.com)... Can you have a TextBox Read & Apply the text on a StyleSheet (CSharp) or would it have to be say a XML file Than the Form Controls will Edit the right sections of the CSS Example : table.user_aboutme { border:2px dashed #6694cf; <----------- Auto Insert of Color from CSS Supplied to the program text-align:left; padding: 2px; } td.user_aboutme_hdr { text-align:left; color:#2d7bbb; <------------------- In Every Spot threw out the CSS Supplied(DataSource) background-color:transparent; ...Show All
SQL Server Creating tables with SQL Scripts (SOLVED)
In sql server 2003 I would create tables with generated sql scripts. This way I could easily create duplicate dev environments. Now in SQL 2005 Dev edition I try to run my scripts to create tables. I create a db [MSS]. They run successfully but there is no table created. (example script)USE [MSS] GO /****** Object: Table [dbo].[KataNames] Script Date: 08/17/2006 13:28:14 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[KataNames]( [Kata] [char](30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [SequenceId] [int] IDENTITY(1,1) NOT NULL, [Description] [char](500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [Style] [char](25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY] G ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Some thoughts on XNA Game Studio / Framework
First of all, I'd like to note that what Microsoft is attempting to do with XNA is commendable. Game development is notoriously hard, getting harder by the month in fact. So Microsoft's goal of simplifying the process, opening it up to a whole new audience of student and hobbyist developers, is a natural one. However, actually attaining that goal is going to take a lot more than XNA. Here's why. The process of game development is difficult for a variety of reasons. When a new programmer first begins to learn game development, the earliest things they will have trouble with are things like wrangling the windowing system into doing what they want it to, reading input, drawing triangles, and loading content into their app. But once they've le ...Show All
SQL Server Restore all data (system must not exit during restore) using SQL DMO
I am using the SQL DMO to do my backup and restore. The restore works fine for one thing. I there is current connections on my database I cannot perform the restore. I need to be logged on to the system to be able to do the restore (restore must be built into the system), but if I log in I cannot do the restore of the database. Need help ASAP!! Thanks!!! I am taking back up of database ABC (ABC.bak )from Server A. My application need is such that i should be able to restore ABC.bak on server A as well as Server B. My ASP Application is connected to server A. so while restoring back up, db already exists ,I am overwriting the current but different application users are connected to server A. therefore resto ...Show All
Visual Studio Express Editions how can we analyze the contents of datagrid view into excel?
how can we analyze the contents of datagridview into excel like in ms access...after query we we can analyze it in excel how can we do that One idea. Use a Reportviewer to export data from a Report to an Excell or PDF file. Of course that the reportviewer is a control to print data to a printer, but still it can export data to Excell. You have to create a new form with a reportviewer, and a report where you place the fields that you want to export. Best regards. dp ( www.webhostservices.biz ) ...Show All
Visual Basic Strange Aritmetic overflow
I am getting a weird arithmetic overflow error. tB(Offset + 2) + (tB(Offset + 3) << 8) does not work. Even though tB(Offset + 2) = &HFF and tB(Offset + 3) = &H3F but &HFF + (&H3F << 8) does work. I do not understand. Any Ideas Thanks. I have a theory troy. We dont know what the datatype of TB is. For the last year people have been explaining to you that bytes have eight bits. If tb() is a byte array (tB(Offset + 3) << 8) Will never ever work and will inevitably generate an over flow. But we can't know because you didn't specify TB's datatype. ...Show All
Visual Studio 2008 (Pre-release) Many-to-many relationship keys in DLinq
When mapping a many-to-many relationship, if the two foreign-key holding fields on the joining table are marked IsIdentity="true" then DLinq throws an error when attempting to traverse the relationship: A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.DLinq.dll at System.Data.DLinq.ProviderBase.DeferredSourceReader`1.QueryableLink.BuildQuery() at System.Data.DLinq.ProviderBase.DeferredSourceReader`1.QueryableLink.get_Expression() at System.Data.DLinq.ProviderBase.DeferredSourceReader`1.QueryableLink.GetEnumerator() at System.Data.DLinq.EntitySet`1.GetEnumerator() at LinqManyToMany.Program.Main(String[] args) in c:\DEV\SRC\trunk\Temp\Linq\LinqManyToMany\LinqManyToManyAttributes\ ...Show All
SQL Server xquery and attributes
i have some data stored as xml in a datatable which i need to extract and work on. Have looked at the SSIS XML Source control - but the problem is that the data is stored in the attributes rather than the elements - so am now trying xquery as a method of getting the dataout <my:case_common xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:my=" http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-07-25T01:09:46 " my:CaseID=""> <my:reporting_authority my:OfficerName="" /> <my:case_identification> <my:name my:Surname="MarkTest" my:GivenName="Mark" /> <my:nhi my:IdentNumber="777777" /> <my:address my:housenumber=&qu ...Show All
Visual Studio Tools for Office Outlook addin setup, runtime error after install
Hi, After building the setup program for my addin I copied it to a random machine with the standard .NET 2.0 package installed. Setup was OK but the plugin does'nt load! Outlook says my add-in encounterd a runtime error. I did some searching on this forum and found out this is due to a CAS problem. In one topic there was a code workaround, but I did'nt really understoot how to get it working (also lost the URL). And I also found out I could fix the problem if I used .NET 2.0 configuration manager to add my plugin dlls to the assembly cache. But the manager application is only included in .NET 2.0 SDK and I'm not going to install the SDK on all the client machines! Let allone configure every machine by hand. Can someone help me ...Show All
Visual Studio Team System How to debug FxCop custom rules in VS2005
How to debug FxCop custom rules in VS2005 i found the resolution at some place the step as following: Debugging custom fxcop rules - with out using stand alone fxcop 1.35 - devenv.exe with the /debugexe switch - FxCopCmd.exe with the right arguments - create an .fxcop project (test project on which you want to run your rules on) fxcoptest.fxcop file - < xml version="1.0" encoding="utf-8" > <FxCopProject Version="8" Name="Sample Library Code Analysis Project"> <ProjectOptions> <SharedProject>False</SharedProject> ...Show All
.NET Development Large payloads and memory allocation
I have a web service method that returns a fairly large payload - around 70MB of xml. The client application break on receive with the OutOfMemory exception. Now, I understand that even though my workstation has 2 gigs of RAM it doesn't mean that all of that is available to my application. But how do I know how much memory IS available How is the memory allocated How can I calculate the hardware requirements for my scenario The stack trace is very generic unfortunately: System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid. Check InnerException for exception details. ---> System.IO.IOException: Unable to read data from the transport connec ...Show All
Visual Studio Tools for Office Add Click event to New Mail button
I'm using VSTO2005SE and would like to add my own event handler to the New Email button on the Standard toolbar. The button is of typ msoControlSplitButtonPopup, so it cant be casted to CommandBarButton. If I cast it to CommandBarControl I cant add my own event handler to the Click event. Reflection doesn't allow me to add event handlers either since it's a COM object. How can I add my own event handler to the New Mail button (id 1874) Please please help! // Johan Thanks for your reply. The NewInspector event fires to late for what I'm trying to do. I want du display a dialogbox where the user can select a signatur template that is populated with personal information. The personal information can change from mail to mail ...Show All
