Edgar Piraneque's Q&A profile
Visual C++ Exceptions not caught
Using Visual Studio 2005 C++ using MFC. I've isolated my problem to this: BOOL CMyApp::InitInstance() { int z=0; int y,x=8; try { //y=x/z; // divide by 0 char *p=NULL; *p='l'; // access violation } catch(CException *e) { AfxMessageBox("Exception!"); } ... When I run this under the VS 2005 debugger I get and unhandled exception.alert Am I missing some feature I need to turn on Exceptions like "access violation" are not standard C++ exceptions, they don't have a type and so the only way to catch them is to use catch (...). In addition to enable catching of such exceptions (asynchronous exceptions) in C++ you need to change the Enable C++ Exceptions compile ...Show All
SQL Server Backup Slow Throughput
Hi Team, I have a SQL 2000 instance with 46 Databases (all databases put together will be 15 GB in size). I am running a SQL Backup using a third party software. My full backup of the SQL instance which backs up 15 GB of data finishes within 30-45 minutes. But, my differential backup of the same instance which backs up only 150 -250 MB of data takes 12 hours to backup. I found a knowledge article from MS Support site which says, differntial backup would take more time than full in few scenarios. http://support.microsoft.com/default.aspx scid=kb;en-us;196658 But the above document is for SQL 7.0. Will it be the same for SQL 2000 and 2005 too If yes, can you please tell if I can increase the speed of differential backup in my ...Show All
SharePoint Products and Technologies Analysis Services filter width
I have built a dashboard page with Analysis Services filters on top of it. The filters all have a default value (mdx entered). But I have problems with the width of the entry field of the filters. It is possible to control this width by entering a value in the advanced filter options. However, this value is not being used when first opening the dashboard! It seems as if the length of the mdx specifying the default value controls the width! After pressing the "Apply Filters button, the width is set correctly. This looks like a bug to me...Is there any workaround Setting the webpart width to a fixed value does not seem to be an option since scroll bars are added then. Regards Joos Did you hear an ...Show All
Software Development for Windows Vista [BUG] Vista doesn't start application called "install" w/o being elevated.
Hi, I just encountered this really strange behaviour, which is definitely a bug in Vista. Consider the following situation. You're logged in as an administrator account. Start a CLI shell of your choice, start it normally, so that it's running non-elevated. Now consider a console application called install.exe. It's neither a GUI application, nor is it an installer application in the Windows sense. It's just called install.exe. In my case it's part of GNU coreutils and it's called install because it's usual task is to install software on the system. However, it's perfectly valid to call install as normal user and use it to install stuff into a subdirectory on which you have permissions. This is what happens when running under Cygwin (proce ...Show All
SQL Server export to PDF (reporting services)
Greetings!, Does anyone here know where to configure the document properties/security settings of PDF files generated by reporting services thanks! Hi Sanjay, Thanks. What dou you mean about the 64 bit version What would be the probable repercussions regards ...Show All
SQL Server Analysis Services not Started!
Good Day! I have installed SQL Server 2005 In services.msc SQL Server Analysis Services (MSSQLSERVER) can't be started. Message: Service Started and then Stopped and The service cannot be started: The following system error occurred: Only one usage of each socket address (protocol/network address/port) is normally permitted. What is this Thanks... Mosha Pasumansky wrote: Server -> Properties -> Show All (advanced) properties -> Port Sorry for borring, I'm a novice. Where is it I'm going in Computer Managment -> SQL Server Configuration Manager -> SQL Server 2005 Services -> SQL Server Analysis Services ->Properties But there nothing... ...Show All
Windows Forms Changing the databasource of a DataGridViewComboBoxCell at runtime
Hi, I have a DGV where one of the columns is a combo box style. I bind this combo box to some datasource. What I would ideally like to do it to limit the combo selection to make the items available mutually exclusive to what is in other rows. The net result I guess is I get uniqeness in this column over all rows. Is this possible If so, which event should I use to re-assign the datasource property for the combo Thanks for your help Graham Oh dear. I left this bit of code for a week or so because I had to attend to something else. There is still a problem, but this time I think it is to do the DataGridViewCell / Column rather than the binding list or data table I'm using. The filtering ...Show All
Visual Studio HELP - Mapping Form Data to Crystal Report
C# - Windows Applications (VS 2005) - OLEDB ---------------- Hi, I have a form details from a database. After I key in the fields and update the database, I want to print the same details using crystal report. Is there a way I can mapped the fields into crystal report without creating a new crystal report and do the printing Anyone can advise I don't understand your problem completely. 1. Are you have already open report for current data, and after you change the data you want just to refresh data in CR. This is possible. Just execute the loading method for CR in CR viewer and will load new data. 2. You don't have a CR but you don't want to create a report at all and you want to cre ...Show All
Visual Studio Express Editions how do i stop/exit a sub by using another sub i.e a button click?
how do i stop/exit a sub by using another sub i.e a button click Have you looked at user timers for you solution. Sleep, is often used for waits as its very simple one command action but it really is not good for most of them. Using timers is relatively easy and allows you to keep the UI active. so that other buttons can be click such as cancel in between. Here's a very simple example - you can start the timer, cancel it, see if it is still running Public Class Form1 Private blnIsRunning = False Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Timer1.Interval = 10000 Timer1.Start() blnIsRunning = True End Sub Private Sub Timer1_Tick(By ...Show All
SQL Server Can't Drop table in Replication
Dear friends I restore one database in two database servers which is running on SQL server 2000.I replicated these two through snapshot relication.Snapshot agent is creating snapshot.But when I am starting to synchronize it's telling can't drop table because that table is in replication. Backup I taken from a replicated database.so it's having rowguid both the servers.Another thing the table which it is telling not able to drop it's having primary key.please tell me what may be the problem.In replication why it is going to drop table it's only what to transport data na Filson Sorry, it's not clear to me what the problem is. Are you trying to d ...Show All
Windows Forms Need global reference to main form
(I originally posted this in the Visual C++ Express forums but I realise that I would probably get a better response here) Ok, so I've got a form with a bunch of ComboBoxes that are created at runtime instead of at design time. I want to give each of those ComboBoxes the same ContextMenu, which is a member of my MainForm: public ref class MainForm : public System::Windows::Forms::Form { // ... private: ContextMenuStrip^ myComboBoxContextMenu; // ... } I figured I should create a sub-class of ComboBox which automatically assigns the context menu in the constructor: ref class MyComboBox : public ComboBox { public: MyComboBox() { this->ContextMenu = /* reference to context menu in M ...Show All
Windows Search Technologies Folder selection bug
Hi, I have my second hard drive mounted to "c:\documents and settings\myusername". It does not have a drive letter. It appears in explorer, and in every other folder selection dialogue box I've ever seen. However for some reason it does not appear in the "folders to index" selection box. A fix/workaround would be much appreciated. Thanks, Tom We currently do not support NTFS Reparse Points in WDS. The technical reason behind this, is that we use the USN change journal to track file system changes, and in this case the file system changes are actually on another volume then the root of the drive "C:" drive. We have talked about this support internally and maybe something we add ...Show All
Visual Studio Express Editions Windows layout bug when running the application
I have a problem that's driving me nuts! When i run my application in debug, all my windows ( properties,Solution explorer,locals,call stack,output, database explorer...) are going all over the place (in floating mode) on my main window. Even if i reset the window layout using the reset function, it still don't work. I try to fix it using the guide diamond to dock the layout window..same thing, the settings are not saved and the windows are going all over the place in floating mode. I also imported *.vssettings from another computer where the application and layout is running good and it still don't work. I reinstalled VB express, same result. Somebody help me!! do you experienced bug like this Thanks a lot! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Could this be used to make a Morrowind scale RPG?
Hello, I was just wondering if XNA could be used to make an Morrowind scale RPG Mousegp wrote: so even if you use the vast amount of materials already available from the PC version Would be really all that hard honestly... cause i was planning on doing a mod with it... Judging from the scope of the game you want to do, I'm guessing you're not just going to do it for your personal education purposes. Stealing assets from a published game is not only illegal, if you violate Fair Use laws, the publisher is likely to sue you into oblivion (no pun intended). You'd better talk to a lawyer before you do something like that, before lawyers come talk to you. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Starting work on my GUI system
Well, I've hit a wall with my game's development, and since there was no GUI with XNA 1.0, I've decided to go ahead and make my own GUI system. I implemented a lot of mechanics for my game, but I need greater interaction to proceed development in a sane manner. So far I've just implemented the text drawing stuff from scratch. It uses only monospace fonts generated with BMFontGenerator without using the generated .xml file. It's decidedly minimal to use only monospace fonts, but keep in mind two things - 1) my particular game doesn't require anything more robust than monospace fonts and 2) a game's engine should be designed around the game's specifc requirements. Otherwise you're scope creepin. I remind myself constantly not to let cool ...Show All
