prince-simo's Q&A profile
.NET Development RealProxy
Hi, Can someone tell me, if RealProxy's Invoke can be gauranteed for multithread. It seems to me that, when call by multithread, the return value are checked someway and if the return is not set, some reference error may happen. Thank you! From MSDN: Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe. ...Show All
.NET Development How to deliver message to client without client call with remoting?
I am developping a message reminding system.I want to send message to the client through client IP address initiatively.But I don't know how to make it.Please tell me how! I solved this problem.But there is a new problem, if there is a pxoy server between client and server, how should I do in this situation ...Show All
Windows Forms How do I access the main form?
Hi! I've got two forms, MainForm (which is my main form) and LoginForm. And I would like to be able to get access to a method in the MainForm from the LoginForm. How can I achieve this If it helps, my main method looks like this: static void Main() { MainForm myMainForm = new MainForm(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(myMainForm); } Thanks in advance. The most appropriate mechanism is to expose a property off your global application object that contains a reference to the main form. It would be set in Main before calling Application.Run . Another approach would be to expose a static method off the Main ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Simple Lines using DirectX .. ?
It was so easy in opengl. I want to draw a couple of line on the screen in screen space as well as text in DirectX using D3DXLine Interface,after experimenting a while i still dont see any lines though, any one know about this or have post about line drawing... Look at this: VOID Render() { if( NULL == g_pd3dDevice ) return; // Clear the backbuffer to a blue color g_pd3dDevice->Clear( 0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0,0,255), 1.0f, 0 ); // Begin the scene if( SUCCEEDED( g_pd3dDevice->BeginScene() ) ) {   ...Show All
SQL Server SQL Server Express setup question
Hi, I just installed the Express version locally and then tried to simply connect to the Northwind database from a .aspx web page. I get the following: Error reading the database. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Do I have to do anything for setup Thanks, Eric Okay I just found out that sample databases are not installed by default in SQL Server Express. So I will either download Northwind or not. Have a go ...Show All
SQL Server Process task hangs running bcp
We are attempting to use Microsoft SQL Server Integration Services Designer Version 9.00.2047.00 to run a BCP command from a Process task. We are able to do so without a problem when running it interactively, but when run as a SQL Server Agent job the bcp process never completes and the job hangs indefinitely. We also tried using a Script task for this, with the same result. Has anyone else run into this problem Thanks, Ron We stumbled upon the solution for this, but it does seem that a glitch in SSIS may be the root cause. When running BCP in a Process task, the path to the BCP executable must be provided. When running a package interactively a UNC path name to bcp.exe works fine, ...Show All
SQL Server Stored procedure sort parameter doesnt work
Hello, I am trying to make this. CREATE PROCEDURE [dbo] . [P_SEL_ALLPERSONAS] @nmpersona int , @sortorder varchar ( 20 ) AS BEGIN select nmpersona , dsprimernombre , dssegundonombre , dsprimerapellido , dssegundoapellido from personas order by @sortorder END But I got this error. Please help Msg 1008, Level 16, State 1, Procedure P_SEL_ALLPERSONAS, Line 13 The SELECT item identified by the ORDER BY number 1 contains a variable as part of the expression identifying a column position. Variables are only allowed when ordering by an expression referencing a column name. The following may work for you, and will avoid the risks of SQL injection that dynamic SQL can ...Show All
Visual Studio Team System Getting revision number from teambuild build number
Hi all, It seems that TeamBuild defines the buildnumber for a given build in a manner similar to "20060531.13". We would like to use this information when updating the AssemblyInfo.cs files. Namely, to use the 20060531 part and the "13" part in the AssemblyVersion build and revision fields. We are already using the AssemblyInfo task, but we see that it maintains it's own incremental numbers, which are not related to the TeamBuild incrementals, which means that are Assembly versions will not tie in with the lables applied in TeamBuild Is there any properties other than BuildNumber that would give us separately the 20060531 and 13 parts so that we can pass them into the AssemblyInfoTask Sincerely Pete ...Show All
Visual Studio how to use process control in vb.net
Please give me detail description about process control in vb.net P.Veerakondalu Hi, There is a nice sample and supporting doc for using the Process component here: http://msdn2.microsoft.com/en-us/library/fy81t8yk.aspx Hope this helps. Best, Paul PS: I'm moving this to the VB General forum. This is probably a better place for questions like this. ...Show All
SQL Server Can't attach to database
Hi, I have a database that I developed using both Toad for SQL and SQL Server Managment Studio. All was working fine. I could connect to the database with one of the above and also run two an applications I developed (one in C# and One in VB.NET using VS Express) using the standard SQLConnection class. the following connection string worked fine... Server="(local)"; Trusted_Connection="yes"; Database="CDEvolution"; Now, for one reason or another I decided to create a new data source in my Visual Studio project and pointed it to the database fine. At first it seemed ok as I could see all tables from teh database. However somethign strage has happened. I now can't access the database in TOAD or ...Show All
Game Technologies: DirectX, XNA, XACT, etc. visual C# express edition and directx
what is required to set up an empty directx aplication in vc# ee that i can use as a template later to code You could use the Managed EmptyProject sample in the DirectX SDK as a starting point, or modify one of the Managed Tutorial projects. Hope that helps. Happy Holidays ...Show All
SQL Server Which SQL Product? Everywhere or Express
We are building a system that has mobile clients (laptop with XP and tablet with XP). These clients have data moving back and forth to a centralised n-tier server based system. The communications is proprietory and are very low bandwidth (5 KByte/sec). We've decided that the best approach to handling both the reference data (ranging from trivial to a complex list of items - about 2 million rows) and the day-to-day operational data is with a database product rather than attempting to handle it ourselves within code. The question is - what SQL platform to use SQL Everywhere seems to be a fairly good choice except that it does not seem to support stored procedures. SQL Express is another possibility but there are concerns about the size ...Show All
SQL Server Strange bug with intellisense...
Hi all, I've got a strange bug with VS.NET and SSRS. Whenever I build my solution and it automatically deploys the SSRS reports to our report server, my intellisense stops working and I have to restart VS.NET to get it back. It only happens when the reports are automatically deployed. It doesn't happen if a solution has no report project. Any ideas as to what I can do to fix this Regards, Stephen. Still having this problem and its driving me nuts! Anyone know if there's anything that can be done to stop it Regards, Stephen. ...Show All
Visual Studio Express Editions "It's for the children..." drawtext erase remove
Howdy, New program for the kiddies... This time, I'm creating a small graphics program where the alphabet letters appear, move, resize, recolor, sort, etc. I'm just getting started...I've got the first letter to move around the screen, and using the font size, color etc, I can get the "A" to move along in a path. I'm using: TextRenderer.DrawText(GraphicsFun, "A" , Me .Font, New Point(point1x, point1y), SystemColors.ControlText How is it that I can erase/remove the letter just before or after the new one appears I don't want to clear the screen/form/etc...just the last appearing letter. Thanks in advance...this site has answered what would appear to me to be hundreds of my questions for the two programs t ...Show All
Visual Basic Debugging .NET UserControl running in VB6 environment
I have a .NET UserControl loaded into an MDIForm in VB6. What are the best strategies for debugging between the .NET control and the VB6 environment This is answered in your other post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1070143&SiteID=1 ...Show All
