mettoffa's Q&A profile
SQL Server Layout File for a Fixed-Length Flat File
Hi, Does the flat file connection format (Fixed Width) have anyway to include a file layout to define the columns. We have different files which contain over a hundred columns. Or is there any other way to do this. Script Component Thanks, Shanti If I understand the question, you want to have something like a format file that the flat file connection manager UI can read to create the files. We don't have a way to do that though we wanted to get it in. If you have hundreds of columns, I suggest writing a quick program that creates such a flat file connection manager using the ...Show All
Visual C++ how to format a two or one digits number in a two char string?
Ok, maybe this is a very stupid question but wich is the cleanest way to convert an int to a System::String with always at least 2 chars... Now, I do this: String* convertTo2CharString(int num){ if(num<10) return String::Concat(S"0", Convert::ToString(int)); else return Convert::ToString(int); } I suppose that with the String::Format, I can do it with one line of code but I don't know how. Tnx. Here's a good place to start for information on all the new stuff that's coming in Visual C++ 2005. http://msdn.microsoft.com/visualc/whidbey/ ...Show All
SQL Server Problems with the VS2005 IDE
I have installed VS2005 MSDN-final, SQL2005, SQL2005 EXPRESS The problems I have are two 1. I can't add a new sql Database to my windows project due to an error about not being able to start a user instance 2. After I create a new database in SQLExpress, then the datasources window doesnot show the datasource I have created when if form designer view Any suggestions please What I meant Is that the datasources window is disabled when IDE loads the form view designer ...Show All
Game Technologies: DirectX, XNA, XACT, etc. PICKING OBJECTS by MOUSE doesnt work correctly
Hello, I'm making a 3D game and I need to implement PICKING. But I've done everything as it is in the book and was also comparing code line by line with tutorial from other source http://www.toymaker.info/Games/html/picking.html and it doesn't work correctly - the picking RAY is somehow translated upper than it should be. I can click on the object a bit lower than it already is and i cannot click on it from the top, but a bit lower. Also I checked a sample from that book and I found out it does the same for it too. So pls, could you look at it: http://www.moon-labs.com/ml_book_samples.htm download - Download Part III Sampl ...Show All
SQL Server Combine Data and Split into separate txt files for each header/detail row groupings
I’ve created with the help of some great people an SSIS 2005 package which does the follow so far: 1) Takes an incoming txt file. Example txt file: http://www.webfound.net/split.txt The txt file going from top to bottom is sort of grouped like this Header Row (designated by ‘HD’) Corresponding Detail Rows for the Header Row ….. Next Header Row & ...Show All
.NET Development Just two true
I noticed that true.ToString() Convert.ToString(true) Both return "True" rather than "true". Seems wrong to me somehow..... They both return (well Convert.ToString, simply calls Boolean.ToString()), either Boolean.TrueString or Boolean.FalseString depending on the value. I imagine if it returned 'false' or 'true', the Visual Basic programmers would probably say the same thing. ;) Note, though, that Boolean.TryParse does a case-insensitive comparision, so it will correctly parse either version. ...Show All
.NET Development C# Remote Win32_Process : What Firewall Ports do I need to open?
My c# service uses WMI Win32_Process to query for application start times on remote machines. Does anyone know what exact ports I need to open on the remote Windows Firewall so this remote request can pass through Thanks! Jason This forum is dedicated to quetions relating to the System.Net namespace in the .Net Framework. For WMI related questions I suggest consulting the forums listed at www.microsoft.com/community ...Show All
Visual C++ Using DataGrid
I've to change the values displayed in a datagrid (I mean I have to change the database). I watched in the code generated by the .NET, but it's ununderstable for me yet... Assuming you are using VS2005, right click on your datagrid and click on properties. Under the Data section, take a look at the DataBindings property and click advanced. I believe you can specify the source of your data there. If you are not using VC2005, you can probably still follow the same approach. Hope this helps! Thanks, Ayman Shoukry VC++ Team ...Show All
Visual C++ error LNK2019
I have been wrestling with the following error for the last few hours: Options.obj : error LNK2019: unresolved external symbol "public: __thiscall PayoffOption::PayoffOption(void)" ( 0PayoffOption@@QAE@XZ) referenced in function "public: __thiscall PayoffCall::PayoffCall(double)" ( 0PayoffCall@@QAE@N@Z ) C:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\MFEcourse\Debug\MFEcourse.exe : fatal error LNK1120: 1 unresolved externals Here is the Code that I think it is referring to (three files: the one with my main functions, Options.h, and Options.cpp). // // main file // #include ...Show All
.NET Development Filter DataSet
Hi, After populating a dataset I would like to further filter the results without repopulating the dataset. Any help would be greatly appreciated. Create a new DataView around your DataTable and set the RowFilter property. If you're already using a BindingSource, you can set its Filter. DataView view = new DataView(dataSet1.DataTable1); view.RowFilter = "Column1='Hello world'"; ...Show All
Windows Forms http communication in asp.net?
Hi I have a winform which makes a call to some web form (on a web server in intranet), which should return an xml file based on the query parameters. The returned xml is used in calling winform. I know it can be done using HTTP communication WEBCLIENT class but not sure how to. Please advice with some examples. Thanks Pankaj i m  ...Show All
Software Development for Windows Vista Workflow state not persisting on Suspending
I have added Sqlworkflowpersistance service to my windows host. But am not able to persist the state on Suspend() so on Resume() it is not able to fetch the workflow instance. State is not persisted when workflow is suspended. You can handle the WorkflowSuspended event and try to unload the workflow in the handler. However state is persisted automatically if workflow is Idle and you have set the flag UnloadOnIdle to true in the SqlWorkflowPersistenceService constructor. For unloading workflow on suspend, check methods OnWorkflowSuspend and UnloadWorkflow in following code snippet. class Program { stat ...Show All
Windows Forms UnhandledException?
How could i capture & handle UnhandledException in client or service side The "Main" method is actually the assembly's entry point, every assembly should have one( or more, the you have to choose which one), when you create a Windows Form App using visual Studio.Net, it will create one in Form1.cs/Form1.vb, here you'll find, Application.R ...Show All
Visual C# separate classes
hi, I want to separate group of classes to different library (dll) from main file, how can i do it thanks Visual Studio uses Projects as the unit of compilation, hence all files within a project would get compiled into either an Exe or Dll. Hence you use multiple projects to seperate out classes that need to be in a library vs classes that need to be in an application. Regards, Saurabh Nandu www.MasterCSharp.com www.AksTech.com ...Show All
Visual C# File Upload with restricted extensions not working
I have a file upload class, and in it's constructor it needs to be able to take in an array of possible file extensions (using the new params keyword) I won't know how many or what extensions are being passed in, but once they are only those passed in are allowed to be uploaded. The class I'm having problems with inherits from it's parent class that works fine and doesn't restrict anything. The new inherited class compiles fine, but still allows anything to uploaded, even when I've specified ".doc" as the only type allowed. Here's how one would create and use it: UploadFileOptions myUpload = new UploadFileOptions("C:\testfiles\", FileU ...Show All
