SGriffiths's Q&A profile
Visual Studio Express Editions strsafe.h before iostream triggers warnings
If I include strsafe.h before iostream in stdafx.h, I get numerous build errors. If I move strsafe.h after iostream, my project builds fine. It's disappointing that Microsoft's own headers can't use strsafe.h. Are there any better solutions than reordering the headers stdafx.h: #pragma once #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #include <tchar.h> #include <strsafe.h> #include <iostream> Build output: ------ Build started: Project: iostream_secure, Configuration: Debug Win32 ------ Compiling... stdafx.cpp c:\program files\microsoft visual studio 8\vc\include\cstdio(33) : error C2039: '_gets_instead_use_StringCbGetsA_or_StringCchGetsA ...Show All
Visual C# Firing events in child classes...
Hopefully somebody can explain why .NET will not allow me to do this... I have a class, NonStationary, which has a member CurrentValue, and an associated event OnCurrentValueChanged. Now, I have two classes which inherit from NonStationary: Joint, and Shaft. Inside Joint and Shaft, there are times when, if the user hooked the event in the application, the event will be fired because he/she has set a min/max value above/below the currentvalue. The problem is, is that I cannot check to see if OnCurrentValueChanged has been hooked (if it's null), nor can I fire the event from within the Joint or Shaft class. The error I get is: "The event 'OnCurrentValueChange' can only appear on the left hand side of += or -= (except when used from wit ...Show All
Software Development for Windows Vista Intel(R) 82801ER SATA RAID Controller
When I want setup Vista RC1 from DOS, I will need to install raid driver. When I put floppy into floppy-drive, setup begin copy driver-files to HDD, when I will seen "blue screen" with error. This driver was worked correctly in Vista Beta 2. How can I correct this problem. I have been looking for an answer to this problem since RC1 debuted. I hope this issue can be addressed soon (or a workaround), as I would greatly like to trial RC1. I will stay alert for a solution. ...Show All
Visual Studio VSPackage.resx in language service
Hi, I have problem with loading VSPackage. PLK is correct (VS allows runing my package), but exceptions: --- A first chance exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll Additional information: Could not load file or assembly 'D:\\Private\\Dokumenty\\Visual Studio 2005\\Projects\\M2Package\\M2Package\\bin\\Debug\\M2Package.dll' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) --- and --- A first chance exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll Additional information: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure &quo ...Show All
Visual Studio 2008 (Pre-release) Can a SQL20005 User Defined Function that returns a TABLE be used a "data source" in the current EDM framework?
Can a SQL20005 User Defined Function that returns a TABLE (e.g. the sample from Mike Taulty's http://download.microsoft.com/download/9/c/d/9cd4d7d3-5538-4272-8786-aef2f40c606b/UserDefinedAggregates.zip nugget) be used a "data source" in the current EDM framework ...i.e. in lieu of a traditional SQL table Update: The C# UDF implements ISqlReader. Michael. We're still discussing whether or not we'll support table-valued functions directly in the framework in this release. The design certainly allows for them, but I don't know if we'll include it in this round or in a future one. Probably not, but we'll see. If your TVF doens't have parameters (or you can use fixed values) may be you can wrap it with a view and use ...Show All
SQL Server SQL Express Download links broken
Hi, I was trying to download SQL Server Management Studio Express from http://msdn.microsoft.com/vstudio/express/sql/download/default.aspx . The links on this page seem to be broken. I tried to download the Mgmt Studio Express by clicking on a link that points to http://go.microsoft.com/fwlink/ LinkId=65110 . Anyone else facing this issue Is there another place I can get SQL Server Management Studio Express from The link seems to be broken again... does anyone know of another way to download SQL Express and/or would someone be willing to email it to me at chrisvillar@gmail.com Thanks in advance. -chris Referring page: http://msdn.microsoft.com/vstudio/express/sql/download/ Link: http://download ...Show All
Visual Studio Tools for Office Seeking opinions on the structure of a new VSTO book
So, I am writing VSTO for Dummies. I wrote VB for Dummies, so it makes sense - VB type programmers will make really good use of VSTO I think. My initial concept for the book was three parts. Part 1: Concepts and design Part 2: Addins Part 3: Smart Documents In part two and three, I was planning on having a chapter on each Office platform that supports that feature. Well, now that I am writing I am not too sure about that format. It just seems to constricting, and that I will be repeating a lot of information in the first few pages of each chapter. It got me thinking - I don't really know how people are using VSTO. I mean, I know the generalities, but I don't know how the average user of the software - the kind that would ...Show All
Windows Forms Tooltips Cut Off
Has anyone experienced balloon style tooltips (IsBalloon) being cut off Many of my tooltips in my application have the last few characters cut off by the end of the balloon. It looks as if they are miscalculating the length of the text. Is there anything that can be done Andrew, Unfortunately, it's nothing as simple as that. The control is trying to draw the characters, they are just cut off by the edge of the tooltip. When displayed in a non-ballooon style, they display fine. In fact, I'm looking at one that is cut off right now that has less than 100 chars. Most of my tooltips don't have this problem, but some do - and some of these are short, and some are long. I have many multi-line tooltips that have many many characters and ...Show All
.NET Development Multiple elements in a configuration section
Hello All, I would like to know whether it is possible to have multiple configuration elements with the same name within a custom section. Changing the element name to say "operation1" instead of "operation" (see sample file below) seems to work but i would like to use the same element name. I think i have to set something like maxOccurs=unbounded but not sure where to do it inside my custom classes. I have already implemented custom classes inherting from ConfigurationSection,ConfigurationElement and ConfigurationElementCollection to implement the stuff below. Am i missing something Currently if i add multiple elements with the same name within the section i see the following error "The element <opera ...Show All
.NET Development Generate a Class from an XML file
I have a challenging idea that hopefully someone has some ideas on how to solve... Does anybody have any ideas on how to go about creating a .NET class whose sole purpose will be to read in an XML file and, based on the data contained within the XML file, from it will be able to dynamically create a class I'm not talking about an object of the class, because obviously there's many options to do that. I'm talking about creating the entire class and everything in the class; the name of the class, modifiers, members, methods, properties, etc. I'm not concerned about logic/decision making inside the class, nor am I concerned about events, delegates, threads, and other advanced topics, just the basics that I mentioned. I ...Show All
Visual Studio Express Editions Easy projects
All, I am using visual c++ express to complete some VERY simple projects for my class while i am on vacation. I don't want someone to write the code for me, but if someone can help me out with some very simple questions about a very simple assigment, I'd appreciate it. Here goes: i have to print our a pattern of asterisks to look like so * ** *** **** ***** ****** ******* ******** ********* ********** the spacing above is a little off, but the idea is to print the asterisks in the above pattern, using very basic stuff, because this is after all a beginner ...Show All
Visual Studio VS 2003 Webservice with VB 6.0 Com+ Dll Debugging problem
Hello Mt Webservice use a interop dll VB 6.0 and i like to debug this DLL in the VB 6.0 IDE or better in the VS 2003 IDE but how i can do this. Thanks Roman Hi Roman, What kind of web service are you using Is it an ATL or ASP.NET web service Assuming that the dll is loaded in-proc by the the web service worker process, you can debug it by attaching the VS2003 debugger (from the Debug | Attach To Process menu) to this worker process (aspnet.wp.exe (on XP) or w3wp.exe (on Win2k3) for ASP.NET web service, or dllhost.exe for ATL) and select both .NET and Native in the sElect Code Type dialog. Once you are attached and assuming you have symbols (.pdb file) for your dll, you should be ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where is the exDream Racer game?
I'm wondering where that game left... It is not showing up in the templates. http://www.amazon.com/Professional-XNA-Game-Programming-Nitschke/dp/0470126779/sr=1-1/qid=1167109466/ref=pd_bbs_sr_1/105-8585654-3347660 ie=UTF8&s=books ...Show All
Smart Device Development Differences between .net 1.1,1.2 and 2.0?
Hi, Can any one please tell me the differences between .Net 1.1 and 1.2 and 2.0 And can you also tell me when was .Net 1.2 was released Thanks. there was no .NET 1.2 (even for full framework version) for CF there was only ever .NET 1.0 (SP3) and .NET 2.0 differences are alot, .NET 2.0 is new, latest and has alot of features, just the natural progression of a product from an old version to the new one. .NET 2.0 SP1 was also recently released, having the ability to install on Windows CE 4.2 and install the GAC on the storage card by customer demand. take a look at the .NET CF Team blog: http:// blogs.msdn.com/ net cf team with .NET 2.0, you can do xml serialization, h ...Show All
Windows Forms Using URLEncode in a Windows Form
Hello Everyone and thanks for your help in advance. I am writing a screen scraping application using a windows form. I need to process the __ViewState in order to get it to work properly and it looks like it needs to be URL encoded. However, I cannot seem to access the URLEncode method from the Windows form. I have imported System.Web into the project and I have also tried things like System.Web.HttpUtility.UrlEncode but I receive the erro message that HttpUtility is not a member of System.Web. Indeed, intellisense does not give me that as an option, but I can figure out why. Any help on this would be greatly appreciated. ...Show All
