amolchopra's Q&A profile
Visual C++ Creating views for static splitter
I have a working shell namespace extension with a listview in the shellview window in the windows explorer. Now, I want to make a static 2 row,1 col splitter in the shellview with the previous list in a top row and another CWnd derived class in the lower. The problem occurs later, read on. Here's what I have in the CreateViewWindow: STDMETHODIMP CIsdShellView::CreateViewWindow(LPSHELLVIEW pPrevView, LP ...Show All
Visual C++ Visual Studio 2005 MFC Applications on Windows 98
Hi, I am tring to build a unicode app to work on win 98/nt/xp. Built a sample MFC application in Visual Studio 2005 Team suite Beta 2. A unicode dialog app with a button. When run on windows 98 it shows this message. Installed VCredist_x86 and .NET framework 2.0 latest versions downloaded from web. Also coped mfc80u.dll to the exe folder. Microsoft Visual C++ RuntimeLibrary Runtime Error! This application has requested the runtime to terminate it in an unusual way. Please contact the application's support team for more information. I tried with Express Edition and Windows Forms it works in windows 98. Thanks, ...Show All
SQL Server Variables - Changing Scope Once created
If I have created variable and have written expression etc and then I have realised that I have created it in the wrong place. For example I have created the variable inside Package scope instead of Foreach Loop scope. Yes I know it is my mistake. Do you think it would be nice to have a feature to change the scope from Package to Foreach Loop Maybe a drop down list I am sure there is a reason behind why it was done like this. I would appreciate if anyone can shed some light Or maybe there is a way it could be changed Thanks Sutha Thanks for logging the bug Sutha. I've placed it in the v.next bucket for consideration in the next r ...Show All
.NET Development I can't send mail
I write this code but it doesn't work. It just show "Email didn't send succesfully". I didn't know how to add UserName, Password and Port. Please help me. private void Button1_Click( object sender, System.EventArgs e) { Button1.Enabled = false ; try { System.Web.Mail.MailMessage myMessage = new System.Web.Mail.MailMessage(); myMesage.To = txtDen.Text; myMesage.From = txtTu.Text; myMesage.Subject = txtCD.Text; myMesage.Body = txtCT.Text; myMesage.Priority = MailPriority.High; myMesage.BodyFormat = System.Web.Mail.MailFormat.Html; System.Web.Mail.SmtpMail SmtpMail; SmtpMail.SmtpServe ...Show All
SQL Server Transformation component data store
i am developing one custom transfer component, where i am building one custom object and want the same to be transfered from ComponentUI to component.I explored in this issue and came to know that we can make use of SaveToXML and LoadXML methods of IDTSPersist90 interface. The problem is i could not able to make use of this interface.If any body faced same issue and got the solution, let me know the same. Thanks in advance Karun Hi Karun, I'm not sure I fully understand your scenario, but it sounds like you might want to look at Custom Properties. You can create a custom property on your component, ...Show All
SQL Server What does "Lock Denials" mean in Analysis Services
Dear Anyone, Theres a counter in perfmon called "Lock Denials" under the Analysis Services counters. What does it mean if you get counts under this. Our server seem to be getting about 4 or 6 during heavy processing time of cube partitions and dimensions. Thanks, Joseph Internal processing operation is trying to acquire a lock. If it is denied of so it will probably wait and will try to acquire it again. You can try and reduce number of processing operations. Or try and lower the CoordinatorExecutionMode Analysis Server property for it to execute less jobs in parallel Edward. -- This posting is provided &qu ...Show All
.NET Development Protecting Assemblies
I'm building an n-tier application with data access, application and UI layers in separate projects and hence separate assemblies. MyProjectUI.dll MyProjectApp.dll MyProjectDataAccess.dll etc... The application will eventually be publicly available for download and installed on end-users machines. How can I protect my middle tier and DAL assemblies from unauthorised access so that a 'clever' user cannot add a reference to one of my separate assemblies and start calling it's public members. Marking members as Internal only works for classes that are 'inside' the same assembly. Any tips or suggestions would be greatly ...Show All
Windows Forms Is this legal for me to do this?
If not, i will happily stop, but right now, i am having a blast with Terrarium in .Net 2.0. http://tanderson.cbs-posi.com/MyTerrarium/checkmeout.jpg Just don't tell the C# coders They will probably scream blasphemy and other curses. ...Show All
Software Development for Windows Vista InkCanvas - CPU Hungry
I have a UI with an InkCanvas viewed through a VisualBrush. With only a few strokes on the canvas, CPU utilization approaches 60%. When I set myInkCanvas.Visibility = Visibility.Hidden then CPU utilization drops. I may be able to make a small mockup that will demonstrate the behavior, but I would hope it could be solved without that. This is a snapshot of the stack from the offending thread (which I can't make heads or tails out of): ntoskrnl.exe!KiDispatchInterrupt+0x7f MilCore.dll!MilChannel_CommitChannel+0x12b ntoskrnl.exe!KeInitializeTimer+0x107 ntoskrnl.exe!KeUserModeCallback+0x87 ntoskrnl.exe!KeUserModeCallback+0xbd MilCor ...Show All
Visual Basic recording mp3 or Wave from the mixer ?
can you guys give me some samples how this works, i been trying to find a sample all over the internet, mostly i keep finding vb 6 code and c but i cant find the visual basic express sample, so am here asking you super coding people to give me some working samples on how to record Wave from the mixer device, thanks ...Show All
Visual Basic Now.Date (DB 2005 Beta 2)
I was going through Duncan's "How Long Now" Coding for Fun article and when I tried using Now.Date it gave me today's date (6-13-2005), but the time was 12:00 AM. Is this a bug or something that I'm doing wrong Should it read the system time Which is set correctly Thanks, Chris D. ...Show All
Visual Studio Tools for Office Events when databinding is complete
I have an Excel workbook that binds data to a ListObject. When the binding is complete I wish to refresh a pivottable and run some code. What event is best to use for this The pivottable is set to refresh on open, but the open event occurs before the databinding is complete so it doesn't work the way I want. When the pivottable is refresh I have to run some code to initialize some controls in an actions pane. The strange thing is that if refresh the pivotcache to early, my grouped field in the pivottables is removed and if I don't refresh the pivotcache my listbox in the actions pane don't get updated with the data from the datasource. Plea ...Show All
Windows Forms public Control Designers
Hi! I would like to see the all of the control designers located in the System.Design.dll and in the namespace System.Windows.Forms.Design made public, so that I can easily override behavior for my own inherited controls (for example: if I override a TabControl, I would like to override also the TabControlDesigner). TIA Uriel What functionality of our TabCont ...Show All
Visual Studio 2008 (Pre-release) Could not find schema information for the element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:system.serviceM
using CTP bits i can rebuild the samples and all ok - building my own project i get the following error: "Could not find schema information for the element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:system.serviceModel'. C:\Documents and Settings\jim\My Documents\Visual Studio 2005\Projects\msnsearchclient\MSNsearchIndigo\app.config 3 6 MSNsearchIndigo" all of this is using VS 2005 beta2. jim I've been banging my head against this Atlas *** since the Orlando VSLive conference and I just can't get it to work. Until it's a helluva lot easier than all this to code Atlas, then AJAX will continue to own Web 2 ...Show All
.NET Development Cannot register OCX in VS.Net 2005
Hello, I have an OCX that was originally written in Visual C++ 6. After upgrading to VS.Net 2003 everything worked fine and I was able to register my OCX. Recently, I tried to upgrade to VS.Net 2005 but had a lot of trouble registering my OCX. I managed to fix many problems related to the OCX registration but I ended up with the following situation: If I compile in "Debug" mode, the compile succeeds and the OCX gets registered (I can see this in the registry). However, when I try to test the OCX using ActiveX Control Test Container I get a debug assertion in File: f:\rtm\vctools\vc7libs\ship\atlmfc\include\afxwin1.inl Line: 2 ...Show All
