Fergnab's Q&A profile
Windows Forms Get origin server prgrammatically
Is it possible to evaluate the origin server (url) programmatically from which the app was installed by ClickOnce ...Show All
Visual C# How to import display flash in visual studio C#?
Hi all, I would like to know how to import flash in Visual Studio C# 2005. Any idea Thanks a lot. Changing your flash file to a GIF file is ok, notice that the GIF file will be larger. The way to work with a webbrowser is : string flash = "http://atomicbombshell.com/games/neave_tetris.swf" ; //this.webBrowser1.DocumentStream = stream; this .webBrowser1.Url = new System. Uri (flash); You can also have the file embedded and in that case you get it's streeam and then this .webBrowser1.DocumentStream = stream; ...Show All
Visual Studio Team System DataDude at PASS
Hi, Will there be much going on around DataDude at PASS this year Will any of the DataDude team be there Thanks Jamie We will be present at PASS. Cameron Skinner will have a presentation introducing the product, Gert Drapers will deliver a presentation "Managing and Deploying Your SQL Server Schemas with Visual Studio Team Edition for DB Professionals" and Sachin Rekhi will have a talk on Testing and Refactoring. In addition, there will be few other folks on the floor and around to talk to. Best Regards, ...Show All
Visual Studio Team System Get "TSD158: Login failed for user '#####\TFSSERVICE'" error when trying to include a database project in the team build
When I try and include a database project (RTM version) in a Team Foundation build I get this error for each one. "error TSD158: Login failed for user '######\TFSSERVICE'". I have given that account admin rights for my local copy of SQL2005 and the Database that I specified in the "Target database name" section of the build. I even gave it admin rights for my build machine just to test and still got this error. Does anyone know where else I need to give this account permission in order for it to build a database project Here is most of the file. I tried to edit out the noise like the get,copy and warning statements to reduce the size. Build started 12/20/2006 12:28:58 PM. ____________________ ...Show All
Visual Basic How to use Operator in Generics Method?
I have the following code, which give me an error: The Operator '+' is not defined for types ' T ' or ' W '. Public Class ClassCal( Of T, W) Public Function AddTwo( ByVal No1 As T, ByVal No2 As W) As Integer Return No1 + No2 End Function End Class How do I use the ' + ' operator correctly. Thanks. Thank for your answer Richard, yes you are right I hard coded the Integer as if I don't code in an Integer (or some type) at the end, VB will give me an error. And I agreed with you in respect of using generic for the AddTwo method, may be a simple function call and overloading will do. Yep, using delegate with generic to call that method is also po ...Show All
.NET Development ASP.NET Remoting over TCP and User authentication
Hello, currently i developing a object-oriented business framework in C# (.NET Framework 2.0) for asp.net applications. I have 3 layers: Web-Browser (GUI), Application Server and Database (SQL Server 2000). The Web-Server and the Application server using a tcp remoting channel for communication. Now i have some trouble with user process impersonation. I need the original user call context in all layers (Web-Server->Application Server). In the web.config i have set the identity tag to: impersonate="true". The web-context works fine, the process run under the calling user account. Server-Machine: Web-Serve = Windows 2003 OS Application-Server = Windows 2000 OS Current remoting configuration (Server): TCP Port = 8900 aut ...Show All
Visual C# Problem associating file extension with application
I am trying to associate a new extension with my application programatically writting in registry. I have done the necessary steps to create all subkeys in the HKEY_Classes_Root: HKEY_CLASSES_ROOT .myp (Default) = MyProgram.1 MyProgram.1 (Default) = MyProgram Application Shell (Default) = doit open command (Default) = C:\MyDir\MyProgram.exe "%1" DefaultIcon (Default) = C:\MyDir\MyProgram.exe,0 The problem is that afters this installation the application icon is not associated with the files and not shown in Explorer.So I have added some more changes in HKEY_Current_User in registry : "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\" & EXT & "\Application", FileName & ...Show All
Visual Basic Cannot debug converted programs from 2002 to 2005
Good Morning, I have converted several programs from 2002 vb .net to 2005 vb .net. I have notice while stepping through my code I can't step into (F8) the code of a converted dll like I could in 2002. I have even tried the debugging keys from 2002 and they just step over the code also. When using these keys the debugger steps over the code like I was pressing Shift + F8 keys. I need to step into this dll since the converted dll code is now throwing errors which are not there in the 2002 code. Is this a known bug If so is there a fix for it or will it be released in the near future We cannot migrate to the 2005 version until this is fixed since there are other issues as described above. Thank you for your time. ceoliver ...Show All
.NET Development .NET Framework 2.0 runtime error
Hello Everybody, I get the above error in my event log when i try to run Windows Application on client machine which has Framework 2.0 installed. It works fine in my dev machine which has VS2005 installed but bombs when i try to run the app with a Microsoft report a problem dialog box. The app was frist started in .NET 1.1 and then was migrated in middle of developement to .NET 2.0. I have looked on the web and asked loot of other developers but nobody seems to have a clue . Hope to get some reply from here. Anand It's hard to have a clue when you give no details whatsoever. The least you could do is paste the event log info. Generally, look for an uncaught exception. ...Show All
Architecture Deciding which design strategy to use for n-tier applications
I'll use a typical, simplified ERP system as an example. Most ERP will contain the following 3 basic features: Data maintenance Ad hoc search/reporting Business processing These three features differ in their nature and it affects the design chosen in architecture. Just wondering how should we deal with these problems Data maintenance: This area contains highly repetitive CRUD plumping works. ORM is suitable for this task. Ad hoc search/reporting: This area is hardly "object-oriented". The main concern would be performance. Dynamic SQL query may be a good choice. Business processing: This includes business process such as processing/tracking workflow, matching payment with invoi ...Show All
Visual C++ How to access a program ported from C from other .net project?
Hi, I am pretty new to C++ .Net and I need help on how to let my .Net programs accessing functions ported from a C program. What I have now is a solution that contains two projects. The first is a C++ .Net class library project and the second is a VB.Net project (doesn't have to be VB, it can be any other .net languages). What I need is to have the VB test program call functions from the C++ program. The C++ project is created by porting an existing C program. What I did was that I created a class library project using the C++ wizard. Then I added my existing C program (without any change at all), MyLib.c, into the project and removed all those generated files that I don't need. After fixing some issues, now I have the project co ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D Playing Cards ?
How would I approach a 3D representation of a playing card(s) If using a model, would 52 different models be required so that each card has it's own texture Can user primitives (i.e. 2 triangles to make a card shape) have different textures on each side What would be the best method for this errolian wrote: Bill , yes you are right as always. I know about objects and instancing. What I don't know is the best or indeed any method by which you can use a single model and use different textures for the face and back of the model for each instance. Fluxtah , shaders I know very very little about so maybe someone who does can answer that part of the question. You can use one model, and use a ...Show All
SQL Server Fix matrix column and IF-ELSE statement
Hello. I have to questions - 1) I have a matrix in my report and I want The group column to be fix so if I have a lot of columns and I scroll left the Header column will stay in the left of the screen and only the result column will be scrolled. How can I do it 2) How can I use a IF-ELSE statment or a CASE in the expression I want one of my column to be red if the value is "1", green if the value is "2" and blue if the value is "3". Is there a way to do it Thanks in advance. Hi Andy. Thanks for your reply. The FixedHeader is good only for table but I'm more intresting in Matrix. In matrix you also have column that you define and I want those column to stay fixed on the left w ...Show All
.NET Development RFID Reader Project
Hello, I'm currently working on a project which involves a serial port RFID Reader. I have connected the Reader to COM2 of my PC and i'm trying to get the signals from the RFID Tags. I'm using Visual C# and SerialPort class. The problem is that i can't read or write to the port. I even tried to write something to the port using port.Writeline("string") and then read it with Readline() but it seems that nothing is written and nothing can be read. When i set the RtsEnable to TRUE the BytesToRead property changed from 0 to 9 no matter what i did and still i couldn't read anything. I also wanted to ask you if you have any code samples to send me or if any of you has written a similar program that works. I need to fix t ...Show All
Visual Studio 2008 (Pre-release) Changing namespace attributes in WSDL
Hi, I know that to set the various namespace attributes in the generated WSDL you have to set ServiceContract, ServiceBehavior, DataContract and BindingNamespace all over the place. And yes wouldnt it have been so much nicer if there was a centralised place to set these rather than using 3 different attributes and config, but i cant find one as of yet. The problem is that the setting of these namespaces using attributes means its the developer who has to make the decision to put it in the code and get it correct everytime. So what i am trying to do is write a service behavior that will at least replace the default tempuri.org on services where the developer has not explicitly set it. I current have a class using the IServiceBehvai ...Show All
