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

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

PrashanthBlog

Member List

Tamizhan
Andrea Gramm
Rhubarb
Alastair Q
noNchaoTic
Mark Beiley
BhuttCrackSpackle
Krenshau
kiko_kiko
lukef01
Matt Grove
jewelfire
MilesP
Aleniko29139
leo1
CSharpNewbie22
Dietz
Prateek_cds
Anil Narayanan
CinoV
Only Title

PrashanthBlog's Q&A profile

  • Software Development for Windows Vista Problems with regsvr32 in vista

    Hi, My OS is Vista 64bit. And I've tried to write a native 32-bit COM DLL and use regsvr32 to install it, and the succeed message showed up. however, I found nothing was added in the registry. How to fix the problem By the way, I know there is both "system32\regsvr32" and "SysWOW64\regsvr32", and I've tried both. help me!! many thanks!! it puts them under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node. Although when you access or use the keys in your program the operating system transparently finds them there (without having to specify Wow6432Node in your program) ...Show All

  • Visual C# Looping through the pages of a Tab Control, and checking whether they contain a certain control

    I'm making a text-editor-like program with tabs for all the open documents, and need a "Save All" button, unfortunately, not all the tabs will contain a text box. How can I loop through each page of the Tab Control, check whether it contains a Rich Text Box control and if so save the text from it The code I'm currently using on my regular save button is: public void Save_Click( object sender, EventArgs e) { RichTextBox tempbox = tab.SelectedTab.Controls[0] as RichTextBox ; if (saveFileDialog.ShowDialog() == DialogResult .OK) tempbox.SaveFile(saveFileDialog.FileName, RichTextBoxStreamType .PlainText); } And this saves the text from the currently selected tab. Any help would be greatly app ...Show All

  • Smart Device Development how to re-draw controls on a Form at a regular interval?

    Hello everyone, I am using C# on a Pocket PC 2003 project based on .Net Compact Framework of Visual Studio 2005. I want to re-draw some controls of a Form (Window) at a regular interval (for example, change the title of some Label or something similar). The issues I met with are, 1. My application has several Forms/Windows. How to check whether the specific Form/Window (which I want to re-draw) is active If the Form/Window is not active, I think I should not re-draw the Form/Window. Am I correct Or, whether or not the Form/Window is active, I should always re-draw the Form/Window 2. Any code samples specific for C# of .Net Compact Framework thanks in advance, George You can setup a timer an ...Show All

  • .NET Development Xpath Question.

    I have some problems trying to read an XML file when the xml come with this 2 Atributes: xmlns =" http://www.testy.com/ICDocPg " xsi:schemaLocation =" http://www.testy.com/ICDocPg http://www.testy.com/ICDoc/XmlSchemaICDocPG.xsd" And this is how im reading the file: MyXml = new XPathDocument (XMLFILE.ToString()); Nav = MyXml.CreateNavigator(); Epr = Nav.Compile( "//EnvioICDoc/SetICDoc/ICDoc" ); XPathNodeIterator NodeIt = Nav.Select(Epr); while (NodeIt.MoveNext()) { ................................................ } the node iterator Give Count = 0. But if i remove this 2 Atributes i dont have any problem at all. Why the schema give this pro ...Show All

  • Visual Studio Tools for Office Right Click Menu for Contact in OutLook 20003

    I wanna add one extra action once I Right Click on any Contact under outlook.... is there any hint Hi There is no support in Outlook 2003 through the Object Model to add a context menu on an explorer window. It is possible to try and do this through API calls but this is not supported and is full of potential issues. Regards ...Show All

  • SQL Server External Stored Procedure in SQL Server 2005(x64)

    I have generated a DLL file in VC++ 2005 by a 'C' file. It works fine when I put in a 32bits machine(32bits Windows Server 2003 + 32 bits SQL Server 2005). However, when I build it into 64 bits, it doesn't work in a 64 bits machine. I have checked by Dependenct Walker, the DLL generated is linked with KERNEL32.DLL / OPENDS60.DLL / MSVCR80D.DLL, all of these DLL files are on the 64 bits machines and linked correctly. I used the command sp_addextendedproc 'abc', 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\abc.dll' to create a ext. stored procedure. When I run it, the error message shows that Could not load the DLL C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\abc.dll, or one of the DLLs it references. ...Show All

  • Visual Studio Express Editions How could I turn, String __gc* ,to BSTR in managed C++?

    Dear everyone, I am writing a managed C++ program. I get string from a text file. The StreamReader return String __gc* data type. I need to convert the "String __gc*" to BSTR before I could put into the function "hr = pDet->put_Filename". How could I turn "String __gc*" to BSTR Thank you. CComPtr<IMediaDet> pDet; CoInitialize(NULL); hr = CoCreateInstance( CLSID_MediaDet, NULL, CLSCTX_INPROC_SERVER, IID_IMediaDet, (void**) &pDet ); IntPtr ptr; String __gc* str; if(System::IO::File::Exists("directory.txt")){ printf("The file exist\n"); System::IO::StreamReader* strd = new System::IO::StreamReader("directory.txt"); str = strd->ReadLine(); //this->dir ...Show All

  • Software Development for Windows Vista Communicating a WorkflowAuthorizationException result from a web service call

    Hi I've already posted on this issue before but never got any answer that solved my problem. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=791955&SiteID=1 . Please have a look at this post to get some more background. My solution to getting an exception result back to the client is to allow the workflow to throw exceptions all the way up to the root of the workflow and terminate. The webservice activities will report this as a result of the call. I then, looking at another post, changed one of the SqlPersistenceService stored procedures slightly to not remove the instance from the InstanceState table for this type of termination of the workflow. Effectively throwing the in memory workflow instance away and maintaining ...Show All

  • .NET Development Dynamic Definitions

    I have data in 2 data stores, a SQL Server and a Visual FoxPro container and I would like to dynamically get the connection and adapter based on a variable. In other words, the following code: if (dataOrigin == "SQL" ) { string strConnection = proProperties.SQLConnection; SqlConnection hConn = new SqlConnection (strConnection); SqlDataAdapter oAdapter = new SqlDataAdapter (lcSQL, hConn); } else { string strConnection = proProperties.VFPConnection; OleDbConnection hConn = new OleDbConnection (strConnection); OleDbDataAdapter oAdapter = new OleDbDataAdapter (lcSQL, hConn); } try { hConn.Open(); } catch ( Exception ex) { return rtnDS; } The com ...Show All

  • .NET Development XML catastrophe - important for everyone

    A while ago I wrote a pretty simple but useful little app for taking notes. It uses a note hierarchy and saves each notebook in saparate XML. I am using the app for two years and everything worked fine. One of my friends also uses it and just recently he reported that he cannot open one of the notepads. I inspected the problem and saw that one of the xml files was empty! It's not really a great tregedy in this case, but it could be! I really doubt it that it is a bug in my code, since the only place I save the note is in the Note::Save() method which looks like this: public void Save() { lock(this) { this.WriteXml(this.notesPath); } } WriteXml method looks like this: private void WriteXml(string path) { XmlDocument xml ...Show All

  • Smart Device Development POCKET PC FIRST BUILD

    i got my first smart device, pocket pc to load yesterday. all night and all day i tried to compile the basic windows file. i am completely lost on how to get it to compile. can someone help me here are the ouputs for the basic compile.... ------ Rebuild All started: Project: cccc, Configuration: Debug Windows Mobile 5.0 Pocket PC SDK (ARMV4I) ------ Deleting intermediate and output files for project 'cccc', configuration 'Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)' Compiling... stdafx.cpp C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(51) : warning C4005: 'UNALIGNED' : macro redefinition C:\Program Files\Microsoft Visual Studio 8\VC\include\crtdefs.h(548) : see previo ...Show All

  • Visual Studio Team System Visual C++ compiler generated finalizer does not implement the Dispose pattern correctly?

    // C++ code ref class T { ~T() { this->!T(); } // destructor calls finalizer !T() {} // finalizer }; Error, Certainty 95, for ImplementIDisposableCorrectly { Target : Finalize():System.Void (IntrospectionTargetMethodBase) Resolution : "Remove the finalizer from type T, override Dispose(bool disposing), and put the finalization logic in the code path where 'disposing' is false." Help : http://www.gotdotnet.com/team/fxcop/docs/rules.aspx version=1.35&url=/Design/ImplementIDisposableCorrectly.html (String) Category : Microsoft.Design (String) CheckId : CA1063 (String) RuleFile : Design Rules (String) Info : "All IDisposable types should implement the Dispose pattern correctly." ...Show All

  • Visual Studio Team System File checkin said resolve changes as server was newer, and it wasn't?

    We noticed an issue when a delveoper shelved his changes, I unshelved his changes into my workspace, tested and then went to checkin and it reported that two files on the server were later versions than what I was checking in. This seemed impossible since the last change in one of those files was on 10/30/06 and it's now 11/15 and the changes we had made had just been done today. When something like this happens how can I track down the issue I believe the file I am checking in is the latest but want to verify my assumption is correct. How could something like this happen Thoughts I had was that maybe my workspace that I unshelved into was at an older version, but shouldn't unshelving the other developers shelveset have up ...Show All

  • .NET Development Regular expressions in XPathNavigator

    Hi all, I'd like to implement a function, which will search the XPathDocument (I'd like to use XPathNavigator). The problem is that xPathExpression is not so powerful to find, what I'm looking for. For example I'd like to find those nodes, which values match the pattern. The best way is to use regular expressions inside XPathNavigator (where I can specify the exact pattern). Unfortunately I haven't found a way how to use the reg. expressions with XPath. I read something about EXSLT.NET, but I didn't find an example, where is XPathNavigator.Select() method used and where the XPathExpression contains regular expression. Does anyone have experience with this issue or know about web page, where these examples are described Thank yo ...Show All

  • Software Development for Windows Vista Problems when designing Workflows "top down"

    Over the last few days I have been getting to grips with windows workflow foundation for some "non trival" business workflows. I tend to take a top down approach, creating some stubbed out activities, dropping them into workflows then continuing to update the workflows and the activities that they contain at the same time. The trouble is, WF in visual studio doesent seem to like this approach. I get some particularly nasty errors if I do things like rename the workflow file or add new dependency properties to an activity after I have dropped it onto a workflow. I have had to resort to hacking thew xoml to try and delete activities from the design surface (which is no doubt making my problems worse). At the moment I am struggl ...Show All

©2008 Software Development Network