cristianin's Q&A profile
SQL Server Importing data from a text file with quotes
Dear all, I trying to import a set of datas from a text file to a table call Movement . Table structure for Movement is as following: 1, JobNo, Character (10) 2, Date, smalldatetime 3, ItemDesc, Character (100) 4, StaffID, Character (5) 5, Quantity, Decimal(10,4) 6, Completed,Bit text file sample contains: "T200601100";1/10/2006;"A3 papers, Plastic covers","T1001",500,1 "T200601101";1/11/2006;"Ink Refiller for MF0012/3","T1001",5.5,1 "T200601102";1/12/2006;"1' roller","T1012",50,1 "T200601103";1/13/2006;"A1 Papers White, A3 Paper Black&qu ...Show All
.NET Development DataGridView Problem
I recently started using ADO.NET with VB/C# .NET and I'm really liking it. I also recently ran into a problem with the DataGridView control. I added a DGV Control to my Windows Forms application and bound it to a DataSource. Now it's working great and everything but anytime it has enough rows to warrent the use of the Vertical Scroll bar it locks up my Apps UI for some reason. I can't for the life of me figure this one out. If anyone has any suggestions/comments please post them. Thanks! -Chad Figured it out-- it was becuase I was calling the sub that was adding this information into the DB was on ano ...Show All
.NET Development Dotfuscate Delay Sign TroublShooting
I'm trouble shooting my obfuscated program. I'm using vs2005 with delayed signing option from the project settings and reading the hash from a key.snk file. Going by the book, I sn -Vr to register it to ignore strong name verification and everything is fine. I obfuscate and then sn -Vu to unregister it before finally sn -R to resign the assembly. I have runtime problems that can't find the obfuscated application/assembly. I used the fusion log, and this is my latest progress. Using the Fusion Log Viewer, fuslogvw. The log error is: The operation failed. Bind result: hr = 0x80070002. The system cannot find the file s ...Show All
SQL Server SQL Server June CTP Installation With SQL Server Express
Hello, I have installed a copy of Visual Web Developer Beta over the Internet which comes with an April version of SQL Server Express. I tried to install SQL Server 2005 June CTP on the same machine but it says it has incompatible beta components from Visual Studio or SQL server. Does this mean that the two can't co-exist on the same machine Hello. 1) Stop and disable SQLEXPRESS service in one of the service managers 2) Run " SQL Server 2005 June CTP \ Setup Tools\Build Uninstall Wizard\sqlbuw.exe", this should uninstall your ".NET Framework" and might remove your " SQL Server Express", but not your "Visua ...Show All
.NET Development VB6 to VS.Net 2003 change
I'm trying to convert a VB6 DLL (that someone else wrote) - many lines are parameters that need converting that have 'System.DBNull.Value' in the original - - the report says this is an erroneous use of the Null/Isnull . Here's the code: If BillCust > 0 Then Call colParams.Add(objDB.CreateADOParm("@BillCust", ADODB.DataTypeEnum.adInteger, ADODB.ParameterDirectionEnum.adParamInput, BillCust)) Else 'UPGRADE_WARNING: Use of Null/IsNull() detected. Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm keyword="vbup1049"' Call colParams.Add(objDB.CreateADOParm("@BillCust", ADODB.Dat ...Show All
Visual Studio Team System Sharepoint Portal Server is not compatible with Visual Studio Team Foundation
Hi All When I'm trying to install Beat 2 VS 2005 Team foundation getting this error. I have installed Sharepoint portal server 2003 and Sharepoint portal windows service with service pack 1. Also I have installed sharepoint language pack also. But still Im getting this error. Anyone could you plz help me Thanks in Advance. Regards, Raghu For this BETA2 release of the Visual Studio Team Foundation the installation must be prefromed specifically as outlined in the Visual Studio Team Foundation guide. chemas-microsoft-com ffice ffice" /> > > > > The requirements of installation are for specifically Microsoft Windows SharePoint ...Show All
Windows Forms VS 2005 Designer Error when dragging UserControl Onto Form
I created a form that uses Enterprise Library - DAAB - version Jan 2006 to access the DB in its constructor. Everything works fine; however, when I created a UserControl that attempts to store that form as a variable, the VS 2005 designer will not let me drag that UserControl onto a new form. It gives me the following error: “Failed to create component ‘UserControl’. The error message follows: ‘System.NullReferenceException: Object reference not set to an instance of object. At Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.get_DefaultName(), at Microsoft.Practices.EnterpriseLibrary.Data.DatabaseMapper.Ma ...Show All
Windows Forms Debugging ConvertTo method of an ExpandableObjectConverter
I have two struct properties for my control and both properties uses their own typeconverters (inheriting from ExpandableObjectConverter) which basically has the same implementation. The first one is just a Size type and the InstanceDescriptor inserted in InitializeComponent works. The second one is a custom type struct (two booleans) yet I don't get the Initialization& ...Show All
Visual C++ trying to start an app
Ok I tried searching, but can't seem to put this together... I have some buttons set up and I'm trying to add code to get it to open another *.exe I'm trying to open notepad. And I'm using the forms designer to create the buttons. Here is what I've tried (from searching) private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) { CString CommandString = "notepad.exe"; system(CommandString); }; ...when compiling this gives me: error C2065: 'CString' : undeclared identifier error C2146: syntax error : missing ';' before identifier 'CommandString' error C2065: 'CommandString' : undeclared identifier ...Show All
Software Development for Windows Vista What are the minimum requirements for hosting the design surface?
Hello I have a legacy system into which I would like to have a workflow designer. As it is a legacy system, I really don't have much more than a HWND to work with. Is it possible to host the designer in this sort of environment Best Regards Peter Villadsen The design surface is based on System.Component so you need to have the .NET CLR loaded in your process at a minimum. I think that your HWND will also need to be associated with a Microsoft.Windows.Forms style window. There's a lab on how to host the designer (Lab 12) in our downloadable hands on labs here . Regards, Paul ...Show All
Windows Forms Binding Sourceobject seems fix to SQLExpress with VBExpress
Hello, I am using VB.NET 2005 Express Edition and I am stuck in connecting Binding Source object to SQL Server 2000. I looks like it is fixed to SQLServer Express. Is there a way to go around this Is this the limitation of VB Express Edition Any help would be appreciated. Regards, Cesar To use SqlConnection, you need to code everything yourself. And you don't get the new design-time features for data binding the controls on your forms. I don't use web services myself, but it seems like a good alternative... ...Show All
Visual Studio login and password
Hi! Is there is any possibility in VSS, that we can map it with active directory login and password or can we have in the network environment in VSS automatically windows login and password thanx If you mean VSS2005, then no, it won't support AD integration. Alin ...Show All
.NET Development Binary file I/O - use FileStream Class or BinaryReader/Writer?
I am doing binary byte oriented File I/O. with non-sequential access. I started using BinaryReader and BinaryWriter Classes. I soon discovered that those classes don't apparently do Seek etc. so I switched to using the FileStream Class. I cannot see much advantage in using BinaryReader/BinaryWriter when I can do everything I need to do with FileStream. When would it be beneficial to use BinaryReader/BinaryWriter and not the FileStream class Thanks, David Harrison well one major difference is the ease of reading/writing data. The Reader/Writer are nothing more than helpers for the stream you c ...Show All
SQL Server SSIS Requests...
May be it's too late, but I think this requests could be scheduled at least for a SP1 if it's not possible for the RTM. 1) Execute Task without debugger: it would be very nice to be able to execute a single task without going in debugging mode. Just as you would ask "Start Without Debugging CTRL+F5" but for a single task 2) Customize default properties for task and component: when you drag a task on the package you get a default value for the properties that you could want to change; often I need to change the same property in the same way each time (for example I'd like to set the Batch Size for a OLE DB destination to 1000 instead than 0 ...Show All
Software Development for Windows Vista Planning Application Development: Reference about 'Where to Put Stuff'?
Forgive my profound ingnorance, but having access to all historical documentation is not helping : I need to plan for Vista while maintaining XP compatability. The systems admins where I work (gov site) are really turning up security. Back in the old days, we wrote apps with INI files that we kept in the applications installation folder (under Program Files). We often used that or another file to keep program state information. Then we moved to using Windows Registry keys to store installation (LocalMachine) and current user information about the application. Now my sys admins are saying my apps should not be able to write to the registry AN ...Show All
