Badhris's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. pop up box? in game
Hi newbie problem, i am trying to create a few options for the player to choose from like: 10 x 10 = 100 10x10 = 1000 10x10 = 10 i was going to do this as images as i cannot think of a better way of showing on screen is there an easier way then if the person clicks on a certain versinity like x = >10 it will display a message if wrong box selected explaining the answer how can i do this can anyone help thanks If you just want to show some text, there are a few different libs available: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1142823&SiteID=1 ...Show All
Visual Studio Team System ntext to ntext
Hi, Sometimes, when creating an update script that changes a table with an ntext column, I see the following code in the sql script: /* The type for Field: SomeColumn in Table: [dbo].[SomeTable] is currently: [ntext] but is being changed to: [ntext]. */ IF EXISTS (select top 1 1 from [dbo].[SomeTable]) RAISERROR ('Rows detected, failing schema update due to possible data loss.', 18, 1) GO Why is this Thanks, Jeffry Has this issue been resolved I am currently using the final version (180 day trial) and cannot publish database changes due to this error. Is there a workaround ...Show All
Visual C++ Default window position in MFC app
Hi all, I need to creat an app that is "docked" in th bottom right part of the desktop. It needs to stay aligned to the right and bottom at all times (It is small and I want it to apear like a small service running above th system tray. How can I get the default (and only) position of the main dialog in my MFC app to stay in the bottom right of the screen Thanks.... ...Show All
Windows Live Developer Forums Timezone for the reports
Hi, Can a timezone be specified when requesting a report through API We have clients which are situated in different timezones and we want to fetch their data based on this timezone. I will appreciate any suggestions in this regard. What is the default timezone in which the reports are returned Thanks, NS ...Show All
SQL Server Replication Issue with Dynamic Filter using HOST_NAME()
Dear ppl, I am having a couple of problems with using dynamic filters in Merge Replication (SQL Server 2005 - SQL Mobile) 1) I am trying to add a dynamic filter to my publication using the wizard as follows: SELECT <published_columns> FROM [dbo].[Audit] WHERE AuditorID = CONVERT(int,HOST_NAME()) This gives me an error Conversion failed when converting the nvarchar value 'MSSWS02' to data type int. because my computer name cannot be converted to an integer. After reading on http://msdn2.microsoft.com/en-us/library/ms152478.aspx I have found that it has been recommend specifying CONVERT(nchar,AuditID) = HOST_NAME() in the wizard and then use sp_changemergearticle to change the clause to AuditID = CONVERT(int,H ...Show All
.NET Development Can't authenticate against non-Microsoft LDAP server.
Hello VB.NET gurus! I'm having a miserable time authenticating against a Novell LDAP server at a university. The code (below) that I use works GREAT against my SBS 2003 server. Does anyone have a clue as to as to what I'm missing Thank you for your time!!! My contact at the university pulled up some log of this query and stated that I keep doing a 'non-authenticated bind' with this code. This works: Dim path As String = "LDAP://x.x.x.x/DC=a,DC=local" Dim username As String = "CN=PersonName,OU=SBSUsers,OU=Users,OU=Gap,DC=a,DC=local" ' This doesn't work: 'Dim path As String = LDAP://x.x.x.x/o=wcslc ' Dim username As String = "cn=PersonName,ou=campus,o=wcslc" ...Show All
Visual Studio Installation failed, MDAC 2.8, SP1, access is denied
Tried to install VS2005 on a Win2000 Pro. PC, but got the error when it was installing MDAC 2.8 SP1 and the whole process stopped. Any idea and solutions Thanks Can you please try to run mdac_typ.exe directly from the folder \wcu\mdac28\ on your VS 2005 installation disc and see what kind of error is listed there Also, the subject line of this thread states that you are getting access denied errors. If that is the case, you might want to try the workaround listed at http://blogs.msdn.com/astebner/archive/2006/09/04/solving-setup-errors-by-using-the-subinacl-tool-to-repair-file-and-registry-permissions.aspx to see if that helps in this scenario. Thanks! Aaron ...Show All
Visual C++ How to build strmbase.lib?
I've got BaseClasses for DirectShow, and I don't know how to build strmbase.lib. I would be grateful for any sugestions. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting started example needed
How do I draw a 2d box on the screen Or even better a 2d circle. I guess I should use DrawPrimitives but a little example would be nice.. After that I would like to draw some text, do I need to create a bitmapped font for that and draw using sprites / Erik Thanks for the link, Greg. I wrote a little class for rendering lines (2d,3d), the BoundingBox and BoundingSphere from the XNA framework : http://markus.rubicon-net.de/code/ VectorRenderer.cs, it just needs a reference to the GraphicsDevice and the view-projection matrix of your scene. ...Show All
.NET Development Update DataSet with the values of the inserted row
Hey, First of all i work with an access database. In my program i made an DataAdapter with retrieves rows from the database from two tables(through an inner join). Because the dataset linked to this DataAdapter is represented in a datagridview i also wrote insert, delete and update commands. The way i solved the insert in two tables is with an transaction. In the RowUpdating event of the DataAdapter i create an transaction and manually insert the row in one of the tables. The insertcommand of the dataadapter will handle the insert in the other table. In the RowUpdated event of the dataadapter i commit the transaction. This works all fine, except for the fact that some values in the datagrid are left empty because then the defa ...Show All
Visual Basic Login Form & File download (VB, VS05)
I have just started another project to distribute a file stored on my webserver (an excel spreadsheet). But I don't want anyone to be able to access it, so.. I have... 1x Login Form 2x Windows Forms They are all ready designed, but I would like to know how to preset a number of login usernames and passwords, so that the people who are authorized to view this file enter the info click ok and the main form would load from which they could download/view online it through this program. I'm assuming the following code will work to 'view' in the default browser; System.Diagnostics.Process.Start( http://url.com/book1.xls ) But is there a way I can set up a "download" command button, where it would save the file to ...Show All
.NET Development Designer toolbar
hello guys I have this silly question, Im trying to create a new web application(2003), and I cant find the "Web Forms" nor "Html" tabs in my toolbar, i tried show all tabs but still I cant find them, is there any way that i can get them back without having to add each control one by one Thank you Hi, You can reset your toolbar by doing the following: right click in the Toolbox and select "Add/Remove items..." click the Reset button (at the bottom next to OK, Cancel) This should do the trick. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
Visual Basic Integrating .Net into a VB6 client
Hello I have a question about whats the best way to integrate a .Net application into an "old" VB6 application. The current problem is that we need to rewrite "parts" of the application and need to incorperate those "parts" into an old legacy System... This system is written in VB6 and the goal would be to make this possible with the smallest amount of changes to the VB6 code. I was thinking about creating a plugin or something like that which would have its own form or controls and only require a very "minimalistic interface" (like show()) Are there any patterns which I should take a closer look at or has anyone a suggestion on what would work best The "part" of the system will ...Show All
Visual Basic A list with key-value pairs sorted by adding sequence?
Hello, i need a key-value pair list sorted by adding sequence like a collection. But i see that the Dictionary Class, the HashTable Class, the Sorted List Class seem not to do that. Must i use two Collections one with the keys a second with the values for that, or does such a list exist Regards, Markus Oh i see in the help of vb.net that the list class is not guaranteed to be sorted. I want to have a ordered list but not a sorted list. So my question is again: Is the old good collection the only list that is sorted in the sequence elements where added ...Show All
Visual Studio Clickthrough permissions
We have several reports built with ReportBuilder in SQL 2005 SP1 Reporting services that show a subset of data for all records in the main report and the full set of data for an individual record when you click through. The problem we are having is, not all users are able to click through, the users that are not able to are getting an RSPermissionDenied event. How are the permissions for clickthrough different than the original report How can this be fixed so anyone that can see the main report can also see the clickthrough information Thanks ...Show All
