polymorphicx's Q&A profile
Visual FoxPro Excel to cursor SPT problems
I am using a SPT solution to take information from a .xls file and importing it to a cursor with this solution: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=509710&SiteID=1 However, I am now receiving problems where before I had not. Now I am getting Error 1466: Connection handle is invalid. Any ideas guys I can't see what the problem is but it occurs at the sqlstringconnect( ) line. Thanks! Dave's code is a subset of what I've posted and I think I have posted it before (not sure). If it's coming during SQLExec() makes more sense, because as I said before you shouldn't trust all tables in Excel are named "Sheet1$". For example: use customer copy to mycustomer.xls type xl5 Open the xls in Excel and chec ...Show All
Visual Studio Migration from nAnt to msbuild
Migration from nAnt to msbuild My top level build process is controlled by nAnt. nAnt is an extra dependency and with the move to .NET 2.0 I can remove that dependency, if I use msbuild instead. Are there any tools or do I have to do it all by hand My build process is devenv based. I don't compile files using compiler. I make a high level call to devenv to compile an entire solution (basically I start a new devenv process). I think I have the same option with msbuild, but is there a better way to do it There aren't any tools to automatically convert nant builds to MSBuild. However, in your case it sounds like you're just using nant as the driver for the overall run, rather than as a fi ...Show All
Visual C++ Use win32 dll in the window application
Hi, I try to reuse my code from a win32 console application to a window application project, Then I try to make dll of win32 project and add it to the new window project, but I get error that said my win32 project is not .Net assembly. Can some one show me how to reuse my code or do I have to copy paste all the code and recompile it Thank you in advance, sorry for my poor english To use unmanaged Win32 Dll in other C++ application, you need to add .lib file to the Linker dependencies list, include Dll interface h-file to the client project .cpp file, and call Dll functions. This way works both for unmanaged and managed client. Unmanaged Win32 Dll cannot be added as reference, this way works only for .NET class libraries. ...Show All
Visual Studio 2008 (Pre-release) ICollectionView grouping
I have virtual IList<T> implementation (Db4oList) for db4o ( www.db4o.com ) object database and want to add ICollectionView implementation. I have described one problem with ObservableCollection here: http://forums.microsoft.com/MSDN/showpost.aspx postid=571091&siteid=1 But there is also related problem: Db4oList keeps only specified amount of objects in memory. E.g. say I have 1 000 000 objects (items) in it loaded from db4o database. I keep only 1 000 of them in memory when enumerating the list or using its indexer to access items. I have no problem with sorting or filtering, but the problem is with grouping, because when ICollection.Groups could have too many objects and because it is defined as ReadOnlyObser ...Show All
Visual C# Custom toolbars lost
Every time I create or edit a toolbar in VS2005 Pro, the changes are lost between sessions. Any new toolbar is gone; any modifications to the standard toolbars are also lost. I reckon you are right about the 3rd party controls. I have the same problem, I installed CoreLabs MySQLDirect and the problem started happening. I then uninstalled MySQLDirect and the problem went away. But does someone have a solution ...Show All
Windows Forms dataview count doesn't shows properly.
Hi I used dataview for a subset of rows , from a datatable. In that subset, there will be zero quantity and non zero quantity rows . and there may situation to move quantity value from one row to another row.(may be quantity can be moved from an existing row to a newly added row). after that non zero quantity rows has to be deleted. the dataview.item(i).delete works fine for, if I have more than two rows(either non zero or zero). The Problem is if I have Only one zero quantity row and another non zero quantity(newly created. quantity is transferred from that zero quantity to this new row). If I made attempt to delete that zero quantity rows. it deletes both row.(ie., the dataview.count shows 0 inste ...Show All
Visual FoxPro Problem trying to create an Encryption Library
I have followed the example for creating a C# Encryption Libary, but receive numerous errors with regard to no overload method ' ' requires 2 arguments, I have verified that my code is exactly as the example provided by microsoft and found no difference. Has anyone ever tried this code and had problems. Is there any other code to create an encryptoin library in C#. I would appreciate any and all assistance. I am responsible for figuring out how to encrypt the connection string for our web config files in Asp.net page. (we dont' have the .net 2.o framework, we are using Visual Studio 2003 with 1.x framework Thanks Heather - What have you modified in EncryptionTest or Encryption Classes - Have you these rows in En ...Show All
Commerce Server anatomy of commerce server 2007
Hi Members, It'll be great if any one of you could share with me more information on anatomy of commerce server 2007 and also wheather windows 2007 server supports all the features of commerce server 2007. regards, saradhi Hi Saradhi, I would recommend that take a look through the documentation available online . It is the most recent and will give you an overview of the system and the various components. It's a pretty typical web/database application in terms of architecture with business-specific systems. As for Windows "Longhorn" support, I'm not sure what features you are looking at specifically. I haven't tested it on Longhorn and given the "in development" status I would believe that the offic ...Show All
Visual Studio 2008 (Pre-release) A form with a 1000 text boxes, help required.
I have created a form with the new vs.net 2005 tools for rc1, and put a 1000 text boxes there. A ran the application, and the form opened (it took the form couple of seconds to render itself). Now moving the form on the screen (not resizing it), just moving it, takes 100% cpu, and it is very slow. I know what I wrote is just very basic, and there is a better way to do things in WPF, can you please point mo to any example that has a form with lots of controls over it The form must open instantly, render whatever is on the screen, and render the rest when I scroll the contents. Any examples I wonder if it would be any faster if you had a thousand or so TextBloc ...Show All
Visual Studio 2008 (Pre-release) XamlParseException Line1 Postion 9????
Ok i'm getting a XamlParseException in Line 1 Postion 9 well as far as i can see i dont see anything wrong their at all... I just love these Exceptions because theirs No information on how to fix it Any ideas System.Windows.Markup.XamlParseException was unhandled Message="Cannot create instance of 'Window1' defined in assembly 'SexyEyesBar, Version=1.0.2460.4298, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error in markup file 'Window1.xaml' Line 1 Position 9." Source="PresentationFramework" LineNumber=1 LinePosition=9 StackTrace: at System.Windows.Markup.XamlParseException.ThrowException(String mess ...Show All
Architecture Stored Procedure Approach for developing Applications: An Architecture Viewpoint
Hi, I have a designed a smart client application which talks to WCF Services --> BL--> DAL and finally the database. Since I know that I would using only SQL Server for this application, I am of the opinion for going in for Stored Procedures(for its obivious benefits) and having transactions being handled at Business layer using System.Transactions. My Lead Architect is against the idea of using Stored Procs. His argument is that with SP approach it would be a question of getting the right transcation boundaries and also ensuring that the messaging and the transction are in a single distributed XA transaction. He says that these things are best achieved through individual statements and not in SP since SP's have their own txns. But ...Show All
Visual Studio two configurations, two target conditions
Hi, In my application I have two configurations: Release PRODUCTIV Release TEST Now I want to be able to run different targets for for the two configurations. My csproj-file looks like that: < Target Name = " BeforeBuild " Condition = " '$(Configuration)'=='Release PRODUCTIV' " > < Exec Command = " cvs update web.config " /> < Exec Command = " cvs update web.config.customer.prod " /> < Exec Command = " xcopy web.config.customer.prod web.config /Y " /> </ Target > < Target Name = " BeforeBuild " Condition = " '$(Configuration)'=='Release TEST' " > < Exec Command = " cvs update web.config " /&g ...Show All
Visual C++ VS .NET 2003 VC++: SP1 introduces a nasty compiler bug
The following code will reproduce a newly introduced (SP1) C1001 compile time bug. Enjoy! -HB ----------------------------------------------------------------------------------------------- // BugTest.cpp : The "nasty bug" revealing application. // // CL /Od /FD /MTd /W3 /nologo /c /Zi /Gd /TP <---FAILS // CL /Od /FD /MTd /W3 /nologo /c /Zi /Gd /TP /EHsc <---SUCCEEDS class IAnyInterface { }; template < class ObjectType> class TC { public : TC( const TC< ObjectType > &right) : data(right.data) {} ~TC() {} private : ObjectType data; }; class Buffer { public : explicit Buffer (TC< IAnyInterface> ifac ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA play dynamic WAV files at runtime?
Is there a way to do this Seems to me that you have to construct the soundbank/wavebank by read them from a file. So, I would have to write the wav to a file before playing. Or did I miss some other functions/classes Thanks. You are right, XNA does not support dynamic, runtime created WAV playback currently. I am not sure if the workaround of writing to a (temporary) file will work (esp. on the 360; I always wanted to test it anyways), but you can use MDX or interop to DX on Windows to play (dynamic) sounds. ...Show All
SQL Server Comapre two values in same resultsets
Hi I want to compare values of two fields in same resultset. Like I have resultset whrre there are two fields Frequency and New_Frequency I want to compare this two like if Frequency = New_Frequency then do some logic. I tried with derived columun using Frequency == New_NewFrequency but it doesn't work. Let me know is there any way to compare Dnyandeo for derived column use in such a way a = case when frequency = new_frequency then begin some logic end else some logic end end or can u send me the script code that u had used for derived column ...Show All
