SOAC's Q&A profile
Visual C# How to deploy abc.reg file
I have created abc.dll in c# .NET 2.0 Using regasm /codebase /regfile p:\dll\abc.dll i Have created abc.reg file. (where p:\dll is network folder) If i want to install this abc.reg file on user machine using msi package, how can i create this msi package. I have tried visual studio deployment project , but no luck to run abc.reg file on user machine. Any help would be appreciate. thanks I hope this will help: Seee this line: If you want to deploy the installers for the prerequisites to a different location, click Download prerequisites from the following location and enter a local path, URL, or file-share location. under: To specify the download location for prerequisites hea ...Show All
Visual C++ Winsock 10048 error
I have a stress test application which spawns 100 threads and then communicates through TCP to a server on the same machine. The connection code looks like: bool CSockConnector::Connect( const CInetAddr &Addr, CSockStream &Socket) { Socket.SetSocket(socket(AF_INET, SOCK_STREAM, 0)); if (Socket.GetSocket() == INVALID_SOCKET) { // printf("Cannot create socket: %d\n", WSAGetLastError()); return false ; } if (connect(Socket.GetSocket(), Addr.GetAddr(), Addr.GetSize()) != 0) { printf( "Connection error: %d\n" , WSAGetLastError()); return false ; } return true ; } As one can see the code is pretty clean. However I have the problem that some time ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNAInvaders
My first release of XNAInvaders is available. Its currently binary only (source will be released when its a bit more completed). Anyway more details and download can be found here. Will be interested in any comments/feedback Cheers Andy Well, I've been waiting to play your game all day after I saw your post (had to wait until I got home) and I was not disappointed. Very nice! I'm really looking forward to seeing your source. I yet to branch out into the 3D realm, sticking with the 2D stuff, but I really like the way that turned out. I also need to add your site to my list of links as well, so I'm going to go correct that oversight now. Again, great job! ...Show All
SQL Server default sql server name and password
i want to know how to get default sql server name and password. os that i dont had to ask the user to enter his sql server name and password What do you mean by default server name and password There is no default password as you define it during the installation process. The servername of SQL Server is usally if you don’t specify any named instance, the servername itself. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
.NET Development Dynamically creating XSL for transformation
Hi, I have to write a tool that would take XML from one schema and convert it to xml as another schema. To make it extensible, I am thinking of dynamically creating XSLT document based on user mapping. Anyone has any idea how can I create XSLT document dynamically based on users mapping from old tag to new tag e.g. I have following XML <XML> <Tag1>Data1</Tag1> <Tag2>Data2</Tag2> <Tag3>Data3</Tag3> </XML> Now user wants to convert this to <ABC> <TEST3>Data3</TEST3> <TEST2>Data2</TEST2> <TEST1>Data1</TEST1> </ABC> so, my tool would provide user a mechanism(Tree view controls) where they would say TAG1 o ...Show All
Visual Studio Team System nonincremental update requires all .SBR files
Sometimes if I stop a build before it's finished, I get errors like this in some C++ projects: BSCMAKE : warning BK4502: truncated .SBR file '.\bin\Debug\csiTransactionParameters.sbr' not in X:\Build\Ascent\NightlyBuild\Binaries\Win32\Debug\/ParamContext.bsc BSCMAKE : error BK1513: nonincremental update requires all .SBR files I'm not doing clean builds and it looks like the only way to get rid of these errors is to delete all of the output files before starting the build again. I'm wondering if anyone has seen this and knows how to avoid it any way other than doing a clean build Thanks, Richard I've not heard of those errors, but I would guess that it's likely a side effect of stopping a b ...Show All
Visual Studio 2008 (Pre-release) Resend a message when a fault occurs
If my WCF client is getting a FaultException from the server, I want to display a Messagebox which displays the error messages and asks the user if he wants to retry the operation. I want to do this in a way that is transparent to the caller of the service (that means I do not want to wrap every call to the service into a while(!retry){} loop). I have successfully set up a IClientMessageInterceptor which displays a message when the call is faulting, but I fail when I want to resend the message. There seems to be no way to get a reference to the ServiceChannel from where I could send the message. Did anyone implement such a pattern already Or does anyone have a tip for me where to look I would be grateful for any help. Urs ...Show All
Visual Studio Express Editions RichText box vs Other controls
I have a VB dot Net 2.0 application, which receives various text messages broadcast from a server. Currently, I am using a Web Browser control to receive those messages, which is not the greatest thing to use. I am trying to use a RichText box to reduce the system overhead and bloat factors, and I have ran into a little bit of a stumbling block. Using the WebBrowser control, I can "window.scrollto" concept to make sure that the last text sent from the server side operation is visible at the end of the control box. Yes, the previous text sent is kept, not cleared. With the RT box, I use the "Append" method to add the same messages, but the 'contents' does not scroll/display the end, it stays at the beginning of the ...Show All
SQL Server 'Invalid Object name'
Hello Once i have created a new query and it all works fine I save the query and then I run into trouble. When I come to re use the query at a later date it dosen't work and brings up the following error. Msg 208, Level 16, State 1, Line 15 Invalid object name 'kup_regions'. which equates to this line - if ( select sitetype from kup_regions where region_code = @Location ) = 10 I am using 'sa' as my username and sql server management studio Cheers for any help hi, SimonJohns wrote: Hello Once i have created a new query and it all works fine I save the query and then I run into trouble. When I come to re use the query at a later date it dosen't work and brings up the follo ...Show All
SQL Server How to assess impact of changing database Compatibility level
I noticed that a database I am working with has a compatibility level set to SQL Server 2000. The instance is actually SQL Server 2005. I'm guessing that it was created like this because the database originally existed on 2000 and was created via backup/restore. I'm trying to figure out if this needs to be changed and if so how to go about making the change in a non-disruptive manner. What features of 2005 are turned off as a reult of having a 2000 compatibility level Check out the SQL Server 2005 Upgrade Advisor Tool it can scan for use of depricated functionality. You can find the tool on the SQL Server Download Site. Thanks Michelle ...Show All
SQL Server SQL Server 2K client do not connect to DB server with IP addresses added to same NIC
I am setting up a lab on a Windows server 2003 Standard Edition that works as a Database Server. Some clients connct to this database server; clients are on different subnet. Routing is ruled with Windows server 2003 RRAS. The differents subnets are created adding IP addresses to the network interface (I mean: TCP/IP Properties - General - Advanced - IP Settings - IP Addresses - Add) Clients ping without problem with server, I access to folders. Then I connected the first client SQL using SQL Server Client, I run registration, Everything works. I can see SQLServer, I managed everything as usual. In this case IP client is 192.168.1.50 and IP for server is 192.168.1.1 (his IP is in the "general" page of TCP/IP Proper ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GraphicsDevice.VertexSamplerStates
when I set a texture filter i'm not able to see a different result in my scene. and... there are also two collection: GraphicsDevice.Textures and GraphicsDevice.VertexTextures. what are they doing i have to set the texture by the basic effect haven't i ok i found the bug. i used the VertexSamplerStates property instead of using SamplerStates. anyway, i would like to know what are the goals of VertexTextures and VertexSamplerStates... ...Show All
Visual Studio 2008 (Pre-release) Animating a camera
Hi, I'd like to be able to animate the position and LookDirection of a PerspectiveCamera from within the camera itself. In other words, another class can call _camera.Animate(point, vector) and the Animate method will apply an animation. I can get it working (not perfectly) using PerspectiveCamera.BeginAnimation(), but I understand using StoryBoards is more desirable. However, I'm having trouble understanding what I need to do to get a storyboard working from within procedural code. What sort of object do I need a reference to - is the camera enough, or do I need something else If there is a nice sample for animating the camera out there, that would be good too. Cheers, Ashley OK, found what I was lookin ...Show All
Smart Device Development package the Virtual machine network driver to mst
Hi, I have a problem whereby i packaged the netsvwrap.msi to mst to enable silent installation but its failed to install to my pc. Any idea Sorry, but what you are doing is unsupported and is possibly in violation of the license agreement. Barry ...Show All
Windows Forms Readonly PropertyGrid
Hi, either I'm missing something, or it seems to be inordinately difficult to get a (optionally) readonly property grid. I have an application which, using a propertygrid control, displays the properties of my object. Depending upon the user, they might be able to change those properties. My object has collections within it, exposed as properies (such as "Things"). It would seem that, in order to get a read-only version of my grid, all the objects that expose properties have to implement ICustomTypeDescriptor.GetProperties, return a collection of my own derived PropertyDescriptor, which in turn overrides the "readonly" property. Grrr.. That works, but what a lot of code. Things get messy with my collection p ...Show All
