.net sukbir's Q&A profile
Visual C++ Owner drawn CListCtrl items too spaced out on Win2K (picture).
Hello all, my owner-drawn CListCtrl is having problem on Win2K system, its items are too spaced out only on Windows 2000. This is not happening on Windows XP systems. Please take a look at the following image: http://psychopotato.com/temporary/clistctrl.png It might be due to the different behaviors of MFC controls on these different operating systems. Will I be able to override this behavior and make them look the same I have tried to intercept and process LVM_GETITEMRECT and LVM_GETITEMSPACING (I'm deriving a class from CListCtrl ) but they did not help. Is there anything else I'm lacking Thanks in advance for any help! Regards, Ben. ...Show All
Visual Studio Team System Team System Builds and dropping an MSI
Hi, I just started using Team System this week, and I've been able to muddle along fairly well, but I've just discovered something that to me is a real show stopper. And based on the searches that I have done in Google and in these forums, I'm beginning to think there is something fundamental I missing based on the small number of responses to this problem. My problem is that the team system build does not build the Setup projects. I understand that this is because MSBuild does not support them, but I am flabbergasted by this fact. What use is a build system that does not create the fundamental deployment deliverable Obv ...Show All
Visual C# Allowing a particular class in other namespace to access a method non public method of a class in other namespace
Could in any way I can enable a particular class in other namespace to access a method(non public) of another class in other namspace That is suppose I have a namespace1 with class1 and a namespace2 with class2 class1 contain a method named OnlyAccessibleByClass2 Could I do it You cannot directly access it, bcoz it is not a static class nor a static function So, in namespace1.class1 , you have to create a object of namespace2.class2 then you can access the OnlyAccessibleByClass2 Function. ...Show All
.NET Development Error with serialPort class
I'm having problems with configuring my serial port object. I'm trying to communicate with a PIC18F458 and I have declared my serial port in the program as: serialPort = new System.IO.Ports.SerialPort("COM1", 19230); But when I run the code, I keep getting the error: A first chance exception of type 'System.IO.IOException' occurred in System.dll And when I display the error message, I get this: Error: The parameter is incorrect. Even if I set it to 19200 or other values, I still receive the same error. But if I print out the baud rate, it prints out what value I set. However, it's the only pi ...Show All
Visual Studio 2008 (Pre-release) Using Certificate based authentication with WCF
I'm using Jan CTP, and I created a simple Hello World Service with the config as below and hosted in IIS. ---------- Web.Config ------------ <system.serviceModel> <services> <service type="WinFXServiceLibrary1.WCFHelloService,WinFXServiceLibrary1"> <endpoint address=" https://localhost:9500/WCFHello/HelloService.svc " binding="wsHttpBinding" contract="WinFXServiceLibrary1.IHelloService,WinFXServiceLibrary1" bindingConfiguration="bind" /> ...Show All
SQL Server Can't play files: Video Series: SQL Server 2005 Express Edition for Beginners
I cannot play any of these video files in RealPlayer or in Windows Media Player. Any suggestions Anyone else having this problem Thanks, Brian Video Series: SQL Server 2005 Express Edition for Beginners C00D1199: Cannot play the file Could you give me a pointer to where you got this file Regards, Mike Wachal SQL Express team ---- Please mark your thread as Answered when you get your solution. ...Show All
Visual Studio Express Editions Passing System::Object to a function - how to
Hi, I am stuck on a problem with pasing an argument to a function. I am using Visual C++ Express Edition and I imported an Active X component. It has a function like this: Virtual Bool AxTRIOPCLib::AxTrioPC::GetTable( int Val1, int Val2 , System Object ^% Values) Can sombody tell me how I can declare and pass an object to it and then later convert returned values into Double I cannot find any examples and I am not so experienced with . NET objects. Thanks a lot, Jerry. Dustmaker wrote: Hi, I am stuck on a problem with pasing an argument to a function. I am using Visual C++ Express Edition and I impor ...Show All
Windows Forms Redrawing buttons...using inheritance
Hy, I'm interested in How can I iherit and redraw a controll > button, textbox, toolstrip menu etc. I have been searching for tutorials and documentation and I haven't found anything yet. I'm trying (for example) to make a hexagonal button.> to redraw it (not to draw one whith the gdi....i know how to do that)....I whant to inherit it from vb and redraw it... How hard is this Are there any tutorials Have you done this before Ok...i'll be more precise: I know that visual basic offers the possibility to "work" with the properties of buttons, menus, forms... What I whant to do is,<an example> shape a button how I whant.. ...Show All
SQL Server some guidance for an SSIS newbie wanted
Hi! I'm new to SSIS (and quite new to SQL Server). I have a process which I'd like to automize via SSIS - just don't know how and couldn't figure it out yet by playing around with the program. Shouldn't be too difficult though. First of all, that's the process as I do it now: 1) Load several flatfile sources (dumps of SQL tables) into an SQL database. 2) Add identifier rows (to some tables), set the primary and foreign keys so the database is "recreated" and I can work on it. 3) Do several simple transformations, aggregations and selects across tables and finally write a new table containing information for reporting stuff. I succe ...Show All
SQL Server Statements to recover database with encrypted data
Hi, To backup and restore a database with encrypted data to another system, what does one need to do in TSQL It's no problem to back up and restore it, but I need the TSQL statements to backup/restore the database keys and regenerate info so that the destination server is able to decrypt just like the main server. Thanks Please post security related questions in the "SQL Server Security" forum. Database keys are stored in the database so it will be intact upon restore. You can also take a look at the BACKUP CERTIFICATE, BACKUP MASTER KEY, BACKUP SERVICE MASTER KEY, RESTORE MASTER KEY, and RESTORE ...Show All
SQL Server SQL Server does not exist or access denied error
I apologize if this has been asked before and I realize it is a wide open question....... We use MSDE for our locally running ASP/COM app. Occasionally we will install MSDE (SP3a) and we will get this: [SQL Server][ConnectionOpen())]SQL Server does not exist or access denied. Occasionally even a reinstall will not solve it. We have actually had to reformat and reinstall OS to get MSDE to work. Any clues as to how to troubleshoot this are you saying sometimes you can and sometimes you cannot connect Do you have a firewall running Are you referencing the instance of sql server correctly ...Show All
Visual Studio Express Editions array questions for a VB Learner?
i am having problems putting text from 8 tb's on a dialog form into an array and passing the data back to a mainform as a single object, i then want to put this object into an array of like objects and be able to display each of the values/references from a selected object in the mainform array of objects. NE help would be greatly appreciated as i have read all the articles on arrays i can find and am still having trouble understanding them. eg df = dialogform on dialogform OK click dialogform.stringMsg() = an array of 8 textbox values add stringMsg to mainform.objarray mainform.list.add objarray ma ...Show All
Visual Studio Crystal reports XI R2 and Visual Studio 2005 issues
Has anyone got this error after updating (fresh install) to Crystal Reports XI R2 with reports in Visual Studio 2005 I am posting here because I am not sure if it is a Crystal reports XI R2 bug or a Visual Studios 2005 problem. I thought it might be that my programming was wrong so I tried the samples that come with R2. If anything these should work since the people who developed the software wrote the examples. Even the examples gave me these same errors. Custom Tool is CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator I have these refernces: CrystalDecisions.CrystalReports.Engine - v2.0.50526 CrystalDecisions.Enterpris ...Show All
Visual Studio 2008 (Pre-release) Charts in AVALON
Hello everybody. I’m very beginner in this avalon world. I’m trying to discover if it’s possible to build charts using xaml (pieCharts, barCharts, etc…). Do you know if this is possible . If so, could you send me any url to get some training documentation. Thanks a lot in advance. It is definitely possible. WPF (Avalon) is a great platform for doing charts. There are no existing chart controls or documentation specific to creating chart controls that I know of yet. I would recommend reading in the SDK specifically reading about how to do databinding, data conversion, element binding. Here is the databinding overview i ...Show All
Windows Forms Big Problem, I think it's bug
-VS2005 RC -Framework 2.0 release When I close a form with bindining datasource on it, I have this error. An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll Additional information: Sort string contains a property that is not in the IBindingList. Looks like a bug to me as well. This is just a simple workaround: Private Sub Trxns_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me .FormClosing Me .TRANSACTIONSBindingSource.Sort = Nothing End Sub ...Show All
