anup_am's Q&A profile
Visual Studio Express Editions Common Dialog Box and Save- newbie question
I want to save an array of UShort integers in any chosen directory, using a Common Dialog Box. (There seem to be big differences between VB6 and VB Express.) Can anyone help And I need to load back the values, again using a Dialog Box. Thanks, David. Hi David, You can add a new MDIParent form into your project and take a look at the OpenFileDialog and SaveFileDialog sample in there. Here's a copy of the code: Dim OpenFileDialog As New OpenFileDialog OpenFileDialog.InitialDirectory = My.Computer.FileSystem.SpecialDirectories.MyDocuments OpenFileDialog.Filter = "Text Files (*. ...Show All
SQL Server Exporting data from a merge join from one data flow to another
Hi, Does anyone know if it is possible to point data that underwent the "merge join" transformation (in one data flow) to the following data flow I don't want to recreate all that merging, sorting and calling the same sources again in the following data flow if the data that I am using exists in the previous data flow. The merged data is simply too big to export to an excel file, so does anyone have any ideas Thanks! What format can the "Raw Files" be in (excel, word, notepad, etc) or is it a .raw extension I'm not quite sure how to go about creating a file to use this type..... ...Show All
Windows Forms How to generate <Form>.Designer.cs files for old projects?
We converted our solution from Visual Studio 2003 to Visual Studio 2005. Soon we noticed that our forms do not have 2 depended files <Form>.Designer.cs and <Form>.resx. I really want to generate the <Form>.Designer.cs files for all my projects. Do you know how I can do that At least is there a way to do it manually Thank you for you help. Suiram One of the ways is to manually shift the Windows Forms Generated Code region to Form.Designer.cs file. Once that is done, you need to open the project file in XML Editor and then manually add the dependancy using <DependentUpon> tag. E.g. <Compile I ...Show All
Visual Studio Express Editions getchar() issue
Hi!Does anyone know how getchar() works exactly A very simple example would be of great help as neither local help of C++ nor the MSDN online lobrary gave me a clear idea of how it works with the info they give about getchar().It's like gets(),if I understood well,with no need to worry for buffer overflows.Also,whats that EOF condition Finally,if I use char to store a value for getchar() to return it will I get an error Thanx! http://msdn2.microsoft.com/en-us/library/x198c66c.aspx should contain an example. EOF --> stands for End Of File. Thanks, Ayman Shoukry VC++ Team ...Show All
Game Technologies: DirectX, XNA, XACT, etc. retrieving more than 4 values per texture lookup
Is it possible to have a texture with more than 4 values per texel My problem is, I need to look up a chunk of many values (about 16) multiple times per pixel and I like to do that quickly. In my setting more than three 2d texture lookups each time (= 12 float values) is the maximum I can allow without a significant performance drop. Also if anybody has experimented with 64 or 128 bit textures I'm interested to know about the performance of a lookup compared to a 32 bit tex lookup. Maybe it is reasonable to pack more values into those larger formats If that is possible at all. Nico No, you can’t g ...Show All
Visual Basic Visual Basic Compiler Error Hotfix
Hi all i just want to know when is going to be released the fix for visual basic compiler error &H8013141e& this is already reported in the microsoft productfeedback site. i think this is a very urgent patch that must be released asap and please do not repond that i should go back to vs.2003 because i have lots of code developed in VS 2005 to framework 2.0 .. JSB PS: this error pisses me of, i need to restart VS.IDE every 5 minutes. i think this is too bad for a recent relesase product ( its full of Bugs ). Hi, João, This is a good opportunity (in the ...Show All
.NET Development Marshalling complex parameters in C# (legacy C dll, with cdecl callbacks)
Hi all, I'm writing a C# application which accesses a legacy C-Dll. The C-Dll contains a number of C-functions, each of them has a couple of parameters. All but one of these parameters are pointers to structs. The remaining parameter is a pointer to a callback function. I managed to marshal the structs so far that I'm able to call the C-functions in the Dll successfully. Only when it comes to triggering the callback function (which actually resides in my C# code) I'm getting an AccessViolationException. I have declared my (C#) callbackfunction as unmanaged and Cdecl: [ UnmanagedFunctionPointer ( CallingConventi ...Show All
SQL Server Poison Message Sample in BOL
Hi, We've been trying to diagnose a problem with service broker's poison message detection and tried to run the sample script in BOL to see how it solved the problem. It appears the example doesn't seem to work correctly, IF (@messageTypeName = '//Adventure-Works.com/AccountsPayable/ExpenseReport') BEGIN DECLARE @expenseReport NVARCHAR(MAX) ;   ...Show All
SQL Server connecting using "datasource=localhost"
hi all, i'm running VS2003.NET with SQL2000 on XP. when i try to use "datasource=localhost" in my connection string- i get "SQL server does not exist or access denide". (local) works and "=myServer" (server name) works. my hosts file is as it should be. i'm trying to connect to the server on my machine. i use to have no problem with it in the past. i think it all went to **** when i changed my machine's name. any ideas Yes, you can alias a named instance to anything that makes sense, but I would not suggest using localhost as it really should point to the local IP a ...Show All
Visual Studio Express Editions Adding other platforms?
Hi. I want to learn C++, and i just downloaded VC++ Express. But my goal is to program for the Nintendo DS, so i would ask if it's possible to make VC++ compile for the DS - Kenny VCE is an excellent C++ compiler, you should use it to learn the core C++ language. Nintendo probably release an SDK, rather than have their own compiler, which means you can probably plug it in to VCE, or a paid version of VC. However, either way, if the DS is coded in C++, this is a good starting point, you should learn the C++ language before worrying about any frameworks. The only trick is, make sure you never write code that relies on the .NET framework ...Show All
Visual Basic Visual Basic.net
Hi, Is there a difference between the VB that comes with Visual Studio 2005 and Visual basic.net, or are they both the same Thanks.....Eric To comment a little further, VS2003 & 2003 had a VB based component called VB.Net. Many VB users didn't like it and delayed our migrations. I was one of them. I thought 2002 and 2003 were REALLY BORING and I stayed with VB6. Nomeclaturally, there is no VB Dot .Net 2005. It's simply VB. I don't mind the DOT net at all. But in this release, it's technically VB 2005 or VB8. ...Show All
Visual Studio Express Editions FileSystemWatcher problem
I have set up a FileSystemWatcher component in my program to watch a certain folder for new files. It is working fine except that it is firing 2 or 3 times whenever a new file is created in the watched folder, which is causing problems elsewhere in my program. Is there a way in which I can set the FileSystemWatcher component to fire only once for each new file that gets created I have tried changing the .NotifyFilter property to the various options, but I still get the multiple events firing. Thanks for any help... You will get multiple created events when creating a new file. The best thing is to surpress ...Show All
SQL Server Select Statement returns no results
I am using the following conditional select statement but it returns no results. Declare @DepartmentName as varchar Set @DepartmentName = null Declare @status as bigint Set @status = 4 IF (@DepartmentName = null) BEGIN SELECT CallNumber AS [Call Number], Problem, Solution, Note FROM AdminView WHERE (Status = @status) ORDER BY CallLoggedDT END ELSE IF (@DepartmentName <> null) Begin SELECT CallNumber AS [Call Number], Problem, Solution, Note FROM dbo.AdminView WHERE (Status = @status) AND (DepartmentName = @DepartmentName) ORDER BY CallLoggedDT end when i r ...Show All
.NET Development SOAP = web services
Is it true that Web Service is equal to SOAP & SOAP is basically web service if so, all SOAP does is use for RPC / RMI to other platform Hi Duncan, SOAP is the protocol, Web services uses SOAP as their protocol (such as HTML is the page, and it uses TCP/IP as a transfer protocol). I suggest you read here: http://www.w3schools.com/soap/default.asp Ido. ...Show All
Visual Basic Intellisense Code snippet auto insert exception try block?
In the code editor, when I hover over a class e.g. Thread.Start there is a description of the class. This also lists all the exceptions for that class. Does anyone have a code snippet that can insert a try catch final block based on the exceptions listed Something like this try { Thread.Start(); } catch (ThreadStateException) { Console.Write("ThreadStateException"); } catch (InvalidOperationException) { Console.Write("InvalidOperationException"); } catch (SecurityException) { Console.Write("SecurityException"); } catch (OutOfMemoryException) ...Show All
