GraemeH's Q&A profile
Visual Studio Express Editions Activex Error
Hello I am developing a software in vb express which has to use one dll made in vb6 On the deeloper machine it is working fine but on user's machine it produces the following error msg System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {4D0024E2-CDF6-4001-9D15-A9D5590559D9} failed due to the following error: 80040154. at WindowsApplication1.convertion_form_for_30_min.btn_process_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.C ...Show All
SQL Server Can't find SQL Profiler after Install
I have installed SQL Server Express, the configuration tools as well as the SQL Server Management Express --- However, I need the SQL Profiler. Where or how does this get installed with SQL Server Express hi, Profiler does not come with SQLExpress... it' only available with full blown SQL Server 2005 editions, as reported in http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx regards ...Show All
Software Development for Windows Vista Where did the support for the Summary property page go?
We have developed an application that uses compound documents and the summary info property set. In Windows 2000 and XP, there is a "Summary" tab for our files when you select Properties in Explorer. This is no longer available in Vista. Is this by design Can we reenable it somehow We are testing on Vista RC2. It used to work in Vista Beta 1 (or maybe it was Beta 2). In that version you also got information in the Details pane in the Explorer. /Thomas Ben Karas has now answered my question of where the properies went in Vista. See the comment section of this post . ...Show All
Visual Studio Team System Changing Variables At Build or Deploy
I've finally managed to get the variables to work so that I can add files to the database using $(drive) etc. instead of hard coding. I can't seem to get these variables to change when running from msbuild. I thought I could do something like this: msbuild /t:sqldeploy /p:Configurations="Sandbox";drive="C:";directory="Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA" premium.dbproj. Then, if I wanted to, set it to another configuration and change the drive & directory like this: msbuild /t:sqldeploy /p:Configurations="Development";drive="T:";directory="SQL Server\Data" But it seems to only use the default values that were set when I created this in the XML: ...Show All
SQL Server problem useing Stored Procedure form vb.net
i have created a stored prcedure but is always give error : and please check the ways is correct using stored procedure "Procedure or Function 'Add_Cb_Entry' expects parameter '@Date' , which was not supplied." Dim SqlPrm As SqlParameter Dim SqlCmd As New SqlCommand With SqlCmd .Connection = SqlConnection 'this is my connection setting .CommandText = "Dbo.Add_Cb_Entry" .CommandType = CommandType.StoredProcedure End With SqlPrm = SqlCmd.Parameters.Add( "@Cashbook_Id" , Nothing ) SqlPrm.Direction = ParameterDirection.Output SqlPrm = SqlCmd.Parameters.Add( "@Date" , SqlDbType.DateTime, 8, TxtDate.Text) SqlPrm.Direction = ParameterDirection.Input ...Show All
Visual Studio Express Editions Plot graph
In order to plot a real time graph (data versus time), is it possible to plot using GDI+ Is it a recommended way btw Or theres other better solution i think i now understand what does every part do for the graph, only this following section that im a bit confused about, i hope that you can give me some brief or rough explanation regarding it, thanks a lot.. Public Sub PlotPoint( ByVal X As Integer , _ ByVal Y As Integer , _ Optional ByVal pn As Pen = Nothing ) Dim xp As Integer = (-Y + FrameCoord.X_Axis_VertLoc) * Gain If pn Is Nothing Then g.DrawLine(AxisPen, New Point(X + Intersection.X, xp), _ New Point(X + ...Show All
Visual C++ trouble getting started
I have no programming experience and I have just installed microsoft visual studio 2005. I have a book on C++, it a few years old but i thought it would give me a start on learning c++. I want to compile one of the examples out of the book. How do I do that The book is teach yourself C++ by Al Stevens. Can anyone please help me out My guess is you typed #include <iostream.h> instead of #include <iostream> How is my clairvoyance skills ...Show All
Visual Studio Express Editions Strange issue when building an app :-s
When i build an application in visual studio express my firefox loads up and loads 3 websites. this is only when i build, install or run the application after install. Doesn't matter what i build i keep getting the same 3 sites. Does any one know what could be causing this ahmedilyas wrote: firefox Yeah. I hate firefox too! haha ...Show All
Visual Studio Team System Moving from Trial Version
We had a trial version of TFS on a small system and have been using it for a couple of months. I just received our new Server and will be buying a license for the server. Is it possible to move my project from this box with Team Foundation Server Trial Version to another system with TFS I do not want to lose all of our projects. Thanks. Bill Yes, but you can only move the entire DB -- not just one project. See http://msdn2.microsoft.com/en-us/library/ms252516.aspx You can also upgrade from Trial -> Standard edition in place. See http://msdn2.microsoft.com/en-us/library/ms404852.aspx ...Show All
SQL Server How to insert a new record (and get it's identity), if a record is not found
What I'm trying to do is write a query (actually it will be a sub-query) that gets the ID of a record using a standard SELECT/WHERE, but if the record is not found then I want to insert a record and return the ID of the inserted record. So far I've got this (which doesn't work!) SELECT ISNULL (( Select ContactID AS ID FROM [TileManager] . [dbo] . [Contact] WHERE ( [Salutation] = 'Mrs' AND [Forename] = 'Freda' AND [Surname] = 'Bloggs' )), ( INSERT INTO [TileManager] . [dbo] . [Contact] ( [Salutation] , [Forename] , [Surname] ) VALUES ( 'Mrs' , 'Freda' , 'Bloggs' ); SELECT @@IDENTITY AS ID )) Any help would be greatly appreciated. Rob: Be careful using t ...Show All
Windows Forms Mimic Windows Screen Identify
Hi, How can I mimic Windows screen identify function in C# In a multiple monitor setup there is an Identify option which throws up big numbers 1, 2, 3 etc for every screen. How can I achieve that in C# Thanks in advance. in .NET there is a Screen class where you can get the number of screens on the system. Screen.AllScreens.Length; //perhaps -1. then you can go through each screen and show whatever you want... foreach(Screen curScreen in Screen.AllScreens) { //whatever } Trying to find a way now by showing something on each screen.....but hope this gets you started for now and will post anything I found to show those numbers on each screen ...Show All
Community Chat What language do you prefer?
Could someone please enlighten me as to what the advantages and disadvantages of the following languages are, in general: C# C++ Visual Basic Also: I read somewhere that C++ was much better for game programming than VB, but why VB is easier to learn and use, so what are the advantages of C++ C# - takes it origins from C++ and uses the .net framework C++ - Platform independant. You can write a C++ app for anything VisualBasic - Easier to understand for new programmers C++ is much better for game programming as it is platform independant for one, another reson is C++ is a true OO (Object Orientated) Programming language and VB isnt so much VB is easier to learn and use and thats why it was invented. C++ is for the se ...Show All
Internet Explorer Development IE7 embedded webbrowser control and SWF/PDF files
My app embeds a webbrowser control. One issue I notice after installing IE7 is that if I browse directly to a SWF or PDF in the webbrowser control, the page is blank. If I browse to an html page that embeds a SWF, it works fine. Browsing directly to a SWF or PDF in my embedded webbrowser control works fine in IE6. Am I missing a flag/setting when creating my webbrowser control BTW - I'm using WinXP SP2. If I browse to the SWF or PDF in standalone IE7, it works fine. Now I have found another issue I need help with. Since I have installed IE7, anytime I click on a link, my computer slows down (to a crawl at best) until the page is loaded. Then everything seems to run normal (browsing, scro ...Show All
Visual Studio Team System Sharepoint sites for TFS disappeared
Hi Today I noticed a big problem with our TFS test server, the SharePoint sites for all the team projects are gone. The sharepoint sites haven't been visited for a few weeks due to the summer holidays, but they were certainly not deleted on purpose. This is not a big problem however, as these were only sample sites. The big problem is that it's not possible to create new team projects, I have tried both repairing and reinstalling SharePoint, but this doesn't seem to help. I would prefer not to set up everything all over again, so if anyone can help me get back on track I'd be very happy. Would you be able to post the error that you are getting on project creation from the logs Also - shot in the dark this one, but could one of th ...Show All
SQL Server How to get nextcounter for each row via a stored procedure and use it in insert into clause for each row
Insert into TestJobTable (BookNumber,BookCode,IsActive,SourceId,ContactNumber) select [exec getnextBooknumber 'Book'],BookCode,'1', @SourceId ,[exec getnextBooknumber 'contact'] from TestBookTableTemp where SourceId = @SourceId and BookCode not in ( select BookCode from TestBookTable where SourceId = @SourceId ) Here i have to select records from the temprory table and insert it into actual table. During insertion I have to execute stored procedure for two columns and get counter for that coumlumn for each row. What can i do Can any body please give me a solution of my problem even by using cursor Thanks ManiD Its look like a simple and common solution. Please guide me how can i change my Stored procedure to use ...Show All
