Paul Hacker's Q&A profile
Windows Forms School a newbie?
Hey all, I have an app that basicly opens an IE window. I also created an MSI installer for it as I need it to be installed to a certain directory. In this MSI installer, I have a bunch of ASP/MDB files that also get dumped into the install directory. I also need this app to check the .ASP and .MDB/MDF files in its install directory, and see if the files located on internet are newer, and if so, download these files. I am an extreme newbie to this, but have been an ASP developer for a while, so I think I can fumble my way thru this if someone is willing to help me along Here is my code as of now: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim objIE As SH ...Show All
Visual C++ How do I change the font size? How do I change the font?
I just created a C++ MFC dialog project. In VB and C#, it is easy to change the font size and to change the font for labels, text boxes, and all the controls. I just set the property in the properties box. Or in a program, I just set the same property. I don't see how to change the font or font size in my project. There are properties to center and to change the text displayed. But I do not see any property called "font". Is there a way to change the font and font size in MFC for individual controls and for forms I sure don't see anything. There must be a way to change something so basic. How Where as most of the controls provided by Visual Studio can be mapped to a variable (either a control type variable or ...Show All
Game Technologies: DirectX, XNA, XACT, etc. HELP! sampler state not being set inside fragment file
I am having a horrible time trying to get simple mag and min filtering working when using fragments. Basically i have a pixel sahder that does nothing but apply a texture. In the application, i set the texture by looking for a sampler object in the shader constant table and then retrieving the correct stage from the sampler register index. I have a typical sampler state block set up inside of the fragment file and yet no filtering is applied. I am using the fragment linker and i have also tried setting the sampler states via fixed function pipeline. Any help would be greatly appreciated as to why this is not working. Yeah, I am not using any floating point textures and the card definitely supports texture f ...Show All
SharePoint Products and Technologies Error in communicating with Excel Calculation Services
When attempting to view an Excel spreadsheet in SharePoint, we get the following error displayed in the web browser: Excel Web Access: An error has occurred Checking the Event Log we see: There was an error in communicating with Excel Calculation Services http://uklo2k3d02:56737/SharedServices1/ExcelCalculationServer/ExcelService.asmx exception: The request failed with HTTP status 401: Unauthorized. [Session: (null) User: CAPCO\jtnn]. The user has full admin rights over all systems We are running RTM version of SharePoint 2007, Enterprise Edition Excel Services is enabled, configured and activated on all levels. The location is set as trusted. The rest of the server works perfectly Shared Services wor ...Show All
.NET Development No Managed DirectX for 64bit?
I posted this issue back during Beta 1 and was told that Microsoft will look at making a 64 bit Managed DirectX after the OS and the development environment was released. That is way too late for those of us looking to release a 64 bit application any time soon! Is there any update from Microsoft on availability of even a Beta Managed DirectX for the x64 Thanks - John I downloaded the recent August 2005 DirectX9 SDK ... Also the Visual C# Express Beta 2 and a Windows XP Professional 64 Bits Trial ... I tryed to compile a very simple example and got this exception when I try to executed the successfully-compiled example: System.BadImageFormatException was unhandled Message=" is not a valid Win32 application. (E ...Show All
Visual Studio Express Editions How to save as HTML and more
I have a couple of questions I hope someone can help me with. First, I made a program that generates a complete HTML page. That page is displayed in a text box and I just tell the user to copy and paste the contents into Notepad and save as .html Obviously this isn't the best way to do that. I want to upgrade that by simply having a button on the program that they click to automatically save and save it as an .html file so all they have to do is find the location they are to save it at. How do I do this What code do I put in the sub class for that "save" button Also, I have another program that generates some text in a textbox. Right now I just have the text box's visibility false until the user hits submit in wh ...Show All
.NET Development Sending and Recieving Data over the Internet
Hello, I'm trying to code an Online game and I'm stumped as to how to make the Client software communicate with the server software I made. I know that I should use the Net.WebClient for something...Please give me some help, With this I can launch the beta of my MMORPG! Basically I want to constantly transfer 16 variables containing Player data over an internet connection. I want the server software to be able to manage and distribute player data to all online clients. For example: Seeing another player move close to you and chat. Thanks In Advance! You probably want to use the System.Net.Sockets.TCPClient or UDPClient objects. You'll pick a port, or range of ports (search for assigned ports and pick from the unassigned range) and se ...Show All
SQL Server Cube from denormalized table: Several dimensions vs. one dimension with several attributes
Hi, I want to build a cube in AS2005 from a denormalized table. The table consists of facts from the last three years, with all interesting attributes (about 12) in a seperate column of this table. Actulally this attributes would form three dimensions (semantically). I thought of two different approaches to structure the cube: 1. Building a separate dimension for each attribute or 2. Building three dimensions (or to be more radical : one dimension) that contains all attributes In my understanding, with the new concept of attribute based hierarchies, both variants should have the same effect on aggregations, performance and so on. Only difference would the structure shown to the user . Is this right Does a ...Show All
Windows Forms OpenFileDialog throws ThreadStateException
Hello. I have converted a C# project from VS 2003 to 2005 and am now continuing to work on it. It all seems to work fine, the some small issues could be solved very quickly. I have also converted the project files design manually to VS 2005's, with Form.Designer.cs files and a Program.cs containing the static Main() function. I've copied the code partially from other solutions newly created with VS 2005 so that it's complete. Now I wanted to use an OpenFileDialog in my application but as soon as it is to be displayed, it throws a ThreadStateException telling me I should add the STAThreadAttribute to my "main function". (Not the exact wording, that's in German. You can google that wording very easily.) But the initial Main functio ...Show All
Visual C# DateTime result
When I run the code below why is secc8 less than secc9 DateTime sectionc8 = DateTime.Now; DateTime sectionc9 = DateTime.Now; sectionc8 = sectionc8.AddMinutes(3660); sectionc9 = sectionc9.AddSeconds(59); int secc8 = (sectionc8.Month + sectionc8.Day + sectionc8.Hour + sectionc8.Minute + sectionc8.Second + sectionc8.Millisecond); int secc9 = (sectionc9.Month + sectionc9.Day + sectionc9.Hour + sectionc9.Minute + sectionc9.Second + sectionc9.Millisecond); string result = "sectionc8: " + secc8 + " sectionc9: " + secc9; Using the debugger secc8 = 262 and secc9 = 270 so that the string result = "sectionc8: 262 sectionc9: 270" gbak1 Thanks fo ...Show All
.NET Development Output the XSLCompiledTransform.
Question :- How do I get the results of the XSLCompiledTransform.Transform method into an XML.XMLreader object Hi, I ran into following situation when migrating my framework 1.1 codes to 2.0: Old situation (.net v1.1): ==========xslt file============= < xml version="1.0" encoding="UTF-8" > <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/xslt.html#strip"> <xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/> <xsl:variable name="SelectedStateId" /> <xsl:template match="Jurisdictions"> <xsl:param name="iSelectedStateId" select="$SelectedStateId" /> <script type="text/javascript" ...Show All
Visual Studio 2008 (Pre-release) WCF datacontract root elements as choice (one and only one)
How can I model a datacontract with multiple root elements to enforce exactly one root element at a time in the schema, so that the generated schema through svcutil metadata export would render the root elements in an xs:choice DataContract does not support xs:choice constructs. The goal of DC is to be an abstract data model that is very simple (atom/record/sequence), that maps to what can be represented in .NET and most "standard" programming languages. If you want to do schema-first development, you should use the XmlSerializer. ...Show All
Visual C# Monitoring an object for changes
Hi, I have an object which contains many Properties. Actually, this object is only one type of object inside of a hierarchal based object model using the Collections.ObjectModel.KeyedCollection. To give you an idea as to what I am trying to do, let me explain some of the objects and the properties that I need notification of. "Rod" class has a .Length property. "Part" has a .Shape, .Pin, and .Socket property. "Wheel" has a .Diameter and .Radius property. "NonStationary" has a .CurrentValue property. That's just a small example, just to get to my question. I was wondering what is the standard practice of notifying when property values have changed. The trick is that I am not concerned about single individual object property changes, only T ...Show All
Customer Care Framework CCF Server Verification Steps
In the Deployment doc., the CCF Server Verification Steps section specifies 2 URLs. These are: http://CCFIIS/Microsoft.Ccf.Csr.WebServices.ContactCenter/AddressBook.asmx op=GetAddresses http://ccfiis/Microsoft.Ccf.Csr.WebServices.ContactCenterAIF/Application.asmx op=GetApplications The second URL returns the query result in XML as required, but the previous URL gives the following error: System.Runtime.InteropServices.COMException: The server is not operational. at Microsoft.Ccf.Csr.WebServices.Providers.ContactCenter.LDAPAddressBookProvider.GetAddresses(String prefix, Int32 howMany) at Microsoft.Ccf.Csr.WebServices.AddressBook.GetAddresses(String prefix, Int32 howMany) My Admin Console is properly configured and ...Show All
Architecture Full multi-tier ASP.NET code generation solution?
Any recommendations ...for a full multi-tier ASP.NET code generation solution/tool/tool set Thank you, Michael. Have a look at BLINQ preview. http://dotnetwithme.blogspot.com/2007/01/orcas-blinq-preview.html vikas goyal ...Show All
