RyanB88's Q&A profile
.NET Development Fastest way to call C++ code from C#?
I would like to write plug-ins for my application using C#. My plan was to make the C# objects COM visible and derive from my plug-in interface. I’ve been told that the transition to and from managed code is a very expensive operation and I should limit the transitions as much as possible. This makes sense but I would still like to do things in the most optimal way since there will be no way from the transitions to be eliminated. That said, what would be the optimal way to call C# code from C++ (COM) and C++ code from C# My current plan is to use COM visible interfaces to call C# code C++ and COM connection points to call C++ code from C#. Hi, When you compile with the CLR ...Show All
Visual Studio Setup templates
We currently have a guidance package which we are building, it is almost complete. However, we still need to add a setup project to be generated by the guidance package. I'm at a complete loss on how to do this. Anyone have an example Thanks Wayne where would I find this manifest file I've been looking through the GAT install dirs, but really haven't seen anything that jumps out at me as this is what I need. Thanks Wayne ...Show All
SQL Server attribute key was not found error
everytime i try to process my cube i get this error: Errors in the OLAP storage engine : The attribute key cannot be found : Table : dbo_MCSFinFactData , Column : InvoiceDateDimensionID , Value : 15. Errors in the OLAP storage engine : The record was skipped because the attribute key was not found . Attribute : InvoiceDateDimensionID 8 of Dimension : InvoiceDate Fiscal Year 2 from Database : SRDBAnalysis , Cube : MCSFinancial , Measure Group : MCSFinancial , Partition : MCSFinancial , Record : 10. I have checked the dimension table and the record with an invoicedatedimensionid value of 15 exists. there are also many records in the fact table that use an invoicedatedi ...Show All
Visual Studio Express Editions Need help filtering Dataset table by a value
I cant seem to filter down my dataset table by criteria in expression. Can someone tell me why I still have the same amount of rows after I use this filter select option. Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .WorkListTableAdapter.Fill( Me .SQLDataSet.WorkList) MsgBox( Me .AccuLogic_SQLDataSet.WorkList.Rows.Count) End Sub Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me .SQLDataSet.Tables( "WorkList" ).Select( "DSK = '999'" , "DSK" ) End Sub How could I keep the statement above using hte select option I ...Show All
.NET Development Viewing other workstations from asp .net
hi everyone, I was wondering how to connect programatically to another workstation of my own domain. I've got an ASP .Net page which might retrieve all the services in each workstation. Now I'm seeing those are mine. Any fast sample or link related would be very appreciated (either vb or c#) Thanks in advance for your input and comments, ...Show All
.NET Development Need help with ADO.NET issue
Hi all, I'm having a problem with ADO and I need some help. I'm trying to connect to a database on a group of machines and sometimes, that database is unavailable for whatever reason. The application bombs out when I just want it to skip that server and go on to the next. Code is below. Any help or insight is appreciated. const string usage = "Usage: check_fss_cluster.exe [bayXXX]" ; if (args.Length < 1 || args.Length == 1 && (args[0] == " " || args[0] == "/ " || args[0] == "- " || args[0].ToLower() == "help" )) { Console .WriteLine(usage); } else { try { _cluster = args[0]; SqlConnection Conn, Conn2; //Conn3; SqlDataRead ...Show All
Visual Basic running winrar in vb
how can i run a winrar from vb by giving a input to it........... Nope ... but if you seek out the sdk or head on over to some winrar forums you should find people that can help. You probably need to investigate the com interfaces it exposes (assuming it does). Good luck Richard ...Show All
Visual Studio Tools for Office New Workbook
Quite possibly a very dumb question - but I think I might not be able to do what I want with VSTO and I need someone to answer. Here's what I'm trying to do. I have one "template" excel file (still an XLS) that opens and does it's thing using VSTO. What I need from there is for that workbook to be saved as an xls with a different filename then we started with, and to start over, do the same thing and save as another xls. I would be opening the The looping and all that is fine - I just don't know if it's possible to open a new excel workbook within VSTO code. HELP! So long as the CAS "Code Access Security" is setup correctly and the document is a Save As so all binary and custo ...Show All
Visual Studio MSDN Wiki Enhancements - Translation Wiki
During TechEd 2006 we launched MSDN Wiki Beta . At this site you can add content to VS 2005 documentation topics and edit contributions from other users. Our goal is to extend the documentation with code examples, tips and tricks, and other information that you add. Other than Sandcastle my team owns the release of MSDN Wiki beta and it's feature enhancements. Today we added Firefox support to MSDN Wiki. Please see setails at Rob Caron's blog - http://blogs.msdn.com/robcaron/archive/2006/08/21/711707.aspx and at http://www.infoworld.com/article/06/08/22/HNmsdnwiki_1.html . Cheers. Anand.. Today we launched Translation Wiki. Please see Soma's blog at http://blogs.msdn.com/somasegar/archive/2006/09/05/736039.aspx ...Show All
Visual C++ Check Boxes
Hi, I know this might be in front of me ready to bite my head of but i dont seem to see it... Basically i want to initialise my checkbox to be checked when the program runs and my frame appears. I have checked the properties of the checkBox but i do not seem to find the solution to this. Any suggestions will be much appreciated! Cheers Anger. Add a class variable for the check box and use the SetCheck function as follows m_btnCheck.SetCheck(BST_CHECKED); (Here m_btnCheck is the variable name for the check box)) Thanx. ...Show All
Visual Studio Tools for Office DISP_E_TYPEMISMATCH Error when using FIND in excel
I'm trying to open an existing excel file, search for some text, write some text to the document, and save the document. Here is my code: Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application(); xlApp.Visible = false; String DocumentLink = "whatever.xls"; if (!System.IO.File.Exists(@DocumentLink)) { Console.Write("\t*DOES NOT EXIST*"); } else { Workbook wb = xlApp.Workbooks.Add(@DocumentLink); Worksheet ws = (Worksheet)wb.Worksheets[1]; RangeOfText = ws.get_Range("A1", "I30"); found = null; found = RangeOfText.Find("TextToFind", xlApp.ActiveCell, XlFindLookIn.xlValues, XlLookAt.xlPart, XlSearchOrder.xlByRows, XlSearc ...Show All
SQL Server Can't see or access tables through linked server
Apparently I am doing something wrong and I don't know what! I am needing to link a remote Oracle Server to SQL Server 2005. I have (I think) followed the steps precisely to create the linked server both by code or through the SQL Server Management Studio and I get the same results eith way. I can see the linked server and there are no apparent errors but I can't see or access the tables from Oracle. If I try a Select statement on a table from the linked server I get the error "Msg 208, Level 16, Stat 1, Server {servername}, Line 1 Invalid object name" I am assuming this is a permissions issue but I don't see it. I am an admin on both the SQL Server DB and the Oracle DB with full access and I am using w ...Show All
.NET Development .Net 2005 app fails if built on XP Home machine
I have been developing an application that utilizes .Net remoting as well as some unmanaged code. It is written in C# and uses Windows Forms (no ASP, SQL, etc). I have been building it on an XP Home machine and testing it on multiple XP Pro machines. After a recent enhancement, if the app is built on XP Home and run on XP Home, it locks up the OS requiring a reboot. If that same build is run on an XP Pro system, it silently fails (hangs) but doesn't crash the system. If I build the app on an XP Pro system, I don't have this problem. In attempting to debug this I tracked the code into a thread Start method. Executing the Thread Start crashes the Home system. I admit I am making an assumption about Home vs. Pro but, other than one bein ...Show All
Visual Studio How to set the language filter in Microsoft Document Explorer?
I cannot make the language filter in VS 2005 Document Explorer persist. I see other threads complaining about this same problem but no solution. Is this now an acknowledged bug or limitation If so will it be fixed in this release or do we have to wait for .Net 3.0 Well, its now late October 2007 and this is still broken. How long should we be expected to wait for a solution The language filter appears to me to be an important feature of the online documentation. A broken language filter feature should merit more immediate attention. The bugcheck shows this problem has been reported many, many times in many different products that use MSDN to serve up their documentation. Here is but one bug report for thi ...Show All
Visual FoxPro Choppiness of Graphic animations (progressbars, etc.)?
Its *good for users* to have a ProgressBar Indicator during backups of tables (while they wait for "who-knows-how-long", etc.). 'Twould be so nice for our users to be able to have: 1) the *Windows Flying Paper Progressbar* (during Window's copy/paste of files) ...or... 2) a 'Themed-progressbar' step-timed to the number of BYTES transferring during backup. (not just a wait window/Marquee (like Windows startup-progressbar), which leaves the user *hanging* about when its going to finish) Please try to help me (I'll continue researching this and let you-all know if I've found a ProgressBar routine that step-times according to actual bytes being copied) Do you really want to slow VFP down, just so you can sho ...Show All
