Alex2200's Q&A profile
Software Development for Windows Vista Physical Screen Orientation
Hi everyone. I was hoping you would be able to help me with a problem. I bought a Toshiba Tablet PC a few weeks ago (loving it) and included with it are little programs made by Toshiba that help with things such as hardware specific features (ie. the Fn key which lets me change brightness or volume with a key combination, etc.). This was quite handy but there is a couple of problems. First, these little programs are only installed when I use my Toshiba OEM Windows XP Installation CD. And now that I've sworn off XP and moved to Vista, these programs are no longer available. And secondly, I don't know about you guys but I find the evasiveness and user experiences of these little applets annoying. They have their own notification icons whi ...Show All
.NET Development Caller ID on an incoming Call via Modem
Howdy, I'm trying to create a helpdesk application for a small company. One of their problems is that they fail to record all incoming support calls and thus lose money. Hence, they want a helpdesk application that monitors all incoming calls, records the length of call, and updates a central database. Monitoring the length of calls and the database side is not an issue. Finding out who is calling is the problem. Does anyone have any simple code for getting the caller id from a modem (or can at least point me towards some vb .net 1.x/2.x code that i can use to get me started. I've been searching the web and found lots of references to tapi and various 3rd party components, but i cant seem to find anything in plain english that wil ...Show All
.NET Development WriteXML pbm
hi, I'm facing a strange pbm while converting excel file to xml. If excel file has decimal datas, then some of the decimal datas will be appeared in converted xml file as shown below < xml version="1.0" standalone="yes" > <NewDataSet> <Attendance> <Mas>M</Mas> <CustG>X</CustG> <PT>0</PT> <R1>11</R1> <R2>20</R2> </Attendance> <Attendance> <Mas>M</Mas> <CustG>X</CustG> <PT>1</PT> <R1>10.8</R1> <R2>10.9</R2> </Attendance> <Attendance> <Mas>M</Mas> <CustG>X</CustG> <PT>2</PT> <R1>10.6&l ...Show All
SQL Server About Web service or HTTP ENDPOINT
Hi All, I met some problems when I walk through a example for Native Http SOAP in SQL Server 2005 for Developers. after I create the HTTP EndPoint in the Management Studio using following code: USE AdventureWorks GO CREATE PROCEDURE EmployeePhoneList AS SELECT C.LastName, C.FirstName, C.Phone FROM Person.Contact AS C INNER JOIN HumanResources.Employee AS E ON C.ContactID = E.ContactID ORDER BY C.LastName, C.FirstName GO DROP ENDPOINT HRService; GO CREATE ENDPOINT HRService STATE = STARTED AS HTTP ( PATH='/HumanResources', AUTHENTICATION=(INTEGRATED), PORTS=(CLEAR) ) FOR SOAP ( WEBMETHOD 'EmployeePhoneList'(name='AdventureWorks.dbo.EmployeePhoneList'), DATABASE='AdventureWorks', WSDL=DEFAULT ) then I can see the ...Show All
Smart Device Development Bypass GPRS Connection in WM'05 Smarphone/Pocket PC
Hi to all. I'm developing a solution that needs GPRS connectivity by two APN (Access Point Name). One is defined as WAP with an HTTP proxy and the other one an Internet without proxy. The device is a Smatphone (HTC Startrek - QTek 8500) and its configuration is: Start > Settings > Connections > GPRS > Amena GPRS Connect to: The Internet Access point: internet User Name: xxxxx Password: xxxx DNS fist: 0.0.0.0 DNS second: 0.0.0.0 IP Address: "blank" Start > Settings > Connections > GPRS > Amena WAP Connect to: The Internet Access point: amenawap User Name: xxxxx Password: xxxx DNS fist: 0.0.0.0 DNS second: 0.0.0.0 IP Address: "blank" Start > Settings > ...Show All
Visual C# copying referenced objects
If I pass a variable by reference to a class constructor, and then that constructor moves it to a class-local variable; does it still point to the original object, or is the variable duplicated and the copied veriable altered from then on Eg. public class [...] ArrayList diral; public FileListThread (string dirpath, ref ArrayList diral) { this.diral = diral; } I'm assuming this is going to be the case for an ArrayList like the above, but what about if "ArrayList" in the above code snippet was replaced by a simple type such as "int" Also, if the above variable needs to be type-safe for some reason, could you pass the lock object in the same way and have it work properly, or would the compiler regard the referenced ver ...Show All
Windows Forms Should I define the primary key before a DataAdapter.Fill ?
Hi, I am retreiving a table from an Access database using ADO.NET by: 1) Creating a SelectCommand 2) Assigning it to the DataAdapter.SelectCommand 3) and then performing a DataAdapter.Fill to implicitly create the datatable. Should I define the primary key for the datatable before I populate it or after many thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Programming is very Hard
I've been reading DirectX sdk tutorials and MDX tutorials and things like that, and it seems VERY VERY VERY hard. Will this new XNA studio and the documentation simplify this All these vectors and whatnot is very complicated and I'm having trouble understanding seemingly basic concepts in game programming in 3d. You might also want to start with doing 2D stuff until you're comfortable with the concepts of game development. You might also want to check out the game development webcasts that are available. I would imagine the Starter Kit(s) would set up the basic game loop and initializing needed so you can check how it's done for future reference. We'll have to wait a few more days to see what the team is going to give us as a bas ...Show All
SQL Server Date question
I currently get a date in the default format in my stored procedure. Up until now converting the date to type 101 was acceptable. Now they want the date to read something like Wednesday, November 8, 2006 or November 8, 2006. How do I do this convert in a single select statement I found the types that add the time but I have to make sure that the time isn't included for merge reasons. Help Jeff Mookey: Are you looking for something like this: declare @myDate datetime set @myDate = getdate() select dateName (dw, @myDate) + ', ' + dateName (month, @myDate) + ' ' + convert (varchar (2), datepart (dd, @myDate)) + ', ' + convert (varchar (4), year(@myDate)) as [D ...Show All
Visual Basic Multiple Catch blocks permitted
Visual Basic Language Reference Try...Catch...Finally Statement (Visual Basic) Multiple Catch blocks permitted. If an exception occurs while processing the Try block, each Catch statement is examined in textual order to determine if it handles the exception, with exception representing the exception that has been thrown. ------------------------------------------------------------------------------------------------------------------------------------------------------ I have found that if I implement a multiple catch block an entry is always added to the exception stack for the block even though the exception that passed through was not an exception that was to be handled. I was expecting this multi-catch bloc ...Show All
SQL Server Subscription To Address
Is there a way to have when a user creates a subscription, using NT Authentication, to allow the user to edit the To field or have it default to a certain @<domain> We have a test environment, but it is not the same as production, so when they subscribe they only see their NT account and when the report is attempted to be delivered it fails. I can go in as an Admin and change the subscription, but would rather not to have to do that. Seems like a simple configuration change somewhere, I just have not been able to find it. The only danger in allowing a user to enter their own address is if they get mad at someone and put them in and use RS as a spamming tool. ...Show All
SQL Server Design question two companies one parent
I have built some cubes for one of two companies owned by a parent company. The execs at the parent company like what they see. They want the same thing done for the second company. They would also like to see a rolled up view of the data (sales, ytd sales by product group, material cost...). Should I: Build separate fact tables and cubes. If so how best to roll up the data. I would have to combine sales for identical product groups etc. Another idea I had was to include an entity_id column in the fact tables and keep everything together. My feeling is that the entity_id would be easy but some columns will be missing data for one of the company and other columns may be empty for the other company. There are certainly issu ...Show All
Visual Basic Null dates
I have a .NET class lib which defines a public function which takes a date parameter. Sometimes, the date is NULL (values from a database) but if I try to pass NULL into this function, obviously it will not accept it. In VB6 I would use a variant data type to get around this but how do I do it in .NET Another options is to have a second method that takes in an instance of some reference type (say object). Then you can check for Nothing or if it's actually a DateTime class and call your actual method appropriately. ...Show All
Windows Forms DataTable Acts As Intermediator For DataGridView
I have one DataGridViewand i have defined the columns for this datagridview but i don't specify the DataSource for this DataGridView. As a result, it is just a merely DataGridView with columns. After that, i insert a data by using DataGridView1.Items(0,0).Value="data" and however one of the columns is check box column, if the user tick on it, another row will be created. I tried to put this DataGridView1.AllowUserToAddRow=False after the code of inserting the data then the data cannot be added. No matter how i dont want new row to be generated so i think of using DataTable acts an intermediate table and set it as DataGridView1.DataSource. My problem is i have no idea how to specify value for a row of a column ...Show All
Windows Forms classic combobox problem
If you are binding a combobox to a datasource how can you add the infamous "select one" as the first visible selection. I have done this for webforms using the 'listitem" but it seems that this need has been overlooked for windows forms. Thanks PatC Thanks Bob, Yes that is a solution, but in Framework 2.0 how do you add an Item to a non bound combobox when the only parameter that the Item.Add method takes is an object. ...Show All
