Pavan Contractor's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. get screen resolution & FullScreen
How do I get screen resolution of the computer Because my program will be shared between many computers, I want the program to find the resolution of the computer on wich it is running. By example, on my computer at home, the program will return the value 1024 and the value 768 in order to make 1024 X 768. On my laptop, I will get 1920 and 1200. I want to get the width and the height separately, in two variables. With those values, I will be able to set automatically on each computer the window size as I want it. To resume, I am looking for something like this: width = computer.ScreenResolution.width; height = computer.ScreenResolution.height; Also... If I ever decide to start the game in FullScreen (Make the wind ...Show All
.NET Development serializing IMethodCallMessage with SoapFormatter returns method not supported exception
Hello: I am trying to soap-serialize an IMethodCallMessage intercepted with a custom proxy to a request stream of a HttpWebRequest. (In the context of my PhD on adaptable middleware) But i get an exception "method not supported" Serializing a simple string in stead of the IMethodCallMessage is no problem. Am I missing something "Use the SoapChannel" won't help me out, I really need to do it manually :) the code: //called from IMessage invoke(IMessage) internal object HttpCall( IMethodCallMessage imcm) { HttpWebRequest webrequest = HttpWebRequest .Create( "http://localhost:8080/foo/" ) as HttpWebRequest ; webrequest.Method = "POST" ; webrequest.ContentType = ...Show All
Visual Studio 2008 (Pre-release) System.ServiceModel not in GAC?
I had difficulties installing the WinFx SDK RC1 so I tried to install the various MSI one by one. Looks like it went all right but I hit a problem with an entry in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config mentioning <add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> There does not seem to be any "System.ServiceModel" in the GAC... Would you know which MSI in the SDK ( ) installs this Thanks Eric I see that message too when opening App.config and looks like the XSD in C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas\Dot ...Show All
Visual Studio Express Editions Install express visual studio c# authority
I am trying to install Express Visual studio C# on Windows 2000 and getting the error: "You must have administrative privileges to run Visual C# 2005 Express Edition Setup." I know from Microsoft website that installation on W2000 no need administrative privileges. Somebody knows solution for this I appreciate any help. Weston, thank you for the reply. The documnet I referencing is at the site: http://msdn.microsoft.com/vstudio/express/visualcsharp/download/ It states that administration id need only for Windows Vista: Download Visual C# 2005 Express Edition Now! 1. Make sure you're ready! Before installing, you must uninstall an ...Show All
Visual C# Activation validation of installed C# programs
I would like to have my program validate a user license each time their program runs. The database name, company name are needed for the program to run correctly so I would like to have them enter these and enter a hashed serial number I provide for them at purchase time. The program compares the serial number they enter with an internal algorithm. If it matches, then the program can use the entered database name and company name. I do plan on using a third party tool for obfuscation with string encryption. I would appreciate your thoughts/ideas about how this is usually implemented for reasonable security! I have done smthgn simillar to this stuff,we have used a web service to activate our prod ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Fbx File Format ?
is the fbx file format closed format or do microsoft provide doc on the file format in the xna framework link to article that i have read http://www.3d-test.com/interviews/collada_1.htm why i am asking that is that we can adopt our own mesh format to xna framework example: our mesh format onlye ned one matrix for doing mesh animations the is bone and joint in our mesh cunstructor but when you save the final format out to xml there is one set of vertex data and one set of faces data and the magic one matrix for bone and joint and animations of keyframe per frame so if you have a mesh animation that runs 700 frame total you have to store one set of vertex and faces and 700 deffecnt matrix in a array the ...Show All
Visual Basic Unhandled exception in System.Windows.Forms.TabControl
In debugging my application, I tried to delete a record from a bound datagridview and discovered that I didn't have a delete command for that particular table adapter. Because I've encountered problems modifiying the dataset before, the first thing I did was to exit the application and make a backup copy. I went back in and added the delete command to the table adapter (dataset designer -> properties for the table adapter -> add the delete command). No problem there. As soon as I tried to go back to the design view of my form, I got an error: The control System.Windows.Forms.TabControl has thrown an unhandled exception in the designer and has been disabled. Exception: Duplicate component name 'GUIDDataGridViewTextBoxColumn'. Co ...Show All
Visual C# MessageBox.Show() - specify location of where box should pop up?
I'm calling a MessageBox, and would like it to show up in the center of the form that called it, rather than the center of the whole computer screen. Is there a way to do this Nah, Defaulr Message Boxes doesno support this behavior, You need to create your own using Form setting some properties like BorderStyle = FixedSingle, ControlBox = false, put some Labels and buttons and Associate Dialog Results with those buttons. Cheers ;-) ...Show All
Visual C# C++ code to C#
I spend few hours trying to rewrite one code which is about 100 lines long... There are using memcpy, memset and etc in C++ code, maybe someone could help me to make it work .. I am just beginner in C# and C++.... Just write replay here or e-mail (my e-mail: cybaslt@hotmail.com) You're right. That's just not going to work. The problem is that the C++ code does a lot of things that are just not allowed in C# (or in managed code at all for that matter). Mainly, using memcpy to fill an object would bypass that object constructor, which is a no-no. Basically, the C++ code (which is really just C code with a few minor changes -- the typedef on the struct definition is the real giveaway), reads a file in ...Show All
.NET Development sdk 2.0 . which framework is needed to run the app
say i develop an app with the sdk 2.0. If i try to run the app on a computer with .net framework 1.1 will it run no it will not. the CLR version is different therefore it may well complain at startup that the CLR version/framework version was not found therefore you MUST install the correct framework version on the computer. ...Show All
Visual Basic How to call Form1 at Project1 from Project2?
How to call Form1 at Project1 from Project2 I have 2 projects, Project 1 and Project 2. Sometimes I need to call Form1 (Form1.Show) at Project1 from Project2 or call Form1 at Project2 from Project1. How to link the Forms from difference Projects. I’m using Visual Basic 6 and Microsoft Access 97. VB6 questions should be posted here: http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx dg=microsoft.public.vb.general.discussion&cat=en_us_ab067bc0-bda5-4921-a1ec-e76402873945&lang=en&cr=us ...Show All
SQL Server SQL Server 2005 Management Studio only can connect to 2005 Mobile Edition?
hi, I have some SQL CE database .sdf file on my handheld, and I was trying to connect to that file via SQL Server 2005 Management Studio, and it does not work. I am wondering if there is any good tool that I can use on desktop to connect to sqlce .sdf database file on my handheld Thanks. If a commercial application is OK for you, please take a look at my company's website . You can try either SQL CE Console (phasing out) or the new Data Port Console (in Draft version). ...Show All
SQL Server Deploying Reports with WSS 3.0 integrated mode
Hi , I am trying to deploy reports through visual studio. In the Target server URL, specified the url of the report server as http://<localhost>:<portnumber>/reportserver/Shared Documents/. But When i deploy it asks for username and password. when i provide them, again login screen appears. Finally deployment fails when i press cancel. Did anybody face this kind of problem Thanks & Regards, Kiran Kumar For deploying reports to a Report Server in SharePoint Integrated mode use the updated Report Designer that ships with SQL 2005 SP2 CTP3. Additionally, it is reco'd to deploy to the SharePoint Document Library with settings as follows: TargetDataSourceFolder: http://<MyServer>/ ...Show All
SQL Server cannot acquire a managed connection from the run-time connection manager
How would one go about using an ODBC connection with SSIS. I'm trying to ETL some Sybase ASE data, but I get the error when I try it: "cannot acquire a managed connection from the run-time connection manager" This wasn't any help: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=169777&SiteID=1 Well I started a new project and made ADO.NET:ODBC connection and now it gets much farther along. Somehow it was caching up the previous 'ODBC' connection ...Show All
Visual Basic number of rows in a dataset
How do I find number of rows in a dataset I am using Visual Studio 2005 ignore my first response to my question. I finally realized all I had to do was substitue my variable name for the "MessageBox.Show" and it works perfectly. thanks again for your response. ...Show All
