Shadi Mari's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Where does Console.WriteLine() go to on 360?
Probably a setup problem, but I can't seem to get any text sent to Console.WriteLine() to appear in the output window in GSE, when running the app on my 360. Anyone else managed to get this working Andy. Use Trace instead of Debug. System.Diagnostics. Trace .WriteLine("This works the same on both Xbox 360 and Windows."); Output goes to the Output Window when you're debugging, and it is not configuration-dependent. You may want to remove these after debugging, as they may have some perf impact on the Xbox 360 (especially if you're generating a bunch of output per frame). --Stephen [edit: This is what happens when you are distracted in the middle of writing -- leaf already a ...Show All
Smart Device Development Data Connection Options and Techniques
Hi All, I am new to the .NETCF and actually the .NET Framework itself. I'm a MS Visual Foxpro Developer by trade and have experience developing client and web based applications using the following languages VFP9/VB6/C++6/XHTML/XML/ASP. I have recently been extremely excited by the prospect of using the ,NETCF2.0 and WM5.0 to develop a Windows Mobile based solution for one of our clients. I've done a lot of investigation into using the .NETCF2.0 to build this client solution, but not actually coded anything yet. I have created a design document detailing everything this solution should included and the language and platform to be used. Unfortunately I've hit a stumbler, my design document is far to idealistic. I have been tasked to b ...Show All
Visual Studio Express Editions Convert hex byte to decimal?
Here is the code I am using. I would like to convert 1 byte that is in hex to a decimal value. //==define a buffer array to load a save game file into. private byte[] mBuffer; // File data buffer //==in click open event. // *********************************************** // Select filename and load file into mBuffer // *********************************************** if (openFileDialog1.ShowDialog(this) != DialogResult.OK) return; using (FileStream fs = new FileStream(openFileDialog1.FileName, FileMode.Open)) { mBuffer = new byte[fs.Length]; fs.Read(mBuffer, 0, (int)fs.Length); fs.Close(); } //==find strBkName in mBuffer. this gives the starting location aa ...Show All
Visual Studio Express Editions Saving Changes made in a dataset (Access2002) to the original datasource
I've just recently started using VB8 and I'm having some problem understanding the way data(changes) from my programm is to be handled, so it will be saved in the original database. I've setup the connection to the database and made a Dataset with the appropriat datatables. When I want to add a new 'record' to the database, using the command Me.SomeTableAdapter.Update() command, only the temporary database in the /bin-directory is updated and not the original one. This temporary database is of course overwritten by a new build. What am I doing wrong This is a well known issue. There are a couple ways to deal with. The way I deal with it is to move the database to the main directory to begin with. ...Show All
Visual FoxPro Problem trying to create an Encryption Library
I have followed the example for creating a C# Encryption Libary, but receive numerous errors with regard to no overload method ' ' requires 2 arguments, I have verified that my code is exactly as the example provided by microsoft and found no difference. Has anyone ever tried this code and had problems. Is there any other code to create an encryptoin library in C#. I would appreciate any and all assistance. I am responsible for figuring out how to encrypt the connection string for our web config files in Asp.net page. (we dont' have the .net 2.o framework, we are using Visual Studio 2003 with 1.x framework Thanks Heather Yes if have enc.IV = IV; in my Encryption Class. With the exception of yoru post outlining a ...Show All
Visual C# Zebra TLP2844 USB Printing
I've just taken delivery of this printer, and having worked with a mobile zebra printer recently, I figured it would be relatively simple. I'm having problems printing a label from within my application, and I get a PInvoke error when trying to use the RawPrintHandler class. Does anybody have any hints on how I print to it within my application I've created a print dialog and a print document, but all I seem to get is the actual text I'm trying to send it. I've tried EPL and CPCL, both just come out as text. I'm using Visual Studio 2005, I've installed the latest drivers and firmware from the Zebra site. I appear to have found a solution; Available on the Zebra website is a C# class which wraps cal ...Show All
.NET Development save asp.net profile in sql server. No changes in profile!!!
hi, I'm using a asp.net profile to save user information. E.g: [Serializable] public class UserAddress { public UserAddress() { } #region Property: Street private string street; /// <summary> /// Gets/sets the Street /// </summary> public string Street { [System.Diagnostics.DebuggerStepThrough] get { return this.street; } [System.Diagnostics.DebuggerStepThrough] set { this.street = value; } } #endregion wehenever i update an edited profile using: Profile.UserAddress.Street = "new Street" ... Profile.Save(); then, the profile is saved twice (the first time with the new data, and t ...Show All
Visual Basic problem using COM Class...(urgent help please!)
I decided to develop a COM standard dll aiming to instanciate it using Excel 2003. After some help documentation look up, I realized that .NET 2005 is able to provide me a solution trhought a "COM Class" item. Below the code: <ComClass(XlBasic.ClassId, XlBasic.InterfaceId, XlBasic.EventsId)> _ Public Class XlBasic # Region "COM GUIDs" ' These GUIDs provide the COM identity for this class ' and its COM interfaces. If you change them, existing ' clients will no longer be able to access the class. Public Const ClassId As String = "A9FF699C-5289-4d10-9497-2219719DD2AB" Public Const InterfaceId As String = "94456DA3-99D1-48d0-97A1-09F4A4A5EADC ...Show All
Visual Studio Express Editions Can i use the .NET fw like this?
Is there a way I can compile code without the visual studio, that is, writing code, then just using some kind of compiler (a bit like the compiler for java--"javac.exe") I am ok with non-object oriented programming. You can browse the MSDN library to find help on the command line compiler: http://msdn2.microsoft.com/en-us/library/25fz1td5.aspx ...Show All
Software Development for Windows Vista CreateFile Assistance
I have the following code taking out from windows system programming 3rd edition book. I'm having a hard time running this code, I know where the problem occurs, but don't know how to remedy the solution. I want to pass the command line arg(in this case argv[1]) for CreateFile, but I get an error. If I were to use TEXT("filename") everything will work fine. How can I get CreateFile to work with argv[1] Here is a snippet of my file. int main( int argc, LPTSTR argv[] ) { if ( argc != 3 ){ std::cerr << "Usage: cpW file1 file2" << std::endl; exit( 1 ); } HANDLE hIn, hOut; DWORD nIn, nOut; hIn = CreateFile( argv[1], // file to open GENERIC_READ, // open for reading FIL ...Show All
Visual Studio Express Editions disable Ctrl+Alt+Del using C#.Net
Hi, I am just a beginner of .net programming so I need the help from the experts. I would like to know how to disable Ctrl+Alt+Del, Alt+Tab, Windows (Key) and Alt+Esc keys programatically either in VB.Net or C# on Windows XP and Windows 2000 operating systems. Thank you in advance, S.Manikandan ...Show All
Visual C++ Errors adding /clr to my ATL Service project (a COM exe)
Hi there, In VS2005, I created an ATL Service project for rebuilding a legacy COM server using new ATL features. I later added /clr, trying to bring .NET stuff in to my C++ code. But this caused the accompanying PS project fail to compile. According to the compiler, the offending code is in atliface.h: the compiler can't understand the ATL namespace when compiling xxx_p.c. I found the compiler is happy if I switch the namespace off by adding a check, #ifdef __cplusplus, in atliface.h. But this modifies a "standard" include, making me scatch my head. Was there something wrong Any idea Is new ATL fully compatible with VC++2005's c++/cli Thank you, Henry I resolved this problem by forcing the file to be ...Show All
Windows Live Developer Forums newMediaObject support
I read that this is not supported, but Windows Live Writer seems to use it. Has anyone tried this --Scott Thibault ...Show All
Software Development for Windows Vista stop printing from a filter
is it possible to stop the printing from an xps filter would a call to RequestShutdown be the proper way to cancel the printing In WDK 5384, \src\print\SimplePipelineFilter\XPSFilter.cxx,Line no:546. Put a breakpoint and debug so that when you cancel the job,the breakpoint is hit and m_bShutDown flag is set true. ...Show All
Software Development for Windows Vista How to create Wizard using Workflow?
Hi, I want to create a wizard for stepping through few steps of account opening. Application should be windows forms application but i want to incorporate Workflow as well to add some flexibility in to my application. Any idea how can i do that Any sample that I can look in to Thanks, Hiten Vihang, Thank you for your reply. What I want to do is have workflow step my user through steps to follow a process. E.g. order processing, where Create Order, AddItems,Select Payment Mode, Make Payment. Give the steps are sequential shapes in workflow, i want to display each steps as it progresses. Such that someone can monitor how it progresses and where it is now. I don't want to create workflow , ...Show All
