Pat Shearon's Q&A profile
.NET Development How to: add user-defined function to XPath
Hi, I'm processing expressions from BPEL documents. These are standard XPATH expressions, extended by two simple BPEL specific functions. Of course my C# XPATH evaluator does not recognize these functions. Is there a way to add user-defined fuctions to the XPATH evaluator (user-defined function, extension object, script ...) Using C#, VS 2005. Regards, Tonn I think the article "Adding custom functions to XPath" still applies, even if it was written in relation to .NET 1.x. You might also want to look at the EXSLT.NET implementation as part of the MVP XML library if you want to have a look at a project that implements extension functions. ...Show All
Visual Studio Express Editions What the difference between VB 2005 express and VB 2005 Pro?
I mean only the defference between the visual basic. Best Regards, Yaniv problem is, you are using an old book which does not cover VB.NET! Get yourself a newer version, which covers .NET. VB6 and VB.NET are different and you will find many things are different or have been changed. Caption is replaced by Text in .NET. ...Show All
SQL Server Cannot convert between unicode and non-unicode string data type
HI. I'm having this problem. I use Visual Studio's, integration project to load XML file into SQL Server. In the XML file, i have defined collumns as string. When i try to load XML file with parts defined in scheme as string, i get an error "cannot convert between unicode and non-unicode string data type. Destinated collumns in SQL are defined as varchar and char. Thanks for help Post from another topic that might help... ------------------------------------------- Katrina, you are a goddess among men. For anyone out there who still has this problem, Katrina has led me to the solution. I was still a little confused when I read it, so here are the exact steps I took to change it. I w ...Show All
Visual Studio 2008 (Pre-release) Software Requirement to create WPF applications
Hi All, I have .net framework 2.0 and the OS is Windows Server 2003. I want to create WPF applications. What all do I need for this I tried by downloading NET Framework 3.0 Runtime Components (September CTP Build). Yet in VS I was not getting the needed templates to create XAML based applications. What am i missing .Please Help. Thanks in advance. Vaibhav You should start by looking at the release notes for our current public CTP. http://channel9.msdn.com/wiki/default.aspx/Cider.SeptemberCTPReleaseNotes In short, you'll need the following: VS 2005 .Net Framework 3.0 And the Cider September CTP. The release notes page will provide you with links for downloading everythi ...Show All
Windows Forms How to get two columns in a dropdownlist of combobox?
Hi I have a combobox to display the following in drop down list (I am using VB.net or VS 2005). Apple Peach Mango So How to make the dropdown list to display the following (Two Columns). (In access database you can add many colums to the combobox's dropdownlist) Apple | Fruit Peach | Grade Mango | Tropical After made the selction only the single column should display in the combobox Apple or Peach or Mango Advance thanks The standard combobox doesn't support multiple columns. Use solutions on codeproject like Multi column Combobox vb.Net Multi Column Combobox c# Auto Complete Multicolumn Combobox ...Show All
Visual Studio Express Editions idiots code book
hi everyone, i am a beginner to vb as are many who post here, i am putting together a book that explains all code statements and explains how they work and what they are doing better then some of the books i have read. i there is anyone who can submit their error mesages and solutions that will be great, also i will be posting all kinds of command questions as i have already done to others on other posts and i would be gratefull for yoiur explanation comments. i want to start with accept changes why do i use it and wehn dio i use it, what is it for thanks Try here: http://msdn.microsoft.com/vstudio/learning/default.aspx ...Show All
Visual C# Design Error
Hi All, I am using XPPanel in my application and whenever I try to make some changes in the code of the user control where XPPanel is present, I am getting this error in the design window and nothing is displayed .Also I keep getting some popup messages in idle state saying conversion failed. I am using VS 2005 Professional and I'm using Composite UI application block.I get the following error. One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. The variable 'xpPanel2' is either undeclared or was never assigned. Hide Edit at System.ComponentModel.Design.Serializatio ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shader Versions
I'm currently reading Wolfgang F. Engel's ShaderX2 Introductions and Tutorials with DirectX 9. So far, all SM 3.0 examples are written in asm. Is SM 3.0 supported by XNA And can it be written in HLSL Thanks. -Nick Ok, that makes sense. I'm also reading that the Effect framework is very useful for creating shaders. I'm familiar with Cg and OpenGL, and HLSL itself seems familiar... but Effect files look very foreign. Are there any resources that you'd recommend for learning them I'm considering this book: http://www.amazon.com/-COMPLETE-Effect-HLSL-Guide/dp/0976613212/sr=8-1/qid=1157044917/ref=pd_bbs_1/102-2706553-5240118 ie=UTF8 ...Show All
SQL Server INSERT TRIGGER - For you Guru's.
Why is it that this trigger fails to pick up the duplicate on an Insert from Select Statement INSTEAD OF INSERT AS BEGIN SET NOCOUNT ON -- CHECK FOR DUPLICATE PERSON IF NOT EXISTS (SELECT HOMEPHONE FROM CBIZ_CONSULTANTS N, INSERTED I WHERE N.HOMEPHONE = I.HOMEPHONE ) INSERT INTO [dbo].[CBIZ_Consultants] (HOMEPHONE ) SELECT (HOMEPHONE) FROM INSERTED ELSE PRINT 'SEND TO DUPLICATE TABLE' END --------------------------------------------------------------------------------- FOR EXAMPLE IF I HAVE THE FOLLOWING RECORDS. RECORDID PERSON HOMPHONE 1 JONN 415-555-1212 2 JON 415-555-1212 ...Show All
Visual Studio Team System Branch subfolders only
Hello! I have a TP(TP1) with a main folder and multiple subfolders in it. The main folder along with it's subfolders has been labeled at test123. TP1 Main subfolder1 subfolder2 subfolder3 ... I now need to branch the individual subfolders to team project(TP2) at the parent level. TP2 subfolder1 subfolder2 subfolder3 To accomplish this: 1. I can branch the main folder to TP2 based on label 123 2. Move all the subfolders underneath main to root 3. delete main folder I have 100s of these folders and moving is not an easy task for, even from the command line, I have to do it one at a time. I also tried applying the label in TP1 to sub folders only. But even then, I have to branch one ...Show All
Visual C# how to get value of finite element?
If i want to get 5 in this example: /item/<slash:comments>5</slash:comments>, just using: XmlNode xnd = doc.SelectSingleNode("/item/slash:comments"); ...then.... xnd.innerText; i had tried "/item/comments" and "/item/slash:comments", neither of them works fine.how can i get 5? oh,cannot find forums for xml/xpath, I assume then that "slash" is a namespace. In that case you are in for a world of hurt. The XPath parser requires that if you are going to parse documents with namespace prefixes then you must first define all the namespaces for the parser and then you must ensure that all queries for all elements use all the namespace pre ...Show All
Visual C++ C2664
Hello, I have declared two structure in my code: ref class DirectInput { public : LPDIRECTINPUT8 g_pDI11; LPDIRECTINPUTDEVICE8 g_pJoystick11; .... } when i want to pass these structure to a function it generate c2664 : hr = g_pDI11->CreateDevice( pdidInstance->guidInstance, &g_pJoystick11, NULL); and the error: error C2664: 'IDirectInput8W::CreateDevice' : cannot convert parameter 2 from 'cli::interior_ptr<Type>' to 'LPDIRECTINPUTDEVICE8W *' 1> with 1> [ 1> Type=LPDIRECTINPUTDEVICE8 1> ] 1> Cannot convert a managed type to an unmanaged type Thanks, Hanif Try this: pin_ptr<LPDIRECTINPUTDEVICE8> p = & ...Show All
.NET Development https server requesting a certificate
i manually go to a website and login, at first it had me set up a certificate, now it just asks me for my password. i want to run my app so that it starts iexplorer goes to that page sends a certificate info to the https server and sends my password so that i dont have to manually enter it. i am not really sure how to connect to the https server and send it my certificatio info and when its accepted how to send it my password. any ideas on how this might be accomplised what objects should i be looking at under Framework 2 It sounds like the private key for the certificate has been installed in the system in such a way that it always requires the user to enter a password. The private key for a certifica ...Show All
Visual C++ Location of windows temp directory from environment variables
Hi. I need to programmatically get the path to the windows temp directory in vc++(am using visual studio 2005). How do i do that Rahul Maybe GetTempPath function is suitable for you ...Show All
.NET Development ASP.Net web page in Subdomain
Dear Answerer I have a problem while accessing webpages, which is in subdomain The execution from the bin folder is not occuring. Response.Redirect(" profiles.profitsland.net/English/CENT2/PROFILE_TEMP_RED_ENG.aspx id=48 ") The WebPage can be viewed but Load() event is not executing What should do. Please Help ! george ...Show All
