clint 2's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Private Network Functionality with XNA
Hey guys, Does anyone know if there will be any networking API included with future released of XNA Im not looking for developing for Live! but for a custom client/server structure. Any insight would greatly be appreciated. ...Show All
Visual Studio Express Editions Name is not declared
As my first useful program, i am coding a simple calculator. So far, I have the following code: 'When "Equals" is pressed Private Sub EqualsBTN_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EqualsBTN.Click 'Getting the information from the input boxes Try Dim a As Integer = InputA.Text Catch MessageBox.Show( "Error. Either you did not enter data into the first textbox or it was not numerical" ) End Try Try Dim b As Integer = InputB.Text Catch MessageBox.Show( "Error. Either you did not enter data into the second textbox or it was not numerical" ) End Try Dim operation As String = FunctionSel.Text If operation = ...Show All
Windows Forms Controling Mouse
Hi, I would like to write codes that can control the mouse movement by using C# but i have no idea how i should go ahead with it. I am currently working on a project named "motion detection to control pc". It is a project which can assist paralysed patient to access the pc using facial movement. I have a webcam capturing movement of head and translate it to mouse movement. I need to write some simple codes which can command the window mouse to move and click on the icons on the desktop when the webcam detect motion. I have written a simple coding using Cursor.Position: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ public void MoveCursor() { if(!this.Cursor.Equals(Cursors.Default)) { this.Cursor = new Cur ...Show All
SQL Server Clearing Single User Mode/lock
What is the best way to clear Single User mode from SQL Server 2000 I have tried going to all tasks and selecting detach and clear Connections using this database. I then click cancel and go into the properties and options and clear the Restrict access check box. This seems to work some times but not all the times. I think it is because something else connects to it to it while I am going through the above steps. As a last resort I have detached the database and re-attach it. What is causing the single user mode to happen in the first place I am a little confused, the system is going into single user mode of its own accord and you want to get it back out again Have you looked at the error log to f ...Show All
Visual FoxPro VFP TIMER MEMORY PROBLEM
Hi All, Our product is a 24/7 Hospital product and i face a critical issue in Timer control. The below code is a small example of my process, i created an exe of this code and this runs as a process in the task manager. The issue is this eats up memory consistently in time intervals. if this exe is ran for days the memory is used is like in MBs and slowing down the PC's performance. TimerCtrl() procedure TimerCtrl LOCAL poTim poTim = createobject ( "iTimer") poTim. interval = 1000 poTim. enabled = .t. read events endproc *========================================================================================================================= define class iTimer as timer fun ...Show All
Visual Basic remove the MainMenu Image display
Hello I am trying to remove the image icon space beside the mainmenu i would like to display the dropdown menu directly below the selected menu. i do not want to have the shaded portion or any icon in this place. How can i do that . Thank you for your help. Atheeque ...Show All
SQL Server Report printing one record per page - SQL 2000 RS
Hi all, relative reporting services nooby here. Although when my reports display through the report viewer, they contain multiple records per page, when I print preview or print, they only print one record per page, which is a pain for my users. I've checked the reports properties, made sure that any Lists do not have the 'fit on one page' box checked and such to no avail. I notice that if I export the report to say Excel or .pdf, I can print with multiple records on a page but this is deemed unacceptable by my users. Thanks in advance for any nice suggestions. People can only speak from experience, so if no one has come across this before then you can't expect an immediate response. You seem t ...Show All
Visual Basic Upgrading MaskEdit Control
Need help with converting mask edit control in VB6 to Studio.2005 Starting with Visual Basic 2005, the masked edit control (MSMask32.ocx) is upgraded by the Upgrade Wizard to the System.Windows.Forms.MaskedTextBox. What problems are you having ...Show All
Visual C# Trouble with external DLL return value using a structure
I'm rather new to C#. I've been working on a general context menu DLL process. I've got it ti compile and can call it but as soon as the application tries to instanciate the external (CntxtMenu.method_Process) it says "can not marshal return value". I've spent time on this since it became interesting to try to pass a structure and use external dll'S. I can't seem to find very much information about this particular error. Any help would be appreciated. methodName structure seems to be where I have a problem. It's an array of eventhandler info I'm trying to pass. DLL: //using System; using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Windows.Forms; using System.Security.Pe ...Show All
Visual Basic How to overcome the Like Operator length limitation in VB 2003??
I have two strings: stringa = various characters to 359 characters in length stringb = a string-pattern to match that of stringa The LIKE operator works .. However, when another single character/or more are added to stringa, the like operator fails, returning false, despite the string-pattern matching Is there a workaround for this Please Help. You should probably look into regular expressions (found in the System.Text.RegularExpressions namespace). The syntax is different and may take some getting used to, but regular expressions will prove to be more powerful and do not have any limits on length. ...Show All
.NET Development Using a MS Access database
Hello, I look for some articels and examples about read and write to a MS Acess database(on my website). Diii The following should get you started: Walkthrough: Creating a Web Page to Display Access Database Data ...Show All
Visual C++ decimal to ascii for mathematical purposes
Hi, I have a small problem where I am required to add the ascii values of characters but display the result as hex. I am transmitting data via RS232, the data packet consists of 12 characters including line feed, carriage return. Before transmitting the carriage return, I am required to include a checksum which is to be the sum of the ascii values of dataCharacter2 through to dataCharacter8. E.G. if the packet was <LF> 1 1 1 1 0 4 5 1 1 0 <CR>, then the sum would be 15 The individual data is derived from separate functions and passed to a dataSend function. The code in the dataSend function is: int checkSum = word2 + word3 + word4 + word5 + word6 + word7 + word8; serialPort1->Write( checkSum ); I am s ...Show All
Software Development for Windows Vista Very strange Pipe Thread problem
I'm developing a client-server application using Named Pipes on WinXP, VS 2005, C++ NATIVE (NOT .net) compiler and starting with the sample code in the documentation. The sample code I started with was "Named Pipe Server Using Overlapped I/O" and the question is about the server side code. As part of the development, I put the code into a class and put the PIPEINST array into the class. The client can open the pipe, but not write to it or get the named pipe info. If I move the PIPEINST back out to global, as in the sample code, everything works properly! Put those variables back into the class, and it fails again. Why is there a problem here Thanks in advance for any understanding you might be able to provide. John ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Torque X Open Beta is out!
install the software and you will get other starter kits . But I can not find any 3d game starter kit. I'm missing some understanding.. .what does the TorqueX engine actually give you on it's own Would you actually need to buy the Torque Game Builder too, and import things you create there into TorqueX and then into XNA ...Show All
SQL Server Connection
Hi, I installed SQLSERVER EXPRESS Edition.When i try to connect to sqlserver express,In the server name what we have to specify. I know that we have to specify Systemname\SqlServer instance name. I find sqlserver instance name in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\SSMSEE My system name is Kal. Now my server name:kal\SSMSEE and i followed windows authentication. Username:kal\Administrator. And click on connect. Iam getting this error.Couldnot connect to SqlServer.Server does not allow Remote connections. How to resolve this error. Thanks in advance Hi, have a look at my site under the section Screencasts on the top navbar. YOu will find the Screencast for Enabling remote conn ...Show All
