yxq's Q&A profile
Visual Basic Command line not shell
Hi, How can I execute a command like executing it from the command prompt through VB. I try "Shell" but it doesn't work. Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click ' Use '\k' instead of '\c' while debugging so that the CMD ' window will stay open and you can see what happened ' Test you single and double quotes by using the echo command Process.Start( "cmd.exe" , "/k echo ""sss ggg""" ) ' Example shows "sss ggg" (with quotes) in the CMD window. ' Now, instead of &qu ...Show All
Smart Device Development Platform Builder error 126
I am getting error 126 when I try to load my VS2005 Winmobile App from the desktop in Platform Builder. The same App targeted for Smartphone Emulator works fine in the VS2005 emulator. I suspect there is some mfc dll missing on my target. Is there a tool I can use to give me more detail on dlls that fail to load I'm not sure if there is any tool around to help you. In your error message, you wouls have got something like "DEVICE!CreateDevice: couldn't load 'xyz.dll' -- error 126 ". The dll it points to is most likely the culprit. This issue is vaguely similar to http://groups.google.com.sg/group/microsoft.public.windowsce.platbuilder/browse_thread/thread/13b64073c0bb904a/5adef741d126a319%2 ...Show All
Smart Device Development Disable Window Mobile screen orientation changes
Is there anyway to disable the screen orientation changes on wm5 We had to port over an old .Net 2003 application to wm5 pocket PC and we don't want to change the layout of the screen, customer also agree to use only potrait view. but letting user switch the screen orientation to landscape will misleading the user where they will see a lot of garbage we hide on the right side of the screen. Someone from ms tell me to detect the orientation change and force it change back the orientation layout to portract if it is in landscape layout. I can detect the orientation changes, but what is the command to change the orientation Thank you I use this code and it work, I just remark those error. Imports ...Show All
Microsoft ISV Community Center Forums Difference between Array() and ReDim
This is probably basic, but I can't figure it out. I have made a property in IDL/C++ which takes a VARIANT as input [ id (310), helpstring ( "Data" )] VARIANT Data; If I assign data from a VBScript like this, it works: arrayout = Array (1.23, 2.34, 12.5) output.Data = arrayout But if I do the more common like this, It does not.This is probably basic, but I can't Dim arrayout() ReDim arrayout(2) ...Put data in... output.Data = arrayout I have read that Array() makes a VARAINT type, which makes sense why it works, but how can I get the ReDim etc. without using Array() function to work -cpede Hi cpede, Thats a curious problem. Had a read on the differences between&n ...Show All
Visual C++ Custom Build Step isn't done
I am executing a JScript to generate code. I have a Custom Build Step to do that. It is not being done and I don't understand why not. The command line for the custom build (excluding the path of the script) is: CScript.EXE Preprocessor.js "$(ProjectDir)" "$(InputFileName)" I have outputs such as: "$(ProjectDir)\Output1" "$(ProjectDir)\Output2" However I can't get the custom build to execute. If the outputs don't exist then it does not execute. If the outputs do exist and I update the input then the custom build still does not execute. Am I wrong that the custom build should execute in both situations Update: I found the thread "Custom build step" of a project: execution rule , which suggests that ...Show All
SQL Server Cannot transfer schemabound object - error
I am trying to alter the AdventureWorks database to transfer ownership from one schema to another... Alter schema dbo transfer Person.CountryRegion I get the following error.. "Cannot transfer a schemabound object." Any help would be appreciated. Person.CountryRegion has foreign key references and an indexed view referencing it. So you need to resolve those before trying to transfer ownership. In this case, it looks like you have to drop the index on the view, perform the transfer and create the index back. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Walking Model
Greetings, I've just installed the new XNA 1.0 and tried to add a 3D model.... I loaded a Dwarf that comes with the Microsoft DirectX SDK, and I would liketo give him some moviment... I don't know how to make a 3d Model move... and I would like to read some resources about it... can somebody help me out Focus On 3D Models by Evan Pipho ISBN: 1592000339 http://www.amazon.com/Focus-3D-Models-Game-Development/dp/1592000339/sr=1-1/qid=1166703018/ref=pd_bbs_sr_1/103-0325147-4325420 ie=UTF8&s=books ...Show All
Visual Studio Sandcastle Aug CTP: <seealso> tag not working
With documentation comments like: /// <summary> /// Here is the summary of the class. /// <seealso cref="OtherClass" /> /// </summary> The generated text in my CHM file looks like Here is the summary of the class. OtherClass If I put the <seealso> tag outside of the <summary> element, the seealso text doesn't show up at all. The last time I checked, according to the MSDN Library, the <seealso> tag is supposed to go inside the <summary> element, so my example above should be correct. Is Sandcastle not properly generating a See Also section in the CHM documentation — Eric — In the September CTP, the <seealso> tag is still ...Show All
Visual C# Creating ContextMenu in Asp.net using c#?
Hi.. How to create a contextMenu control in ASP.NET 2.0 using c# As windows applications have a context menu control, is it possible to get a similar functionality in Web based applications alos Please help the best place to ask this question, since its ASP.NET related, would be here: http://forums.asp.net ...Show All
Software Development for Windows Vista Application architecture
I have started work onto developing an application that shall be supporting all the business flows within my organization. The end-user shall have access to the application via asp.net page, which shall showing him/her all their awaited flows (clicking on which he/she shall be shown details of what the user needs to do in order to make the flow move on) or they can instance a new one. I am looking for a comprehensive example in order to understand the architecture which i need to implement in order to acheive the above mentioned application. In other words, what would be the best way to implement it I have the feeling that what you need could be workflows integrated in Sharepoint 20 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. My take on Breakout
I've just about finished up my second game with XNA (the first being the obligatory pong game). It's my take on Breakout. It's a little more polished than the first few I've seen. It's got multiple block types, advanced paddle physics and animated sprites. All I've got left to do is add a menu and replace some of the temp audio files. Unfortunately, all I've got is a wireless Xbox 360 controller so the only control is using the keyboard but it works well enough. Here are a few screenshots: http://www.malevolence.org/images/breakout/breakout00.png http://www.malevolence.org/images/breakout/breakout01.png http://www.malevolence.org/images/breakout/breakout02.png I plan on releasing the game + full source sometime tomorrow. I'd be interes ...Show All
Windows Forms how to add value in combobox and checkedlistbox
in my database have 2 field my_ID and my_Name in my database has many row i try to loop and add value member but i don't know how to do that, i can do only add displaymember to combobox and listedbox i want to add data from field my_ID to value member of my combobox and my checkedlistboxcan anyone can help me thank you : ) myCombox.DataSource=mydataset.Tables["your table name in dataset"].Column["my_id"]; myCombobox.displaymember=........................................column["my_name"]; ...Show All
.NET Development ASP.Net 2.0 pages don't comply with HTML 4.01
Hello all. As you know, ASP.Net uses ViewState to store page information. It means that there is a line <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="..." /> your page. Because of id begins with "__" HTML 4.01 validator says that this page doesn't comply with HTML 4.01. Does anybody know, what can I do to force ASP.Net to create pages that comply with HTML 4.01 Hello, this forum is for questions relating to web services (.asmx) and xml serialization. You may have better luck posting your question in an asp.net forum at http://forums.asp.net/ . Thanks! Alex ...Show All
Visual Studio Express Editions Modifying Public Variables
I've been searching for this all evening, and can't find it. I have an application (project) with several forms. I use one form to gather inputs from the user, and am trying to place them into another form. (My central "repository" for the public forms) I then reference those public variables using my report form. Here's the problem. When the first form (the inventory gathering form) obtains the data, it does not write to the public variables located in the second form. I have it set up so that the repository has a public class, and the variables are all declared as public. (public XYZ as integer for example) In the other forms, I declare the variables local (dim) with the local name and set them equal to the publi ...Show All
Windows Forms VS 2005: Joining tables with update/delete/insert commands?
I’m trying to have two related tables appear in one datagridview with the ability to update/insert/delete in the table adapter. Here is a simplified version of what the table structure looks like: Table1 Table2 Table1_ID Table2_ID Order_No Part_No Table1_ID I want the datagridview to show: Order_No, and Part_No Upon trying to create this in the Designer, I was able to make a dataset that included fields from both tables (with an inner join). The automatically created Fill works fine, however, I’m unable to have the wizard create the update/insert/delete. Since I’m a novice, I’m not really sure how to implement them myself (with concurrency). What would be the easiest ...Show All
