gve2002's Q&A profile
Visual Studio Express Editions Can't find "windows.h"
I have recently upgraded from VC++ 6.0 to VC++.Net 2005, and I am having the following problem: I can't find <windows.h>!!! I realize that I could just use the visual form designer system included with VC++ .Net, but the problem is that I am going to be developing DirectX7 applications, which (unless I am mistaken) require windows.h and its dependencies. How can I install the windows.h file and all the other files i need to use it You need to install the PSDK headers. Take a loo at http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ . Also, you might need to install the DirectX related downloads. Thanks, Ayman Shoukry VC++ Team ...Show All
.NET Development How to veto suspend and shutdown request using C#?
Hi, I am writing a program that absolutely need to veto (cancel) any suspend and shutdown request initiated by user. Is there any way to do this in C# using managed code .NET 2.0 seems to only give PowerModeChangedEvent and doesn't give any option to veto. Before you ask, yes, I am aware that a program should never veto a suspend request, but I really need to. And yes, I am aware that veto is no longer supported in Vista (which is fine as my program is specifically for XP). Thank you very much. Found the solution. http://windowssdk.msdn.microsoft.com/en-us/library/ms704147(VS.80).aspx Thanks for all the help. ...Show All
Visual Studio Batching Problem
Using the following sample: < xml version = " 1.0 " encoding = " utf-8 " > < Project DefaultTargets = " Main " xmlns = " http://schemas.microsoft.com/developer/msbuild/2003 " > < ItemGroup > < ListA Include = " itemA;itemB;ItemC " ></ ListA > < ListB Include = " item1;item2;item3 " ></ ListB > </ ItemGroup > < Target Name = " Main " > < Message Text = " %(ListA.Identity) - %(ListB.Identity) " /> </ Target > </ Project > I get : itemA - itemB - ItemC - - item1 - item2 - item3 But I really want: ItemA - i ...Show All
.NET Development ExecuteNonQuery not working within CLR Stored Procedure
I've written a CLR stored procedure that pulls the results from a SQL stored procedure using a SqlDataReader. I send out the information via a web service and then try to log information returned by the web service using another SQL stored procedure via the SqlCommand.ExecuteNonQuery method. The information never gets written back and I get no exception. Any thoughts on how I can get this to work Thanks. I don't think permission is a problem because if it is, usually you'll get an error. I suspect if the insertion code is correct or actually gets executed. You might want to add some tracing or logging to your applicaiton. Also it's better to show some code snippets. ...Show All
Visual Basic Multiple Instanced Unmanaged DLLs
In VB.net unmanaged DLLs are implicitly shared using "declare" and must be explicitly shared using "dllimport". Is it possible to access unmanaged dlls through an instance rather than as shared routines Currently, the API doesn't return anything about the array to VB. The array is completely contained in the DLL. I hadn't thought about returning the array to VB and letting each instance of the VB form have its own array. That would probably work very nicely. I'll try it out. ...Show All
Visual Studio Express Editions Saving over an existing bitmap
Is there a standardized or generally accepted method of saving changes to an image I have a simple image editor written in VB 2005 Express. Nothing fancy - just prepares images for my blog. The problem is that I've not found a way to save over the original image. The documentation tells me that this is not allowed. This seems peculiar since making changes to an image is the whole point of having an image editor. I'm sure that I'm missing something obvious, so someone please help a newbie out with how to get this done, with my thanks. AB Here is a link to an example to do what you want to do. http://www.bobpowell.net/modifyImage.htm In fact, you will find Bob's DGI+ FAQ to contain a ...Show All
Visual Basic Problem with text reader and set delimiters
I am trying to parse a pipe seperated text file using: trName.SetDelimiters( "|") arySourceFields = trName.ReadFields() When I try to use this to read in a line similar to: apple|orange|"brown"|red| I get the exception/error: Line <number> cannot be parsed using the current Delimiters. I am almost positive it has something to with the quotes inside the given delimeter however I am not sure how to get it to handle them. Any suggestions would be greatly appreciated. Thanks If you are using the textfieldparser object then check out the following property TextFieldParser.HasFieldsEnclosedInQuotes Property http://msdn2.microsoft.com/en-u ...Show All
Windows Forms Check if TextBox contents are Numeric
I have a text box which will contain numbers (mobile numbers) and these will be delimited by comma's as shown below: - 07845123123, 07845321321, 07845123456 When the user clicks on a button I want to check that the contents of the textbox only contains numbers and comma's and doesn't start with a comma. What would people recommend as the best way to handle this type of validation Thanks & Regards As the numbers are too big for int.TryParse, I'd say you want to write a KeyPress event handler that sets Handled to true if Char.IsControl and Char.IsDigit are false, and the character typed is not a ,. ...Show All
Windows Live Developer Forums Problems with the GetRoute method
Hi, I've tried to use the VEMap.GetRoute method, but the run line from the start to the ending location doesn't appear, and the pushpin over the ending location doesn't bring a message... This is my code...Is there someone who can help me Thanks a lot... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml "> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src=" http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script > <script> var map = null; functi ...Show All
.NET Development Energy Act 2005 and Daylight Saving Time
Good evening, I'm not sure if this is the appropriate forum for this question, but I do know that date conversion is a function handled by the .NET BCL and my software is written in .NET. My software has the requirement to convert date/times from UTC to local and vice versa for an arbitrary date/time. Due to the changes made to Daylight Saving Time by the Energy Act of 2005, all of the logic provided by Windows and .NET will no longer serve this purpose. The problem appears to be that Windows effectively only tracks one pair of starting and ending dates for Daylight Saving Time. Systems which have been updated to reflect the new changes will incorrectly convert DateTimes from previous years. Systems which have not been updated will i ...Show All
Visual Studio Team System TSD312: The following dependencies are missing - build fails
I have this error : Warning 840 TSD312: The following dependencies are missing, and running the object may fail: [jeux].[dbo].[lstdev] C:\VS Projects\Database\OCM\mas\Schema Objects\Stored Procedures\dbo.sp_lstdev_mas.proc.sql in this code CREATE PROCEDURE sp_lstdev_mas AS SET NOCOUNT ON delete from lstdev insert into lstdev select * from jeux.dbo.lstdev and in many triggers or sps The warning has line and column number (1,1). Anyone any has idea why I'm getting these warnings It looks like perfectly valid syntax to me. There is still an open question here for me - I had a fairly simple project with a file that was invalid (see post above). In this state the project did n ...Show All
Visual Basic Import data from excel
Hello, Using VB Express 2005 It has been some time since I have played around with excel and vb... I would like to import a cell of data from excel for a motor program. I can't remember the exact syntax on how to do it...and searching for help has been convoluted. I know how to open an excel file through VB. Any help would be greatly appreciated. Thanks!! hi ah3, in importing/opening excel, your need a the connection string: 'using oledb Imports System.Data.OleDb 'defining the connection string Private xclConn As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\myexcel.xls; Extended Properties=""Excel 8.0;HDR=YES""" you also need the sql for ...Show All
Internet Explorer Development link target support
Hi Could someone help me to implement support for link's target attribute in browser hosting application. Like <a href="http://www.host.com" target="framename">link</a> What I've done. I've implemented ITargetFramePriv interface and give it in QueryService(ITargetFrame2, IUnknown) Then mshtml calls my ITargetFramePriv.FindFrameInContext, I give corresponding object which is queried for IWebBrowser2 interface. But then mshtml ignores it and begins creating new window through calling NewWindow3 of the original browser. Any suggestion Regards, Serge. Hi. My question is not about IE7. It's my application which is hosting IWebBrowser2 component. >Here is the link to the Nav ...Show All
SQL Server Help on report subscription
I got error as below: Failure sending mail: The report server has encountered a configuration error. See the report server log files for more information. Then i found error in log file as below: ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. See the report server log files for more information., AuthzInitializeContextFromSid: Win32 error: 5; possible reason - service account doesn't have rights to check domain user SIDs.; Info: Does that mean sth to do with SQL agent running account or SQl Server Report Service running account Thanks Nick Thanks for you information. Teo when i change the Loc ...Show All
SQL Server SQL 2005 auto-attach vs. traditional databases
This is my first post on Microsoft forums so please be gentle. I am not a developer, just trying to write some documentation and having a little trouble finding information. Is "traditional" an appropriate term for registering databases the old-fashioned way (not using auto-attach), or is there a better term What are the benefits and drawbacks of using auto-attach vs. traditional database representation It would seem to simplify deployment but present possible administration challenges. Is it possible to control the name of the database when using auto-attach, or must it always be the full path to the file Thanks for the response. I don't think I mean user instances but the concepts ...Show All
