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

Software Development Network >> Javfarary's Q&A profile

Javfarary

Member List

Bigmo
kinny_k
Photoman
JIM.H.
smonet
Thinh
Andrew Shearer
DmitryMS
GLutz78
goh6613
ChitownDotNet
JFoushee
Tyrael Tong
Jeanvo
Sapna
Subtle
CrystalDeveloper
faraaz_malak_c92eb4
nhaas
Valery Zharkov
Only Title

Javfarary's Q&A profile

  • Internet Explorer Development get_Document returns NULL in IE7

    Has anyone seen this behavior In IE7, when get_Document is called on IWEBBrowser2, it returns NULL. Basically, I am doing the following in the OnCreate of the explorer bar (my explorer bar is based on an HTML control): CAxWindow wnd(m_hWnd); HRESULT hr = wnd.CreateControl(IDH_HTML_SPLASH1); CComPtr<IDispatch> pHtmlDispatch; CComPtr<IHTMLDocument2> pHtmlDocument; hr = wnd.QueryControl(IID_IWebBrowser2, (void**)&m_spBrowser); if (m_spBrowser) m_spBrowser->get_Document(&pHtmlDispatch); After the above last line, pHtmlDispatch is NULL. This seems to happen only in IE7. What could be the reason And if pHtmlDispatch is NULL how else can I get hold of the document Thanks When I tried get_To ...Show All

  • Visual Studio What versions of CR can create reports for CR in VS 2005?

    Hello. Sorry if this question has been asked a thousand times before but I could not find an answer. I am creating an ASP.NET web application where I use the crystal reports viewer (in VS .NET 2005). The customer for the application wants to design own reports for use with the web application. Which version of Crystal Reports should the customer use in order to be able to design reports that will work with the VS .NET 2005 crystal reports viewer I have the Crystal reports 10 developer stand-alone version and I made a report using it. The report shows up ok in my ASP.NET application but is only showing the data that was saved with the report in CR 10. Is this a compatibility problem between CR 10 and the VS 2005 CR viewer or am I m ...Show All

  • Smart Device Development GPRS Connect at Startup

    Hi again (again), Last question, I promise. I'm looking to start the GPS up wen the device starts. I don't mind changing hte registry for this, or doing it programatically. All the stuff I have found is either for C#, or the registry info doesn't exist in my phone. Once again, any help would be very appreciated. Cheers, Dan. HANDLE *phConnection = NULL; MessageBox(NULL,L "here" ,L "Error" ,MB_OK); HRESULT hr = ConnMgrEstablishConnectionSync(&pConnInfo, phConnection, 15000, (DWORD *)CONNMGR_STATUS_CONNECTED); Should be HANDLE hConnection = NULL; DWORD dwStatus; MessageBox(NULL,L "here" ,L "Error" ,MB_OK); HRESULT h ...Show All

  • SQL Server XP_CMDSHELL with variable

    Hello I want to execute the following: DECLARE @ToolsPath AS NVARCHAR ( 4000 ) DECLARE @location varchar ( 255 ) EXEC master . dbo . xp_regread 'HKEY_LOCAL_MACHINE' , 'SOFTWARE\Microsoft\Microsoft SQL Server\90\Tools\Setup' , SQLPath' , @location OUTPUT SET @ToolsPath = '"' + @location + 'Setup\Binn\sqldiag.exe" -E -O c:\sqldiag.txt -C' EXEC xp_cmdshell @ToolsPath My problem is in line EXEC xp_cmdshell @ToolsPath. It doesn't seem to accept the variable as where it works fine with the complete path I'm sure there must be a workaround or something. What am I missing Thanks! Worf Just a guess, but I do not think it is related to the XP_CMDSHELL s ...Show All

  • .NET Development NegotiateStream...Server rejecting client credentials

    I have some networking code that I have modified to allow for using the NegotiateStream to authenticate clients when they connect. I am having a strange problem where the authentication is failing with " The server has rejected the client credentials " (Logon failure internally). The weird thing is that the same exact code works on another machine. On the machine where it isn't working I can pass the CredentialCache.DefaultNetworkCredential and it works but using a username/password/domain for an account on the very same machine doesn't work. I am running on XP not connected to a domain (both computers). I have tried using several accounts in the credential for the client auth but no matter what account is used it fails wi ...Show All

  • .NET Development Dataset and asynchronous programming.

    Scenario: Consumer application calls a web service and receives a Dataset. Web service closes the connection since the request has been filled and its operations are asynchronous in nature. User modifies data and sends dataset back to be updated against the original database. Problem: An example I have seen to do an update to a database is using the SqlDataAdapter. The example implies that it is the original adapter that had served up the dataset. The code example calls the method Update with the changed dataset. My quandry is this, if the original adapter is no longer available, does the web service have to re-do the original query and then it can successfully Update Or can it be called cold....or am I missing something or is there a b ...Show All

  • Windows Forms Creating a Table Adapter from Access DB wrong date format

    Hey all. In my Access database the date format is dd/mm/yyyy but when I create a table adapter from my access db table it loads the date as a full time + mm/dd/yyyy format. An example from one of the rows: In my database the row has a date column which represented as 14/1/2007 and at the table adapter it returns the date as 11:07 AM 1/14/2007 and all the controls which are binded to this tableAdapter return this format. Where do I specify the date format for the table Adapter (Maybe in the select statement of the TableAdapter And if so, how do I accomplish this) Thanks in advance :) Thanks for the reply but its not working :/ My control is DataGridView and it is connected to &qu ...Show All

  • Visual Studio Tools for Office creating VSTO outlook Addin Setup File

    i have created an outlook addin using VSTO , if i run the program its working fine , but if i install from the setup file , installation is fine, but no menus or buttons getting added to to outlook express, can anybody help me out on this issue.. Hi Sarvan, I think the actual problem may be that you are trying to install with Outlook Express. You will need to use Outlook 2003 (or 2007). Thanks and regards, Darryn ...Show All

  • Visual Studio Tools for Office How to combine two ranges?

    Hi All Do you know any method that can combine two ranges Using following code I can't achieve this because COMException is raised with HRESULT 0x800A03EC: using Microsoft.Office.Interop.Excel; Range r = sht.get_Range( "B2,C3" , missing ); // faires COMException with HRESULT = 0x800A03EC: Steve Hansen wrote: If it doesn't work- DMitriy you should try this too - try the equivalent VBA and see if that works. I've added the equivalent VBA at the bottom. VBA analogue works fine. ...Show All

  • .NET Development FileLoadException error

    FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) We are randomly getting the above exception thrown in our processes while they are running. This started after we migrated our application to the 2.0 framework. The error goes away if the process (dllhost.exe or w3wp.exe). Somewhat related, fuslogvw doesn't work unless I specify a custom directory for the log locations. It doesn't log anything for COM+ applications also. Any thoughts How do I make fuslogvw work Even when I have a custom directory it doesn't log anything for dllhost. The more interesting issue is that the application works when rest ...Show All

  • Visual Studio 2008 (Pre-release) Exception while creating proxy

    Hi I have a java app that exposes web services. I want to consume those web services. When I ran svcutil against the wsdl I got the following error. Warning: Unable to import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.Se rviceModel.Description.XmlSerializerMessageContractConverter Error: Exception has been thrown by the target of an invocation. XPath to Error Source: //wsdl:definitions[@targetNamespace='http://localhost:808 0/MyApp/soap/MyApp']/wsdl:portType[@name='MyApp'] Can anyone tell me what could be the issue here Thanks Murali can you please send me java webservice wsdl file,my email id is madhup@microsoft.com -Thank you Madhu ...Show All

  • Visual Studio 2008 (Pre-release) accessing Sharepoint 2007 information using WCF?

    I know it can be done, but what is the best way to, say, access a list of Documents in a document repository then make them available on a website external to sharepoint Including allowing the end user to download the documents My website that will be accessing the data will not be on the same server as Sharepoint so I cannot use the OM, but I would like to create a WCF app on the Sharepoint Server and use it to gain access to the data. Can this be done easliy So I now have some code that can get each of the documents into an object, SPListItem to be exact, but now how do I server that document to the user on the ASP.NET site Thanks for any help! ...Show All

  • SQL Server MIgrating DTS packages of SQL 2000 to SQL 2005

    Hello All, I am working on a migration project of my database(lets name it DB1), from SQL 2000 to SQL 2005. I have some DTS packages in my SQL 2000 database which also needs to be migrated to SSIS. These DTS packages currently interacts with other database(lets name it DB2) which is also in SQL 2000 and which does the data transmission. The real issue is that the other database(DB2) also has some DTS packages which also communicates with DB1 (the db to be upgraded) and so when i migrate my DB1 to SQL 2005, i will have to change my DB2 packages also (although the change will be minor). Now considering that in future I might also migrate my DB2 to SQL 2005 I wanted to know what will be the right approach to follow. One is to modify the DT ...Show All

  • Visual C# C# codes.

    Dear All, I am developing a windows application using c# codes. What I first want to do is to enable that my application do a authorization where the pc is a valid one to run my software or not. Secondy how can I protect my exe files from being decompile. Thirdly how to give it a license and for it to run based on a license. Thanks. There are many protectors, its difficult to list them all :) see yourself. http://www.google.com.pk/search hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=.Net+Protector&spell=1 Salamander may be good but its realy expensive. You can see Memory usage of your application before and after protection with Eziriz using Task Manager ( ...Show All

  • Visual Studio Team System Branching Approach Inconjunction With Project References Approach - What is Recommneded?

    Hello, My team is implementing TFS with good success. We have a desired approach on how to handle our branching structure and how to organize our project references. The problem is how to integrate these two concepts into one simple set-up. Let me describe our desired approach to both areas and then discuss where the friction point occurs. Approach to Branching Based on previous experience and open literature, we want to take a “Branch by Purpose” approach to branching. There is an excellent blog on this subject that also contains additional links to review on branching, particularly from a TFS viewpoint ( http://blogs.vertigosoftware.com/teamsystem/archive/2006/03/30/2484.aspx ). Within a given TFS Proj ...Show All

©2008 Software Development Network