Álvaro Peñarrubia's Q&A profile
Visual C++ Floating point stack overflow
My application works fine in VS2003, but in VS2005, it is producing an overflow of the floating point stack. This seems like it must be a code generation error in the new compiler. Has anyone else experienced this problem In the particular case I am looking at, I step through the instruction FLDZ in the disassembly window. Instead of getting a zero in ST(0), I get 1#IND, and the SF and C1 bits are set in the x87 FPU Status Word. The first time through this code it works OK, but this second time through, the FPU tags register shows that the stack is full before the FLDZ instruction. That document on the floating point model is excellent. Thanks. It turns out my problem is a code generation bug ...Show All
Software Development for Windows Vista Is there any chance to write codes to set environment variables of command-line window?
The goal I want to achieve is that when I open a command-line window, I run my exe, and then it will add a new environment variable or modify an existing one of the command-line window , and the enviroment should only be local (effective only in the command-line window). Further, I don't want a batch file to do this, I know batch file can easily do this, but that's not what I want. Any ideas Thanks! Environment variables are a per-process resource. Meaning, unless you're creating a child process you can only change the environment for the entire process. Use CreateProcess to provide environment variables to a new process. ...Show All
SQL Server printing error
Hi, some of my application users doesn't have Admin Privileges to their machines. When they try to print the reports, its giving a message "Unable to load client print control". Please help me how to solve this problem Can you login as an admin and print a report I believe that the first time you try to print any report, it installs the print controls. Then you can log off and let the user back in. This way, the print controls would be installed for the user the next time they need to print. Hope this helps. Jarret ...Show All
SQL Server Incremental updates query not working for proactive chaching
Hi all, I'm trying to set up Proactive caching on a large dimension with incremental updates. I have read all the info on MSDN and followed what seems like a straight forward process but am still having difficulties. I've enabled proactive caching on the dimension with the following settings... Update the cache when data changes: Silence Interval - 10 secs Silence Override - 10 mins Scheduled Polling: Polling Interval - 10 secs Enabled Incremental Updates - TRUE Polling Query; Select Max (DocumentKey) As MaxDocumentKey From DIMENSION_Documents Processing Query; Select DocumentKey, DocumentBaseTypeName, DocumentTypeNa ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Billboard spirte with alpha
Hi, Im having some trouble with a spirt, its a dds texture with transparency and i wanted to use it as a billboard but it wont show up right, and of the examples i found use an "Or" when setting the sprite flags to use alpha blending and billboard. Anyone help me out or point me in the right direction. Thanks, -dave spriteFlags = SpriteFlags.Billboard; sprite.Transform = matrix; sprite.SetWorldViewRH(device.Transform.World, device.Transform.View); sprite.Begin(spriteFlags); sprite.Draw(corona, new Vector3(), new Vector3(0, 0, 0), Color.Red.ToArgb()); sprite.End(); ...Show All
Visual C# Object reference not set to an instance of object
Hi all, I had created an array of labels and intend to add it to a panel. But I am receiving the above error once I compile it. Can anyone please explain Thanks for ( int nodes = 0; nodes < op_node.Count; nodes++) { op_node_name[nodes] = op_node[nodes].Name; Label [] lbl_arr = new Label [op_node.Count]; lbl_arr[nodes].Text = "Sample Label" ; Panel1.Controls.Add(lbl_arr[nodes]); } What he means is your code should look like the following: for ( int nodes = 0; nodes < op_node.Count; nodes++) { op_node_name[nodes] = op_node[nodes].Name; Label [] lbl_arr = new Label [op_node.Count]; lbl_arr[nod ...Show All
SQL Server good matrix tutorial
Does anyone know of a good matrix tutorial which shows a finished report and how the choices for Page, Columns, Rows, and Details map to a finished report Having a tough time wrapping my head around the direct impact, and for whatever reason, my sample data keeps triggering an "Out of memory" during preview mode. I'm experiencing this out of memory error too: I have one database which I can connect to, which gives me around 300 rows, and that's fine. However, another database which returns around 6000 rows throws an out of memory exception when I try to run the report. I'm guessing that a matrix report has to load all the data in to an internal list, and this is causing the problem. Seems a ...Show All
Smart Device Development ppc stops on main()
i am using vc++, with a smart device, to program a ppc. My problem is the windows engine runs just fine, but it runs all the time, without timeshare to my main() vc++ program. Winmain() and Main() are my only threads, both are suppose to start running at time "0". Main () does not startup and i can not thaw it. This has been a problem for 4 months. I can not program around main(). I would appreciate any help and input. No, you Main() is not supposed to "start at time "0"". There's only one entry point which starts and only one initial thread. You have to create another thread(s) in your code as needed. ...Show All
Smart Device Development Soft Input Panel
Hi, How to make the Forms resizable and shrink when you activate the Soft Input Panel Place a Panel (or any other container control) on the form. Size it that way so it fills the entire screen (Anchoring all sides will help as well) Add an InputPanel control to the form and add a event handler for the EnabledChanged event. In the event handler change the height of the panel based on the size of the SIP. Instead of placing your control on the form directly, place em on the panel you added. Sample: public partial class Form1 : Form { public Form1 () { InitializeComponent (); } private void inputPanel1_EnabledChanged ( object sender, EventArgs e) { if ( this .inputPanel1.Ena ...Show All
Visual Studio Embedding shapes in v1
Hi, First of all congratulations on getting v1 out. It's looking pretty cool! I have been trying to migrate a DSL I developed in the June CTP version, but I have run into some errors. A couple of examples are.. Error 23 A GeometryShape may not be parented on a GeometryShape. In the ShapeMap mapping State to StateShape, the parent element path leads to StateManager, whose mapped shape is StateManagerShape. Error 26 A ImageShape may not be parented on a GeometryShape. In the ShapeMap mapping EnterCommand to EnterCommandShape, the parent element path leads to State, whose mapped shape is StateShape. Basically my DSL is similar to UML statechart notation, but I want to be able to nest states inside one another hierarchically in ...Show All
Smart Device Development Enabling Checkboxes in Treeview Child Nodes only..Not on parent node
Hi, I am using Treeview to show a list of treelike items.I dont want to show the checkboxes against the Top level tree but once user goes to level 1 of the tree, i want to show checkboxes and let the user select the nodes. Basically no checkbox selection possible on parent node but checkbox selection shud be possible on all child nodes there after. How can i acheive it Sorry, I disagree with you Alex. If you generate dynamically your treeview, you can affect to any node the following property : TreeNode node = new TreeNode(); node. ShowCheckBox = true; Regards. ...Show All
Windows Forms Install updates after the application start
Has any one attempted to detect the app updates after application start inside the program Just wondering if application has updates, how do you apply the changes Do you close the application or is there an ApplicationDeployment method that does the update for you So far all my installations are all before application start and never done after the application start. Thanks. If this is a ClickOnce app you can use the System.Deployment.Application class to check for and download updates from within your application. After downloading update use the Application.Restart method to restart the new version of the app. For more info see: http://msdn2.microsoft.com/en-us/library/ms404263.aspx http://msdn2.microsoft.com/en-us/library/s ...Show All
Smart Device Development Access to APIs in C#
Can I use the Windows Media Player 10 activex control in C# I've researched the documentation and it seems to only be available in C++. Also, does C# support DirectDraw and DirectShow I need to use the camera api functions and allow the user to take a video, replay the video, and draw on the screen using the stylus. I need the drawing to persist on top of the video while the video plays (as with overlays, but I think most handheld devices don't support overlays). Thank you for the information. I should have clarified that I am programming for a pocket pc running Win Mobile 5.0. I've had no difficulty using the WMP control on the desktop, but I can't seem to add the control to my pocket pc device for ...Show All
Visual Studio Express Editions WinAPI Module Process Reading
Hi, This may have been asked a lot before, but I am totally stuck on this problem, I'm not even sure if I'm in the right forums for this question since it doesn't deal with to much VB rather than Win API questions Anyways here is the code followed by Private Const MAX_MODULE_NAME32 = 255 Private Const MAX_PATH = 260 'Module32Structure Private Const TH32CS_SNAPMODULE = &H8 Private Structure MODULEENTRY32 Dim dwSize As Integer Dim th32ModuleID As Integer Dim th32ProcessID As Integer Dim GlblcntUsage As Integer Dim ProccntUsage As Integer Dim modBaseAddr As Byte Dim modBaseSize As Integer Dim hModule As Integer <VBFixedString(MAX_MODULE_NAME32 + 1)> Dim szModule As String &l ...Show All
Visual Studio VS 2003 SP1 install error
Hi, My repeated tries of installing the VS 2003 SP1 fail because the installer can't find the "vs_setup.msi" file. This file is not on any of my Microsoft Visual Studio .NET 2003 Enterprise Architect " CDs. (3 CDs total). I've tried looking on my computer's hard disk also and "vs_setup.msi" is not there either. Does anyone have any idea where I can get to this file "vs_setup.msi" in order to install the Service Pack 1 for VS 2003 This is pretty frustrating. Thanks for any ideas! Mark AuBuchon I'm having the same problem - though it may be because I.T. won't allow me to access the VS 2003 installation CD. Are you saying that you're getting this message even a ...Show All
