kevow's Q&A profile
Visual Studio 2008 (Pre-release) How to configure a service which implements two contracts
Appreciated if anyone could tell me how to configure a service which implements two or more contracts(interfaces) within WCF configuration editor. The service is expected to be hosted in IIS as well. You need two endpoints for two different contracts. After adding the first endpoint (with the "Create a New Service" option), you can click on the "Services" folder and select "Create a New Service Endpoint" for the first service, or you can expand the tree of the service up to the endpoints folder, then right-click it to add a new endpoint. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Texturing problem
Hello, I'm writing my own content importer for my maps. At the moment, I'm able to load all triangles and draw the map but i have a problem with textures. In my importer i load texture like this (it's just a test) : BasicMaterialContent material = new BasicMaterialContent(); String texturePath = Path.GetDirectoryName(filename) + "\\Textures\\wall.jpg"; if (!System.IO.File.Exists(texturePath)) throw new Exception("Texture not found !"); material.Texture = new ExternalReference<TextureContent>(texturePath); Then I apply my texture to a mesh : builder.SetMaterial(material); When I deploy it on xbox360 or run it on my pc, my mesh have a color similar to my texture but it's just a color! I ca ...Show All
SQL Server Import a COM+ application That depends on SQLNCLI on 32 bit XP Fails.
We have a 32 bit COM+ application that depends on SQLNCLI.DLL for BCP functionality. We are upgrading to the SQL Server Native client and moving away from ODBCBCP.dll. Anyone running 32 bit XP attempting to import the COM+ application gets the following message: The DLL could not be loaded. Check to make sure all required application runtime files and other dependent DLLs are available in the component DLL's directory or the system path. If I revert the DLL back to using ODBCBCP.dll the application will import and run fine. Here is the interesting part. If I import the application with the ODBCBCP.dll then rebuild the DLL so it links against SQLNCLI.DLL the app will run fine. It has no problem finding and loading SQLNCLI.DLL along with al ...Show All
Visual C# Multi Interface inheritance
Lets say you have two interfaces: interface IA: IComparable { int A {get; set;} } interface IB: IComparable { int B {get; set;} } and a class which implements both IA and IB class C: IA, IB { } class C now has to implement CompareTo, but the problem is that CompareTo should do different things if being used to compare this object to another IA, IB or classC. How do you implement the CompareTo function For instance lets say there is code like this: C c1 = new C(); C c2 = new C(); IA ia = c2; int comp1 = c1.CompareTo(ia); int comp2 = c1.CompareTo(c1); In this case, comp1 should equal 0 if c1.A == c2.A, and comp2 should equal 0 if both c1.A and c1.B are equal to c2.A and c2.B. Since you can only have one CompareTo method on class C how do ...Show All
Visual FoxPro Mixing XLS and DBF tables
In l ieu of some latest trends in my FoxPro development I want to know how do you sensible mix Excel .xls tables, workbooks and projects with FoxPro .dbf tables and databases. I have followed Marcia's earlier suggestion to use convert .dbf into .xls for graphs and now I want to integrate my .xls into existing databases. I tried to attach an .xls table to my databases but only could do in the browser as free table. This was to now avail, however, since I could not open it in FoxPro anyway. Another question, somewhat related: I used a wizard to define the connection string to a FoxPro Database. How can I do it if I need to define a connection string to an .xls table What is the equivalent for a database in Excel: a workbook Is th ...Show All
SQL Server SQL Server 2005 on Vista RTM problems
Hi there, I'm trying to install SQL Server 2005 Developer Edition on my Vista Ultimate laptop, but it won't fully install. The database engine seems to be running, but I really need Management Studio (client tools) and Books Online. But this feature just won't install. I've even enabled the administrator account and tried it there. It also keeps reporting that IIS isn't installed, no matter what I do. http://localhost/ does show a nice IIS page though. This is my error log : === Verbose logging started: 20-11-2006 9:04:13 Build type: SHIP UNICODE 4.00.6000.00 Calling process: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\setup.exe === MSI (c) (C8:8C) [09:04:13:937]: Resetting cached policy values MSI (c) (C8:8C) [09: ...Show All
SQL Server Aggregate functions not allowed in the dataset filter
Hi, I was trying to filter a dataset based on a condition like this: Fields!SalesAmt.value <= Sum(Fields!SalesAmt.Value)*0.05. This is nothing but it filters those SalesAmt that are less than 5% of the total sales amount. However SSRS doesn't allow to use aggregate functions in the dataset and data region filter. Is there another way to do this Sincerely, --Amde Hi, What you have said make sense, but, the thing is I am using MDX query instead of T-Sql. The link that you sent to me is helpful. It would be more helpful if you can send me similar link that uses mdx query. Sincerely, --Amde ...Show All
Visual Studio Express Editions System Tray
I am total newb here, but have done VB6 for awhile. For VB 2005 express, anyone know how to set a program into the tray when pushing the minimize button, then when user double clicks the icon it will pull it back up See if this helps.... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=381830&SiteID=1 ...Show All
Windows Forms validate input data in cells datagridview
Hi! I hope someone can help me with some article that helps me about validating input data in cells datagridview, like just accept float values, etc. Regards Check out the datagridview's CellValidating event. ...Show All
Visual Studio Express Editions Error message "non-generic method" using ObjectDataSource and GridView
Here is my process: (all with visual web developer 2005 Express, April version.) 1. create new dataset in the app_code folder, called interaction.xsd. (right-click on the app_code directory and select new...) a. Step through the TableAdapter Configuration Wizard. b. Select the data connection (ManagementConnection String (Web.config) c. Create new stored procedures d. sql statement "SELECT Interaction.* FROM Interaction e. new stored procedure names: InteractionSelect_sp, InteractionInsert_sp, InteractionUpdate_sp, InteractionDelete_sp f. Fill method: FillInteraction, Get method: GetInteraction g. Checked Create methods to send updates directly... h. I now have Interac ...Show All
Visual Studio 2008 (Pre-release) Asynchronous LINQ???
Given WCF's decent support for asynchronous server-side methods (going by the docs), is it likely that LINQ to SQL will support asynchronous query execution in the future Perhaps a BeginToSequence method, eg: IQueryable<Customer> customers = dataContext.Customers.Where (c => c.Name == "Jones"); IAsyncResult result = customers.BeginToSequence (Callback, null); It might be worth including such methods because for the end-programmer to add them could involve re-writing DLINQ. An alternative would be modifying the thread pool so as to be tolerant of blocked threads, thus allowing blocking methods to be used (at least in medium-load application servers) without problems. Obviously the thread count would rise, but this might b ...Show All
Visual Studio Express Editions create a control
I need to know how i can create a control, to control an array of something (in example, sockets or checkboxes) In another post i've seen that i have to create de control and a container How does it works I would enjoy all information! Thanks! Okay, I have created the example project you were looking at. The only error in their instructions that I see is in 'Testing Your Project', step 7: In the constructor of the form, just before the end of the method, add the following code: ' Visual Basic MyControlArray = New ButtonArray(Me) I had to declare this as: Dim MyControlArray As New ButtonArray( Me ) in Form1 instead of the InitializeComponent area they said. You can download the solution at http: ...Show All
.NET Development regsvr32 dll problem
i'm trying to register a dll using regsvr32 and i got the following error the module "e:\myAx.dll" was loaded but the entry-point DLLRegisterServer was not found. Make sure that "e:\myAx.dll" is valid DLL or OCX file and then try again Chances are you need to make your Class Library "COM Visible" Right click on the class library project (in visual studion) and choose properties. In the "Application" Tab click the "Assembly Information" right next to the "startup object" dropdown. Checkmark "Make assebmly COM-Visible" (down at the bottom) Hope this helps. ...Show All
Windows Networking Development HTTP Keep Alive and Local Port
Hi, We have a scenario where we want to use a fixed local port throughout a session for HTTP Gets. Since if that port is closed it takes 2 - 3 minutes to reestablish a connection on that port we decided to establish an Http connection and keep it open all thru the session. (Not call the Winsock release). However the server will have an Http Keep alive and timeout. So once the timeout expires, the connection is terminated, but is that the same as a WinSock release It is my understanding that the reason it takes 2-3 minutes for the connection to be resetablished on that port when winsock releases it, is because this is management and cleanup that is done by Winsock. If Winsock has not closed the local port and an HTTP Ke ...Show All
Software Development for Windows Vista Application fails to read INI-file when run with option 'Run as administrator'
My old native C++ app fails to read INI-file using ::GetPrivateProfileString(...)function. It happens only when 'Run as administrator'. UAC is on, and user is in Administration group. Any ideas > It happens only when 'Run as administrator'. My testing shows when "Run as administrator" GetPrivateProfileString reads the file in the real c:\windows directory When not admin it get redirected to the Virtual Store Windows C:\Users\myusername\AppData\Local\VirtualStore\Windows\filename.ini It also works the smae way for Writes. Not sure what to do to fix this. It will cause problems with installers that need to read/write INI files that are stored in c:\Windows. The installer runs a ...Show All
