Software Development Network Logo
  • Visual C#
  • Audio and Video
  • Game Technologies
  • IE Development
  • Windows Forms
  • Windows Vista
  • Visual Basic
  • .NET Development
  • SharePoint Products
  • Microsoft ISV
  • VS Team System
  • SQL Server
  • Visual C++
  • Visual FoxPro
  • Smart Devicet

Software Development Network >> Jehan Badshah's Q&A profile

Jehan Badshah

Member List

Data Base
Swati Handa
Larsenal
maximc
cyberjoe2
chawacho
CassieC
DeBiese
bernb
ILoveOregon
Josh Smith
Zombie_002
Geert Mys
De Cowboy
CodemasterMM
LouisPeter
John Papa
Boo79
John Dunn
GregRyanLorenz
Only Title

Jehan Badshah's Q&A profile

  • SQL Server windows control library in a webpage accessing sql has a security error

    I know this should be the easiest thing in the world but I cant seem to find out how to allow my windows control library dll which is loaded in a webpage to access sql. It works perfectly from within visual studio though, what do I need to do allow my webpage dll to access sql without throwing a security exception Any links or help would be greatly appreciated. Are you using integrated security (what's the connection string Does it have a username/password there ). Probably you ARE using integrated security - in that case the user being used to call sql is the one configured on iis to run the website. Give permissions on the database for that (iis's website) user, or create an application pool usin ...Show All

  • Visual Studio vs2005 sp1 install fails

    On my computer (win2003) I get next message: The installation source for this product is not available. Verify that the source exists and that you can access it. On other computers it works... What can I do bye Damijan > Update to last post - uninstall the SP1 beta (from Add Remove Programs - with 'Show Updates' checked). I don't have the beta installed, but am starting to think I should install it and uninstall it just to see :) ...Show All

  • Visual C# Help on deciding a training institute

    Hello, I am not sure if this is the right place to post this, but anyway here goes. I am planning on doing a course on .net, a friend of mine suggested a training institute, but I am not too happy with what I have seen I would like some help trying to figure out if I have to invest in this course or not. I had a look at the course material and I saw that they were dealing with Delgates for the first time after they finished teaching Multithreading and Events Is this right My understanding led me to believe that delegates forms the basis of Events and Multithreading in .net Another factor that did not sit well with me that, their site does not work with Firefox at all I mean these people are supposed to be teaching web development but the ...Show All

  • Windows Search Technologies Outlook 2007 - WDS 3.0

    Hello, I installed the 2007 beta and also enabled the WDS search. But i'm unable to check the folders i want to index in the "search options". The title "Index messages in these data files" is gray. Any suggestions Greets, Peter msdnjota, You can disable the pop-up in Outlook 2007 beta by doing the following: Open Outlook and go to Tools:Options:Other:Advanced. Once there, uncheck "Show prompts to download Windows Desktop Search." Paul Nystrom - MSFT ...Show All

  • SQL Server I found a bug in Sql Server 2000!!!

    Yesterday I created a table in Sql Server 2000,using this script: CREATE TABLE [dbo].[User]( [Id] [int] NOT NULL, [UserName] [nvarchar](20) NOT NULL, [TrueName] [nvarchar](20) NOT NULL, [Password] [nvarchar](60) NOT NULL, [Department] [int] NOT NULL, [Mobile] [nvarchar](20) NULL, [Telephone] [nvarchar](20) NULL, [Remark] [nvarchar](200) NULL, [Enabled] [bit] NOT NULL, [Available] [bit] NOT NULL, CONSTRAINT [PK_User] PRIMARY KEY CLUSTERED ( [Id] ASC ) ON [PRIMARY] ) ON [PRIMARY] There was only one record in it: INSERT INTO [User] VALUES(1,N'SUP',N'Jim',N'213123',1,NULL,NULL,NULL,1,1) After I executed this script: UPDATE [User] SET UserName=N'f',TrueName=N'gg',[Password]=N'dfsdfsdf',Mobile=NULL,Telephone=NULL,Remark=NULL, Ena ...Show All

  • Visual Studio Tools for Office [VSTO v3 / Office 2007] Get value from a combo box content control

    Hello everybody, In a Word 2007 document, i'm using a combobox content control where items have been added programatically. On the ContentcontrolOnExit event I would like to display the value of the selected item. Here is what I've tried: void ThisDocument_ContentControlOnExit(Microsoft.Office.Interop.Word. ContentControl ContentControl, ref bool Cancel) { switch (ContentControl.Title) { case "CommerciauxDropDownList" : Word. ContentControlListEntry CommerciauxDropDownList = (Word. ContentControlListEntry )ContentControl; String SelectedId = CommerciauxDropDownList.Value; break ; default : break ; } } But I get an InvalidCastException on this line: Word. ...Show All

  • SQL Server sa Password change, fails backups

    i am supporting a instance of SQl 2005. The person here before me gave out the sa Password (PW) to too many folks. I changed the PW last week through the GUI. The application using the db works fine, but it looks like the db and trans log backups are failing. Do I need to change PW somewhere else as well Can you: - Restart SQL services - Identify the logon account used by your backup software to access SQL Server. In case it uses the SA account, change the password there too. Alternatively if the problem persists: - Create a new account (local or domain) that will be used to backup SQL Server, instead of the SA account ...Show All

  • Visual C# Inaccurate/Wrong calculations

    Hi, I working on a fairly large project in C#, combining numerous components such as SQL and DirectX. We all, however, seem to have come across a severe problem! We can't do basic arithmetic! For example, in VS.NET 2003, I need to subtract two UTC style time values - eg 11565456546546.1342345566 etc. double large_val1, large_val2; ... double difference = large_val1 - large_val2; Instead of the result I expect (and indeed the result shown in the Watch window during debug for large_val1 - large_val2), I get a servely rounded value instead - that is entirely useless!! Help!! I can do this in a standard command line / console application and everything works fine - why should there be any difference ! I have tried decimal, ...Show All

  • Visual C++ Use of __m128i as two 64 bits integers

    Hi, I'm trying to write an x64 implementation - targeted at AMD64 - of the lock-free queue designed by messrs Maged M. Michael and Michael L. Scott (go to http://www.cs.rochester.edu/research/synchronization/pseudocode/queues.html ) and referenced in http://www.devx.com/amd/Article/33290/1763 . The technique involves wrapping up pointers to the 'next' node in the singly-linked list as a pointer and a version. As pushes and pops occur, the algorithm constantly checks the version of either the tail or head node (when pushing/popping respectively) whilst it attempts to make modifications.  If the versions change during the push or the pop (meaning another thread has just completed a change), the thread restarts th ...Show All

  • Visual C++ INTERNAL COMPILER ERROR with VS .NET 2003 SP1

    This piece of code... class Class0 { friend class Class1; static Class1 class1_instance; }; class Class1 { Class1 function(Class0 &s) { return s::class1_instance; } }; ... causes the following error: Test.cpp(8) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2708) Gcc gives error: 's' is not a class or namespace I'm using Microsoft (R) 32-bit C/C++ Standard Compiler Version 13.10.6030 for 80x86 with Visual studio .NET 2003. I installed the SP1 but it didn't fix that. Compiler is right of course Since you are trying to access static variable. you should implement your Class1::function as follows   {return Class0 :: class1_inst ...Show All

  • SharePoint Products and Technologies Thumbnails displayed vertically with certain master pages?

    Hey Guys, Has anyone experienced Picture Libraries displaying thumbnail images in one column vertically I have noticed this happening when using the BlueBand and BlackBand Master Pages. I'd like to get them to display horizontally and cascade down like with the Default Master Page. Any suggestions Thanks! I have a similar problem. My thumbnails, most noticably for contact photos, do not resize correctly. This results in photo's being streched or displayed larger than he thumbnail restrictions. A refresh of the page in most cases corrects this, but as I am about to demo the product for the firm this doesn't give a very good impression. Has anybody else experienced this/ know how to combat it Is the best method just to ...Show All

  • Visual C# auto-generate p/invoke declarations

    can anyone advise if there is a tool (like a perl script or other utility) that will generate the C# p/invoke declarations for structures from a C++ header (.h) file I have a rather large file with a lot of simple structures and it would be great to run it through a tool, at least for initial review. You may want to take a look at http://www.paulyao.com/resources/tools/pinvoke.asp, the "p/Invoke wizard". It does exactly that. Although, in your situation it may be more appropriate to use C++/CLI instead as one of it's key features is mixed-mode assemblies, that is mixing manged and native code in a single dll or exe. ...Show All

  • Visual Basic Excel Interop Won't terminate after I change a cell

    Just when I thought all was well I hit another snag. I got this code to work fine Public Sub createSvcLabels( ByVal caseNumber As String ()) 'declares the variables Dim excelApp As New excel.Application Dim dsSvcLabel As New DataSet Dim partySheet As excel.Worksheet = Nothing Dim excelBook As excel.Workbook = excelApp.Workbooks.Add(System.Reflection.Missing.Value) Dim int As Integer = 2 Dim wordAp As New word.Application Dim wordDoc As word.Document = Nothing Dim dt1 As DataTable = Nothing Dim dt2 As DataTable = Nothing 'try to open Workbook Try 'Insert Into Excel excelBook = excelApp.Workbooks.Open( "C:\Program Files\DISCl ...Show All

  • SQL Server How to fail when ForEach File Enumerator doesn't see files

    I have a ForEach file enumerator that executes a data flow for every source file in a specified directory. If there are no files in the directory, the package executes with a result code of 0. I need the package to fail if there aren't any files found in the specified load directory. Is there a simple way to do this with the SSIS component, or will I have to script the entire file enumeration process inside script tasks to handle this requirement Thanks in advance for any assistance with this question. Please post replies to this forum. -Doug Yes, we need to fail it because the job scheduler we use will provide the appropriate notification or take appropriate action to try and resolve the situati ...Show All

  • Visual Studio Express Editions how to open IExplorer

    i have used this code and an error has occured C:\Documents and Settings\sajid\Desktop\web browser\Form1.cs(102): The type or namespace name 'webbrowser' could not be found (are you missing a using directive or an assembly reference ) tell me how to remove it The WebBrowser class comes under the System.Windows.Forms namespace. Just insert the using System.Windows.Forms directives on top of the file, if it isn't already there. If you're trying to open Internet Explorer through C#, try this: System.Diagnostics. Process .Start( "IExplore" , "http://www.microsoft.com" ); Hope that helps. :) ...Show All

©2008 Software Development Network