Ricardo Rivera's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. VB6 - Using DirectX 9 (XInput)
Hey Guys, My main problem is interfacing a xbox360 controller with VB6. I would like to use the XInput library files. However, I am confused on how I do this. I know i have to reference XInput, then import the header file, and create my own code to run the joystick. I am stuck at referenceing XInput....Any Ideas on how i might do this .... Am i doing this wrong You need to call the DLL in the same way as you would call any Win 32 API. You make a declaration and then call it like it was a VB function. There are some links to making .Net libraries here but they will help you with the API declarations. http://www.thezbuffer.com/articles/353.aspx Also if you already know how to use DirectInput the ...Show All
Visual Studio Express Editions How to Save Form
how do you save a form as a form that can be reopened and edit Hi, Could you further elaborate Coz normally when you save a form in Visual Studio you can open the form or attach it in a new project for you to edit it... cheers, Paul June A. Domag ...Show All
Visual C# what is wrong in this function (convert from hex to string)
public string Hex2String( string msg) { int i; string c; string correct=""; if (((msg.Length % 4) != 0)) { Response.Write("String bad length, It is not divided by 4"); return msg; } else { while ((msg.Length > 0)) { c = msg.Substring(0,4); i = Convert.ToInt16(c, 16); correct =correct+ ( char )i; msg = msg.Substring((msg.Length - (msg.Length - 4))); } return correct; } } this function is working perfectly when I put alone in simple application to convert but when I put it in another bigger web application it does not work ... it is always doing nothing , it returns the hexa as it is ...I do not know why !!! help me pleas ...Show All
SharePoint Products and Technologies Anonymous Access & Variations
Hi If I create a new publishing site and enable anonymous access to this site users don't need to login. This seems to work. But when I enable variations for this site the user is requested to enter a user name and password. No anonymous access anymore exept for the pages which are under the root site. How can I use anonymous access with variations Markus tester77: I solved this problem: I forgot to publish the default.aspx pages. After approval it worked fine.. ...Show All
Windows Forms Serial Number Generation Avoiding Duplicates
hi i have a datagrid, and i have binded it to a dataset, i have a column called srno and its autogenerated, it works fine, the problem is when i enter the data for the first time in a row the srno is 1, after entering the data i navigate to the second row, at that time srno is 2, before entering the data in the 2nd row do some alterations in the first row, after finishing alterations in the 1st row i return back to the 2nd row, and suprisingly the srno is now 3, need help thanks Prasenna thanks ken, try { ds.Tables[0].Columns["SrNo"].DefaultValue = System.Convert.ToInt32(ds.Tables[0].Compute("Count(SrNo)", null )) + 1; } catch (Exception ex) { M ...Show All
Smart Device Development Reading emails from windows mobile 5.0 ppc pocket outlook
hi, can u help me reading emails from pocket outlook in windwows mobile 5.0 pocket pc device Are there any managed libs for reading emails...or else we have to go for unmanaged code i am able to send emails using the managed libs given in the 5.0 sdk thank u Aditya. It appears that this question can better be answered by someone on one of the newsgroups for Windows Mobile or Windows CE. In order to get a quicker and more accurate response, please consider reposting this question to one of the following newsgroups: Windows Mobile API : microsoft.public.pocketpc.developer microsoft.public.smartphone.developer Windows CE API : microsoft.public.windowsce.emb ...Show All
SQL Server Package not picking up latest Config File changes
Hi, I've created a solution with 5 packages in. I've scripted a config file for each package where I would be able to change the source file connection and the database servers (source and destination). On the first package, I am able to change the config attributes and the affects are picked up, but the rest of the packages do no pick up the changes. For example, if the source file is "C:\Files\source.txt" and this is changed to "C:\Files\source123.txt" (Just to make sure it fails) it wont pick up the new changes and still uses "C:\Files\source.txt". Also, I tried changing the name of config file itself and the package still ran as if nothing had changed. It's as if it's not recognising the config fi ...Show All
Visual Studio 2008 (Pre-release) Why under Orcas
Why is this forum stuck under Orcas when WPF has been released to RTM and the public and Orcas is still a looooong way off. I.e. not even beta yet. Plus WPF has nothing to do with Orcas, it's Orcas that have a lot to do with WPF. Should WPF not exist in its own right under the .Net Framework forum or have I missed the point. rune ...Show All
Visual Studio How can I handle Build and Run events?
Hi there, I'm developing a custom package using MPF (VSSDK Sep 2006). I need to handle some usual events in VS: 1. Build - when user presses CTRL+SHIFT+B or Build command in the menu 2. Build & Run (aka F5) - when user presses F5 or Start Debugging command in the menu I want to handle these two events and ask my external compiler to just build the project or build it and if it's ok then run the compiled result. Can anybody advice me the appropriate solution for my task Maybe it will better to add my own menu near Debug and add 2 subitems to that menu In this case - how can I catch the CTRL+SHIFT+B and F5 shortcuts Thanks Hi again, I have found the way how to handle F5 in my case. Naybe this information will ...Show All
Visual C# Disabling Ctrl + Alt + Del
I'm writing an employee login application where I of course don't want users messing with Windows while it is running; Therefore I need to disable ctrl+alt+del. I've spent 2 hours now trying to figure out how to do this in C#. I've read from some people that I have to write my own version of GINA. I've also read about using WlxLoggedOnSAS to capture the ctrl+alt+del event. Are these the best mothods for doing this If so how on earth can I accomplish this task Thanks for the help :) Try this: Use a KEYUP event or a TIMER_TICK event: if (e.KeyCode == Keys.Control) { if (e.KeyCode == Keys.Alt) { if (e.KeyCode == Keys.Delete) { CancelEventArgs cancel = new CancelEventArgs(true); } ...Show All
Visual C# Why do I keep getting: "Dipose(bool): no suitable method found to override"
I have a very, very basic (non-form) .cs file and I'm trying to add a Windows Form to the project so I go to Project --> Add Windows Form. After naming the form and trying to compile I get the error: "GNotifyAddon.GNotifyConfigWindow.Dipose(bool)": no suitable method found to override I have an example project that I am trying to copy and I noticed that code behind the example's form has "public class FuryWarrior" but mine says "partial class GNotifyConfigWindow" (ignore the actual class names). I've tried changing "partial" to "public" but then I either get the same dispose error message or I get a message about another class having the same name... (my project only has two files so tha ...Show All
Visual C++ Warning C4727 in Release build but not Debug
Sorry for not replying to the other thread with this title, the moderator deleted it before I had a chance to respond (was only away from the office for 1 day!!). I am still getting alerts from that thread but I can't locate it by searching the forum. I have copied the thread so far below: A moderator has deleted the following post you made to the forums. Here are the reasons given for the deletion by Ayman Shoukry - MSFT no reply from user Here were the post contents Warning C4727 in Release build but not Debug I have a static library project that uses "create precompiled headers" which builds fine in Debug configuration but when building in Release configuration I get a bunch of the following warnings: warning C47 ...Show All
Software Development for Windows Vista pushsource filter and mpeg multiplexing
Hi, I am trying to create an application which captures desktop audio and video in mpeg format. I am able to capture both audio (using audio capture device) and video (using pushsource desktop filter). I am also able to encode them into mpeg format using mpeg encoders. Individual audio and video streams are great at this time.Problem comes when I multiplex them using mpeg multiplexer.The stream just vanishes and only zero byte file is created. If I pass just audio through multiplexer, it comes out properly.However, if I pass just video through multiplexer, the stream is gone. Can anybody tell me why this might be happening and how to fix it thanks and regards, Nikita I do not know your re ...Show All
SQL Server Package configurations stored in the database
If the configurations are stored in the database then does the package pick up the configuration as and when required or it a one time pick when the package is executed. What I plan to do When the package is executed, I want to have a script task at the start of the package that will update the configuration table in the database with the values that the package needs to run with. I mean change the values of the configurations of the tasks which will be executed after the script task. Thanks for your time. $wapnil spattewar wrote: What I plan to do When the package is executed, I want to have a script task at the start of the package that will update the co ...Show All
Visual C# database authentication
hello,everyone,i have two questions: 1.i have a logon window,has three textboxes,one is username,one is password,and the other is catalog,also i have a table named users in the database(contain all users' account and password),i want to achieve this objective,when user input there iniformation and click the logon button,it will compare the input information with the users table,if it is the same and the main form shows,otherwise give the wrong password inform. 2.and i have a button called reset password,if user input their user name and a password,then click the reset button,so the users table will update its record. how can complete this two fuctions thanks in advance.please give the codes with detail. ...Show All
