hula_samvaad's Q&A profile
Visual C# Why did I only get part of what I intend to get?
No error was complained! The following program is to write a whole year's month,day,weekday in a MSSQL table. But somehow, for many times I have tried, but each time I got only part of what I intend to get: the whole year with 12 monthes, instead, I only got 3 or 4 months' content in the table. Can anybody tell me why calendar.dll using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using database; namespace calendar { public class calendar { private int _nian; //year private int _yue; //month private int _ri; //day private int _xingqi; //weekday private string _errorInfo; public int nian { get {return _nian;} set {_nian=value;} } public ...Show All
Visual Studio 2008 (Pre-release) WPF Novice Programmers Catch 22.
Hi All, I’m novice/part-time WPF programmer, working alone on my dream. I’m rather stuck on how to proceed as a result of what I see as the following truths….. · There are too many technologies to learn them all · I need to select only the ones I really need and learn them. · To select the ones I need, I mush first understand them all · Return to the top And to make the loop even deeper 1. Programming book seem to be really good at exploring all the possible ways of doing something, but not so good at helping me select the right thing to do. 2. MS Patterns and Practice are definitely not aimed at the beginner Here is just one example of the questions I’m pondering ...Show All
.NET Development COMException (ThrowExceptionForHR) => handle is invalid when calling Marshal.FreeHGlobal
Hello In my application, i read and write a lot from pointers (System.IntPtr). Somewhere at a "Marshal.FreeHGlobal()" (i've got a lot of them, and it varies where the program stops) i get this Exception: "System.Runtime.InteropServices.COMException (0x80070006): The handle is invalid. at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) at System.Runtime.InteropServices.Marshal.FreeHGlobal(IntPtr hglobal) at BTR2_DLL_Test.Form1.Button11_Click(Object sender, EventArgs e) in C:\DEV_OLD\VS2003\Testjes\BTR2_DLL_Test\BTR2_DLL_Test\Form1.vb:line 714" A closer look gives me the TargetSite: Thr ...Show All
Visual Studio Team System Adding Objects to my solution
I have created a new solution, and have a Data Connection open in Server Explorer, and can see a small DB where I created a few SP's, tables, etc, and I want to add the db objects to my solution, then have my solution link up with VSS. Cannot figure out how to do it. I thought I would script using SSMS and add to VSS that way and then somehow get project to work - but even SSMS doesn't seem to offer scripting objects to individual files anymore. This might have been the wrong approach anyhow. How can I get my DB objects in my project then get VSS to line up with them Hi Joe, I am not too sure on your question but hopefully the following will give you some pointers: 1. If you have create a ...Show All
Visual C# Vista and C# question.
Will Windows Vista need the .Net SDK to run C# applications Windows Vista ships with .NET Framework 3.0 by default. You will be fine to run your .NET Based application pretty much "straight out of the box". you dont need to install the .NET Framework. However if you are wanting to develop .NET apps then yes you need to install the SDK/compilers etc... is this what you are wondering ...Show All
SQL Server VFP Linked Server problems
We're using SQL Server for the majority of our applications, but our accounting package is still in VFP 8.0. I need to make some costing adjustements from our inventory program. I have linked the VFP database to SQL Server just fine and, using OPENQUERY, I can SELECT data without a hitch. Performing an UPDATE or INSERT, however, is a different story. I get the following error: "Server: Msg 7301, Level 16, State 2, Line 1 Could not obtain a required interface from OLE DB provider 'VFPOLEDB'." Scouring the internet wasn't very helpful on this. Can anyone offer me any suggestions Looks like you can select data and that's about it with VFP 8.0 OLE DB provider: http://msdn.microso ...Show All
.NET Development Keeping command prompt window displayed after i run System.Diagnostics.Process.Start("cmd.exe", "gacutil commad string here")
Hi I run the gacutil cmd in a C# project using System.Diagnostics.Process.Start("cmd.exe", " gacutil commad string here"); But I want my cmd prompt black window to stay displayed in order to see the results of my code while it s runing or whie the cmd prompt finishes runing. If that s not possibke, how do i get the result whether my cmd succeded or not. Thanks a lot. I just answered this same question here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1101863&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) How Do I Get Svcutil to Generate Correct Endpoint Addresses in my Client?
So I'm trying to get svcutil to generate the correct endpoint addresses in my client. It's possible for me to do so by standing up the service and then generating the proxy from the URL that the service is running at. What I would like to do, however, is to generate the client without ever running the service. Currently I am doing this by running svcutil in two passes: first I get the metadata from the assembly, then I generate the proxy from the metadata created in the first pass. Unfortunately, the endpoint information contained in the config associated with my assembly seems to not make it into the client (of course, I can't think of how it'd pick the right endpoint if I had multiple anyway...). So I guess my question is: is there any w ...Show All
Smart Device Development Drive mapping across WiFi in Windows Mobile 5 ?
Has anybody successfully mapped a network drive to a Windows server across WiFi with a Windows Mobile 5 device Please enlighten me on what you did to accomplish this as I'm getting the error message "The network path was not found" followed by "The network resource was not found, or you don't have permission to connect to the network." no matter what I've tried and I've even configured my Windows XP Home edition to share drives and still the same problem. John Sorensen wrote: Samba stack (It's a Windows CE operating system, and it has a File Manager application built-in and from its menu you can choose 'Open path' and it automatically pops up a Window where the path begi ...Show All
Visual Basic No Enough Storage Space is available
Almost every one hour, when I run the project , I get this error and i have close and open again. Any idea Regards Mani You've allocated too much memory. Flush the buffers, close connections, null variables, choose your datatypes wisely. Lastly, make sure only one instance of the application is running. Ctrl+Alt+Del Adamus ...Show All
Microsoft ISV Community Center Forums Shift-Key bypass
Hi. I cant remember the way to bypass the possibility to open the database-window with the shift-key in Access-VBA. http://support.microsoft.com/kb/826765/en-us ...Show All
Visual Studio Team System FxCop Proxy feature request
FxCop checks for updates on startup, however at my workplace I'm behind an authenticated proxy. Is it possible for FxCop to copy the connection details from Internet Explorer so the update process will continue instead of failing with a HTTP 407 Proxy Authentication Required TIA, Sander van Vliet LogicaCMG Netherlands B.V. Is there any update on this bug I'm running 1.35 (Build 60623.0) and the problem still exists. Where does FxCop get it's Network Connection info Is there any workaround to have it go thru the proxy requiring auth TIA ...Show All
SQL Server Populate values for a parameter in a drop down list
How to Populate multiple values for Parameters in reporting services.i am talking about the Default values for a parameter As i am a fresher in this field , i would like to know much about it You can provide comma separated values in the NON-QUERIED option of DEFAULT VALUES. In this case you have to use "@<parameter-name>" instead of "Parameters!<parameter-name>.Value" in the query. Hope this helps. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Original textures along side XNB files in bin folder?
For example, when you build your project, it looks like the textures are converted to XNB format but the original textures are also copied into the bin folder with them. Is that what is supposed to happen By default when you add something marked as XNA Content the "Copy to Output Directory" should be set to "Do not copy". If you're seeing something different, please file a bug on Microsoft Connect. Thanks! ...Show All
Windows Forms DataGridView AutoFilter whitepaper and sample
Are you spoiled by the AutoFilter feature in Excel Do you want the same functionality in the DataGridView control Then my new whitepaper and sample are for you. See: http://msdn.microsoft.com/netframework/windowsforms/default.aspx pull=/library/en-us/dnwinforms/html/DtGrdVwAF.asp The DataGridViewAutoFilter library provides a custom DataGridViewColumnHeaderCell with a drop-down filter list that displays each unique value in a column, and updates the filter of the bound data source when a value is selected from the list. A custom DataGridViewColumn is also provided to make using the AutoFilter header cell easier, particularly in the Windows Forms Designer. Customizing DataGridView column header cells is not as easy as customizi ...Show All
