Ricardo_AG's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Lost Device
I'm using managed directx 2.0 and the sample framework and there's a couple of things that i cannot understand concerning lost devices. My main problem is, where should i put the creation of objects. For instance in the sample framework a sprite is created in OnResetDevice, my question is why in here and not in OnCreateDevice When should i create resources with Pool.Default And when i'm using directx objects how could i know where i put the creation call It's on the OnCreateDevice or on the OnResetDevice This is very confuse, and there's no documentation ( i have not found none ) that answers my questions. Tnks for any help ...Show All
Visual Studio Applying a stylesheet to a report
I am having trouble getting my reports to pick up the styles in my stylesheet. I have tried setting the stylesheet class to an object on the report and linking the stylesheet in the html on the aspx page which has the reports viewer control on it. I have even tried writing the style straight in the html page instead of linking it from a stylesheet but it makes no difference. When the report is run, looking at the source, it seems to automatically create it's own styles, I can only assume these are based on the setting for each object in the report (which you can't set to nothing, all font properties have to have a value). Here is a cut d ...Show All
.NET Development Socket, detect message boundaries for objects - working code?
Hi, I'm stuck with a problem that is bugging me for days. I'm custom serializing objects and sending them across async TCP sockets. However, I have a problem deserializing messages when the receive is split up in different packet sizes and I just can't figure out how to get it right. The problem is, that all works fine for a couple messages but then the header size is read incorrectly (I'm sending a header for each messages that tells the length of the incoming message so I can detect the message boundary): 2005-11-21 16:13:12.0468|INFO|Test.Server.ClientCommunicator.Server|Received connection from: 127.0.0.1:1990 2005-11-21 16:13:12.109 ...Show All
SQL Server Last() Function?
Greetings, I'm having some trouble to create a report. In this report I'm supposed to get the last row for each group of customers, ordered by date. Let me explain you a bit further using an example: The table contains these fields, amongst others: CustomerID, Car, LastVisit. So, for each customer there are many rows, each one with a different value in LastVisit. What I need to get, and before I started it looked quite easy, is a recordset with the last visit of each customer, given a specific car. For example, the last visit of each customer that has a Ford. Now, I think there's a function LAST() in Access that act ...Show All
Visual C++ Rather simple Question (how to make people use my exe)
Hello everyone ;) i must admit that i'm an Newb i just learned to use C++ and VS 2005 and like messing around on my own. i Just created a little project in Win32 Console C++ form. Some cpps and headers are included. Everything works perfectly fine except i'm the only one able to run it from my machine Everyone else i send the EXE to tells me that they cant open the file because 'configuration is incorrect' and that they must re-install the app At first i sent them the debug version and then the released version. Still no success :( Someone could give me a hand on this very simple newbie problem :P If you are not b ...Show All
Visual Basic Decent Source Code Site - Visual Basic 2005
Hi, Want to know if there are any decent Visual Basic 2005 source code sites available yet. Have lookt all over and can only find vb.net (which the conversion does not always do correctly) and allot of vb6 code. I have found that no matter how may tutorials you read and how many books you get none of them cover what you want to to cover. What exactly is it you want to cover Almost all .NET 2003 books are valid for 2005. The only real differences are in the .NET framework objects - there's a few new really useful ones (in .net 2.0), but all the techniques are the same. a couple of books I like are Visual Basic .NET pro ...Show All
Visual FoxPro Design menu and manager users from DBF table.
Hi all; I want create table DBF to design menu and manager users: EX: menu.dbf (items C(150), command C(100), skip L, picture C(100),...) How when run app will active menu Thank! DEFINE POPUP popGrid RELATIVE FROM MROW (), MCOL () SHORTCUT FONT "Arial",9 i = 0 cPrompt = "" SELECT menudata SCAN i = i +1 DEFINE BAR i OF popGrid PROMPT menudata.items SKIP FOR menudata.skipit ; PICTURE menudata.pic ENDSCAN ON SELECTION POPUP popGrid cPrompt = PROMPT () ACTIVATE POPUP popGrid IF ! EMPTY (cPrompt) ...Show All
Visual C++ Using the VS.NET debugger in C++
Hello all, When debugging my work in VS.NET and stepping through it one statement at a time (with F8), I often get taken into code that's not mine. I understand that this is the code that I invoke with methods such as new and delete and what not, but is there anyway at all I can keep the debugger tracing my code only Thanks. NF Perfect. Thank you. I was assuming "Step Over" meant to skip the code and not run it altogether. Thanks again. ...Show All
Windows Forms Can I change how Publish.html looks like?
Hay! I'm new in Click Once publish and I don't know where to find any information regarding changing how publish.html looks like. I'd like to include in it my company logo and so on. Is there any tamplate on wich is based on Where can I change background color, fonts... And I don't want to change publish.html everytime I publish my app. Is there a way to make this changes only first time Thank you for your help! Hi pinkpanter, One of the solutions is, you could manually edit the publish.html file in a web-editor (eg. VS05, Dreamweaver & etc). Is that what you are looking for ...Show All
Visual C# .NET Framework
Hi all, currently i'm developing an application with .NET framework 1.1 and i'm trying to install SQL Server 2005 and it's said that i must install .NET framework 2.0 Is it okay to me to have two version of .NET framework on my computer Can i use both of them i mean, in a project i decide to use .NET framework 1.1 and with another project i want to use .NET framework 2.0 Can i do that If yes, how It is no problem, the .NET Framework support Side-By-Side execution. In the config file you can specify the supported runtimes: <startup> <supportedRuntime version="v1.1.4322" /> < ...Show All
Visual Studio 2008 (Pre-release) OpacityMask and PerPixelAlpha
Hello people !! I'm trying fx3.0 and I want to made the principal window with a mask of opacity like I do with a rectangle (example I have an image like mask.png with alpha transparency). Can any give an idea of how to do that Thanks a lot !!!! In future releases , you should be able to use something like this: <Window xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " AllowsTransparency="True" > </Window> The AllowsTransparency flag ...Show All
Visual Studio 2008 (Pre-release) LinQ with compact framework 2.0
Hi Is there a way to use LinQ with compact framework Not at this moment, no. We’re considering Linq support for NETCF in future. ...Show All
Windows Forms CODE FOR PRINTING
Please HELP!!! I am a college student in an online only environment. I need to create a windows application that displays "Hello" and prints the numbers 1-10. I have completed everything else, but every time I try to program the print button I either get an expression expected notification during the build, or if I have a successful build, I get an IOException error. How do you make the button output the numbers to a printer I am lost on this task from ground zero. John Hi John, Check out the sample on http://msdn2.microsoft.com/en-us/library/system.drawing.printing.printdocument(VS.8 ...Show All
SQL Server Logging MDX queries in AS 2005.
Hi, I was using the connection string property DBPROP_MSMD_LOG_FILE for getting MDX queries in a log file in AS 2000. But, it looks like this property has been dropped in AS 2005. Is there any alternate approach for achieving the same functionality in AS 2005 programatically Thanks in advance, Santosh. In AS2005 you have way more poweful and robust way to look at any activity happening in your server. Now you can use SQL Server profiler to connect to Analysis Server and see any MDX, or XMLA command executed against your server. Programmatically you can use AMO to subscribe to the trace events. Take a look at the AM ...Show All
Visual C# Read XMP Metadata information Using C#
Hi How can I read (XMP) Metadata information using C# Adobe photoshop Save and retrieve (XMP) Metadata information from the files .. In Adobe photoshop if you will go to File>>FileInfo you will see the (XMP) Information. I have try it to (JPG,JPEG) files How can I write Application in .NET to read and write (XMP) metadata information to files And thanks with my best regarding Fraas Or, You can try the Windows Imaging Component , BitmapMetaData Class , but it is limited to Framework 3.0. ...Show All
