Software Development Network Logo
  • Windows Vista
  • Visual Basic
  • Smart Devicet
  • IE Development
  • Audio and Video
  • Visual C#
  • Microsoft ISV
  • Visual FoxPro
  • Game Technologies
  • SQL Server
  • VS Team System
  • Visual Studio
  • Windows Forms
  • Visual C++
  • SharePoint Products

Software Development Network >> Yaoyuan's Q&A profile

Yaoyuan

Member List

bkustel
Swanands
Marjorie
lholmes
digitalsuperman
Ted Strom
Brant Yin
Boman
TimmayB
Rafael (Live Butterfly)
Arnaud H
JerryCic
tango209
Michael Vainer
uwcodeman
DORINC
Antioch
Jamie Thomson
Kzin
Dennis Mulder - dennismulder.net
Only Title

Yaoyuan's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. my first game - how?

    I'm VERY VERY new to directX. So I apologise for asking this question I have used directX once, managed directX, within my C# app but this was for audio related stuff and it was very cool. Firstly, hats off to the top jocks at MS DirectX team for providing us with all these technologies - thanks. Now, I am wanting to know how can I go about writing a VERY simple basic game - this game would be like a shoot 'em up style. Example: 1 spaceship shooting other incoming objects. That's all. I am wondering what is the best place/area to look at to get me started What do I do How do I create graphics (basic) how do I make the spaceship move from left to right using the arrow keys These types of questions I would like to know and w ...Show All

  • Visual Basic null reference in passing array between procedures

    Hi, I'm trying to write a program that grabs data from a text file and populates the array of a structure, but I've been getting a "system.nullreference exception: object reference not set to an instance of an object. at A.Readfile(string file, schedule{} & flight) at A.Main(String{} arg) Sample code:  Public Structure Schedule         'members of the structure         Dim Airline As String Public Sub Main(ByVal arg() As String) Dim flights() As Schedule 'a structure previously defined Dim response As String ReadFile(arg(0), flights ) 'i think flights is causing the problem, but not sure how etc, Sub Readfile(B ...Show All

  • Visual FoxPro How to remove redundant phrase in field?

    Hi all........ I have a table field that contains things such as..... V DISCONTINUED W/O REPLACEMENT; V DISCONTINUED W/O REPLACEMENT -I&S MASTER; 7 SUB 2610-139-3704; I&S MASTER; 7 SUB FOR 2610-139-3704 What I need to do is remove the duplicate phrases, leaving only one instance of each phrase in the field. The amount of phrases in the field varies...could be 2 as shown above or there could be 6. I suspect that the 'common denominator' is the semi-colon, but everything I've tried has failed. Any help is greatly appreciated! First you should determine what a sentence is, for example: - From a delimiter (start, ";", end) to another. - A certain quantity of char ...Show All

  • Smart Device Development How to turn on/off flight mode on smartphone

    Hi, all: Can I turn on/off flight mode on scheduled time by code Is there any APIs to turn on/off flight mode Thx! Hi Yes, there is: use the extended TAPI API lineSetEquipmentState (hLine, LINEEQUIPSTATE_MINIMUM) The API CeSetUserNotificationEx can be used to implement the scheduling. ...Show All

  • .NET Development Accessing Web page and PDF's

    Good day, i have a VB.Net database switchboard and i am woundering if it is possible to access a webpage and pdf documents through individual buttons. I have some maps and user manuals that i wouls also like to be handy to the users. any suggestions or examples are appreciated Cheers, Bryan Alright, I got the HTTPWebRequest to run in VB.Net, now my problem is that it is not opening the web browser, but when i click on the link in the code the page loads no problem, anyone have any ideas how to solve my litte problem. All of the help is appreciated in advance, Cheers, Bryan ...Show All

  • Windows Forms multiselection in a datagrid

    Hi! I would like to know how can i select multiple rows in a datagrid I can select an entire row but i can't do a multiple select. I have another question,how can i add a checkbox on the header of my datagrid I want my application do allow one or more rows selection. When the selections done, the user have to check the checkbox to allow another event to happen. Thanks a lot!!! you can add a check column in your datagridview,here is an example dataGridView1.Columns.Insert(0, new DataGridViewCheckBoxColumn ()); // Initialize the dictionary that contains the boolean check state. checkState = new Dictionary < int , bool >(); ...Show All

  • SQL Server Restart of SQL Server Agent needed - every day

    Hi, I'm having a very strange problem here. I've got a few SSIS-packages here which runs as Server Agent Jobs. They are scheduled to run every hour. This is what happens: on the first run, all packackes are running and completing all steps successfully. After that, at the second start of the jobs, activity monitor shows "executing step 1", but nothin happens anymore. To get the jobs running again, I need to restart SQL-Server Agent Service. I really have no clue whats wrong with my agent. Any suggestions/hints Regards, Jan Hi, I was wondering if you've found a solution to this problem. I haven't released my project yet but I am concern about this message in my logs. My logs ...Show All

  • Windows Forms Controls are falling off due to Vista's thicker window borders

    I'm having some trouble with my controls under Windows Vista. Due to the thicker borders on Aero themed windows, my control's sizing and alignment code is no longer working correctly. Items are falling off to the right hand side.   What can I do to stop this above happening Screenshot didn't post right, can be found here: http://nidonocu.com/forum_images/temp-09-07/falloff.PNG ...Show All

  • Internet Explorer Development Wrap selection or IHTMLTxtRange in Font or Span tags of a given class

    I am trying to wrap the users selection (or a IHTMLTxtRange) with font or span tags that have a given class. The best that I can do now is: pRangeToRender.execCommand("BackColor", false, SOMECOLOR) I then use IHTMLElementCollection allEls = doc.getElementsByTagName("FONT"); and check each tag if it's SOMECOLOR. If it is, I clear the color and set the font tag's class. This is quite slow on large selection. Is there some better way to do it This is kind of a shot in the dark as I have never tried this, but perhaps you could retrieve the block of text using pRangeToRender.htmlText. You could then wrap that with a SPAN tag, and then try to re-insert it by setting the pRangeToRender.text p ...Show All

  • SQL Server tempdb log file placement

    Using SQL2000 Is it recommended to put the tempdb data and log files on different drives It all depends. One approach: If you have: One logical drive: Everything Two logical drives: Log Everything else Three logical drives: Log Data Everything else Four logical drives: Log Data tempdb OS Physical Database Storage Design: http://www.microsoft.com/technet/prodtechnol/sql/2005/physdbstor.mspx ...Show All

  • Software Development for Windows Vista Open a link in a web browser during workflow execution

    I have an activity sequence in a workflow. At one point the workflow generates a link and this link needs to be opened in a web browser. How can I open that link in a web browser any code sample would be also useful... Thanks in advance.... Marko Vuksanovic. You might be interested in this Process activity sample. ...Show All

  • Visual C++ CPropertySheet Problem

    Hi there I'm working now on some application using CPropertyPage and CPropertySheet, the thing is how to change an action(OnClick for example) of standard buttons(OK, Cancel) on CPropertySheet, maybe with more details, when CPropertySheet creates by DoModal or Create such an bookmarks(tabs) creates and some buttons like OK or Cancel, and my question is how to change action of those buttons from standard action to defined in program one best wishes adrian proszczuk poland This forum is for C++ language issues. There is a newsgroup dedicated to MFC here: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vc.mfc&lang=en&cr=US ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. No text input in WinForm controls

    I am putting some WinForm controls on the Game's window, like this: protected override void Initialize() { // TODO: Add your initialization logic here TextBox t = new TextBox (); Form f = ( Form ) Form .FromHandle( this .Window.Handle); f.Controls.Add(t); base .Initialize(); } This works fine for Buttons etc., but entered text does not show up in a TextBox. Not using Keyboard.GetState() does not help. I suppose that the game window consumes all keystrokes and does not pass them to the controls. Any help Thanks, Leaf. I tried as you suggested, and used a separate "floating" form for my GUI: static void Main( string [] args) { using ( Fo ...Show All

  • Visual Studio Team System Error during merge of changeset to branch

    When trying to do a changeset merge the developer got an error dialog that said: "Error The given key was not present in the dictionary." It still put files in the pending changes though... ideas Richard Berg MSFT wrote: This sounds like a client-side bug we fixed in SP1. The developer did do the install of SP1, but I checked his box and it seemed to have some SP1 updates and not others, so we will rerun the SP1 install. Thanks ...Show All

  • SQL Server You are not authorized to view this page

    I cannot access the SRSserver/reports page and get a 401 error, no matter what credentials I supply when prompted. This is a 2005 SRS install, with a distributed model - the database is located on a separate server. The account I am using is an admin on both servers (and in SQL). I've tried enabling anonymous logon on the /reports virtual directory and that didn't help I've used Filemon to see if there were file system permission problems...it showed no failures. I created a test text file in the reportmanager directory and am able to view that, so it's something that the home.aspx file is trying to do. I'm able to connect to the remote SQL server with Management Studio and everything in the SRS Config app is green. Than ...Show All

©2008 Software Development Network