M. Abraham's Q&A profile
.NET Development How to intentionally do interop like this: Managed->CCW->RCW->Managed
VS2005 prevents me from adding a reference to a type library that was exported from a .NET assembly. A message pops up that says "The ActiveX type library was exported from a .NET assembly and cannot be added as a reference, add a reference to the .NET assembly instead." The message makes perfect sense, because it would be foolish to take the performance hit of going through a COM interface when you could have just stuck with managed code. But my situation is different. It's my job to TEST the COM interface in a product that is written with managed code, and I need to use managed code to drive the testing. If I don't use the COM interface, then I'm not really testing it. So, after extensive effort, I still don't have a g ...Show All
Visual Basic Firing new event in existing control?
Hi, I'm new to Visual Basic 2005 (Express Edition) and I' decided to build my own PrintPreviewDialog using the PrintPreviewControl. One of the properties of the PrintPreviewControl is the Zoom Propertie. Unfortunately, the control doesn't provide a ZoomChanged event and I need to know when this propertie is modified (by the user, by the program or by resizing the control). Is there a way to trigger a ZoomChanged event everytime the value of the Zoom propertie change I created a new UserControl that inherit from the PrintPreviewControl but I'm not sure where to go from there. Hmm, that would change the Zoom property value without raising an event. Using Overloads instead of Shadows ensures tha ...Show All
SQL Server Views and Indexes in SQL2005
I'm trying to clarify a situation I have dealing with indexes and views. Let's say I have Table_A and Table_B, both contain a column [name] which is indexed in both tables. I also have a view vw_Table_AB that unions Table_A and Table_B. If I write a query like: select * from vw_Table_AB where name = "Dobbs" are the indexes of the base tables used for this query ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creators Club
Quick question about membership in the Creators Club. I have 3 profiles registered on my Xbox 360. If I enroll my profile (GamerTag) in the Creators Club and upload a game will all rest of the local profiles be able to play the game as well All three profiles are Gold level profiles. Thanks, Mike Hi Mike, The solution is to have the other profiles sign in after you have run the XNA Game Launcher. That way you can play multiplayer games on the same machines. But the subscription holder must always be the one to log in first. Thanks! ...Show All
Visual Studio Team System TFS Fills up disk?
Not sure if anyone else has seen this issue. Didn't have a chance to reproduct, but I think TFS source control will dump at certain intervals if you have a deleted SID in one of your security groups that could be used. Our disk/temp directory kept getting filled, the event log mentioned something about an invalid id, I had to search through all the groups to find it and remove it. Anyone else seen this Seems like this is something where it should not dump just because of an old deleted SID. I looked I didn't see any reports unfortunately Any other place info would be kept Not able to repro there ...Show All
Connected Services Framework Where has the Message Body Gone?
Hi, all. According to my last thread Message Routing doesn't work , I have corrected some problems and the message could be routed to my destination service. But now comes another problem that the message body seemed lost. First let me give a short introduction about the projects. There are totally 5 projects: Client: The console UI. ClientService: Contains ClientServiceHandler class that inherites from CsfService. http://localhost/ClientServiceSite/ : Hosting the ClientService. http://localhost/ServerService : The destination web service. CsfHelper: A helper project to simplifiy CSF work. The destination web service is a simple asmx, which code is as follows: using System; using System.IO; using System.Web; usin ...Show All
Visual Studio what does solution platforms means
Hello. What does the Solution Platforms .NET and Mixed Platform means ...Show All
Microsoft ISV Community Center Forums OUTLOOK When trying to open Outlook, I get the following:
Microsoft Visual C++ Runtime Library Runtime Error! Program:C:\Progra~1\Micros~3\Office10\OUTLOOK.EXE Any ideas Thanks I'm having the same problem - it started when I installed Office XP Professional on my new computer that already had a trial version of Office 2003 on it. After that, Outlook crashed before opening completely. The Microsoft Knowledge base directed me to uninstall Office 2003, which I did. Now I am running only Office XP Professional, and Outlook won't open but gives me this error message: Microsoft Outlook Unable to open default e-mail folders. Could not open the item. Try again. I click on OK and it asks if I want to open my default file system fol ...Show All
Visual Studio 2008 (Pre-release) To draw a stroke in inkcanvas using drawingcontext
hi friends, I want to draw an Image using DrawingContext object and then add that DrawingContext in System.Windows.Ink.Stroke. I have perform these steps successfully but after adding the stroke in children stroke of InkCanvas, I observe that the image is not displayed but a black rectangle is displayed. When I create a stroke, I have given the stylus points as follows: StylusPointCollection pointcol = new StylusPointCollection(); for (double i = 0.0; i < img.Width; i++) &nbs ...Show All
Visual Studio Express Editions OpenFileDialog and SaveFileDialog Questions
Back again.....with a new question. Right now I am dealing with learning to open and save a .txt file. I understand the concept but when i debug the code and....lets say save a file, I cannot find the file on my desktop as a .txt file. Here is the code that I have implemented. Where did I go wrong 'Open Option Private Sub OpenToolStripButton_Click( ByVal sender As Object , _ ByVal e As System.EventArgs) Handles OpenToolStripButton.Click Dim open As New OpenFileDialog() open.Filter = "All Files (*.*)| (*.*)| Text Files (*.txt) | (*.txt)" open.Title = "Open Text File)" open.ShowDialog() End Sub 'Save Option Private Sub SaveToolStripButton_Click( B ...Show All
Smart Device Development Oracle connection issue
hi I'm not gettin any driver like ODBC,OLDB for SmartDevice application developement in vb.NET cud any people help me to connect SamrtDevice application with oracle in wireless LAN bbyeeee Sorry, I can not give you “codes to use web services as proxy”, you'd need to write your own. This approach was discussed many times, please search if you need details. As to 3rd party provider, go ahead and search the web for "Compact Framework Oracle", you'll find it in no time. ...Show All
Windows Forms changing property after displaing dialog
i have this code MyDialog ^ d = gcnew MyDialog (); d ->ShowDialog(); ..... ..... d->Text = "hello" ; I want to display the dialog and to change the text (or some other) property after displaing. I tried but does not change. Thank you I tried in non-modal and it worked : f->Show(this); ... ... f->Refresh(); f->Text::set("hello"); I need to display first the dialog because the properties dont exists yet (i get them reading a serial port 0.5-1 sec later). I see that it's not possible with modal dialog. ...Show All
.NET Development .Net framework version installations / penetration
Hi, We are planning to develop a windows application targetted at the non technical users. What is the most the prevalent version of .net framework installed on non business desktops What version of the .net framework should we target We would like to make the install of application quick and simple. thanks in advance NV Windows XP-TabletPC and XP-MediaCenter both shipped Version 1.1 of the .NET Framework Vista and all related SKUs shipped Version 2.0 of the .NET Framework Hope that helps, Stephen ...Show All
Visual Basic Set Database Location in Crystal Report
How can I set database location to a report made by Crystal Reports I create a report with crystal that use a access database and when I go to install in the users I have to set the location of this database to a location that user choices. How can I do this Thanks. ' load the data from the database into dataset called ds as this is what is getting passed to the report Try rpt.Load(Reportpath ) Catch excep As CrystalDecisions.CrystalReports.Engine.LoadSaveReportException MessageBox.Show( "The report cannot be loaded from the saved report." , "LoadSavedReport Failed" , MessageBoxButtons.OK, MessageBoxIcon.Error) Exit Sub Catch ex As Excepti ...Show All
.NET Development using xslt to create excel file - having problem conditional bolding text in cell
With the following xslt, I need to bold the first two lines of text in a cell, with the third line not bolded. I have not been able to find the right combination of code to make it work. Any suggestions <xsl:for-each select="Event"> <Row ss:AutoFitHeight="1"> <Cell ss:StyleID="s29"> <xsl:choose> <xsl:when test="@EventID=9997"> <Data ss:Type="String"> <xsl:value-of select="@EventValue"/> </Data> </xsl:when> <xsl:when test="@EventID=35"> <Data ss:Type="String"> <xsl:attribute name="font-weight">bold</xsl:attribute> ...Show All
