Neil Janabi's Q&A profile
Visual C++ Visual Studio features - gone in later versions
I'm trying to figure how to do certain things in a later version of Studio that I could do in VS6 but don't work anymore. Such as (a) dismiss the compilation output window just by hitting ESC, and (b) identifying the exact path to a given source file. I switched from 6 to .NET a couple of years ago, and have regretted not knowing how to make .NET behave like 6 in these particular areas. The Properties window - that's what I was missing. Thanks a million - that really helps! But sadly enough, the ESC key doesn't do for me what it does for you. Before I hit F7 to build, I have Solution Explorer (and now Properties) on the left and my code on the right. I hit F7, and the top half is taken o ...Show All
.NET Development Reflection - Load the dll in its domain instead of caller's domain
Hi, I've been using reflection for quite a while but this time I need to load the dll in its own domain instead of the caller domain. So far I have not been successful. I was wondering if there's a workaround to make this happen or perhaps I should use some other techniques! Any ideas Thanks For remoting across app domains to work the object you are calling must inherit from MarshalByRefObject or be serializable. AppDomain appDomain = AppDomain.CreateDomain("DemoDomain"); DemoLib.Demo demoObj = (DemoLib.Demo)appDomain.CreateInstanceAndUnwrap("DemoLib", "DemoLib.Demo"); demoObj.DoWork(); AppDomain.Unload(AppDomain); or AppDomain appD ...Show All
Visual Studio another export to pdf thread
I have a vb windows form with a crystalreport viewer. I also have a pre-made crystal report that i've set as the report source for the viewer. The report refreshes on form load and after that i would like to add code to export to pdf after the refresh. I've tried to follow msdn's guide to export to different formats but it is just too complex for what i am doing. All i need is to export to pdf. Im fairly new to programming and would appreciate any help. Thank you. Dim mRep As New ReportDocument mRep.Load( "C:myreport.rpt" ) mRep.Refresh() mRep.ExportToDisk(ExportFormatType.PortableDocFormat, "C:\Exported Reports\myreport " + DateString + ".pdf ...Show All
Visual Basic Word.doc
Is it possible to open a word.doc in a RichTextBox and if yes, how Hello, i don't find Microsoft.Office.Interop.Word in the Com tab of the Add Reference dialog Word is not installed on my dev-computer. I want to write the app for another computer on which word is installed. Must word be installed, or what can be the reason that i don't see the Microsoft.Office.Interop.Word Regards Markus ...Show All
SQL Server SQL Server 2005 Express & Vista Installation
Hi I have installed the Beta version for Windows Vista and installed VS 2005 for Software Developers which includes SQL Server Express. When installing the SQL Server express part compatibility issues appear. Do i need to install a fresh copy of SQL Server Express which inlcludes Service Pack 1 I cannot connect to any mdf file through the data connection section in the VS 2005 IDE. Cant remember the exact error message, something like "Cannot find the entry or starting point". I am running a fresh install off the latest Dotnetnuke starter kit and get a database compatibility error so my guess is this could also be as a result of SP 1 not being installed Any help or suggestions appreciated. Thanks ...Show All
Visual Studio Express Editions Problem connecting to access db
Public Sub OpenDB() Dim dbFilename As String = Application.StartupPath & "\database.inf" If My.Computer.FileSystem.FileExists(dbFilename) = True Then Dim objReader As New System.IO.StreamReader(dbFilename) Dim dbLocation As String = objReader.ReadToEnd If My.Computer.FileSystem.FileExists(dbLocation) = True Then Try dbPath = "Provider=Microsoft.Jet.OLEDB.4.0;Password=TAPis;User ID=Admin;Data Source=" & dbLocation & ";" DBCon.ConnectionString = dbPath DBCon.Open() Catch ex As OleDb.OleDbException MsgBox(ex.Message, MsgBoxStyle.Critical, "Error") End End Try Else MsgBox("Th ...Show All
SQL Server Mixing Aggregated data with non-aggregated data in a cube.
At this stage in the project I have a simple fact table which currently holds the low level data. I have designed and built a cube around this table and everything works fine with the current data. The next stage of the project is to migrate some data into the cube from another business area. The problem is that this data is already grouped. I would like to display this data in the same cube so the users can at least get an overview of the different business areas. Is this practical and doable or are there caveats to doing this Does anyone have any suggestions as to what the best approach would be Interesting.... so is this what I need to do..(an educated guess): Add the data to the same tabl ...Show All
Visual Basic Class Question
I am tryin to create a login in Form when a user enters his name in a textbox it shows a message box saying that this name is in the database....I am not sure how i should access the property that is assigned to the SqlDataReader.GetValue(2).toString() here is my class Imports System Imports System.Data.SqlClient Public Class DataForm Private fname As String Private lname As String Public Property d_fname() As String Get Return fname End Get Set ( ByVal value As String ) fname = value End Set End Property Public Property d_lname() As String Get Return lname End Get Set ( ByVal value As String ) lname = value ...Show All
Windows Forms Datagrid message problem...
Hi I have a .Net 2.0 Windows app (windows forms) and I have a datagrid on a form that has a column of checkboxes. These checkboxes are used to drive the value of anothere textbox control. Case in point - The checkbox is called "Cash" and if it is checked, I want to update a cash total. So, I want to update this total whenever a checkbox is clicked. My problem is that I want to do it right then and not when the user clicks somewhere else etc. I have tried many messages, but everything I try is either too late (after the user has clicked or tabbed to another control) or too soon - the value still has the old value prior to the click. Any suggestions would be much appreciated. Thanks, Mike ...Show All
SQL Server Virtual Labs - No Connection message
A couple of us are trying to use the SQL Server 2005 Virtual labs at http://msdn.microsoft.com/sql/ . We complete all the prelim steps successfully but when we click on "Start the Lab" we get a blank page with "No Connection" in the middle. The clock ticks and the system thinks we are doing the lab. How can we get a connection or is the server down or are there no available resources left Hi, I tried to send an email to majewett@online.microsoft.com but I got the following message: 5.1.2 - Bad destination host 'DNS Hard Error looking up online.microsoft.com (MX): NXDomain' Has the email address changed Thanks, Reza ...Show All
SQL Server Sage and SQL 2005/2000
Hi there, We have purchased a new server and SQL 2005 in order to use Sage MMS. We have since heard that due to a "Microsoft Issue" between .NET and SQL 2005, Sage are not recommending their MMS product to be used with SQL 2005. Well basically, we'd already bought SQL 2005 and are now being told that we need to purchase and install SQL 2000 in order to use Sage MMS. Does anyone have any ideas on how we can remedy this Thank you. Tom, Did you resolve this issue - we have recently implemented MMS 3.5 on SQL 2005 and may be able to provide some assistance. Cheers, Mark. ...Show All
Audio and Video Development More complex samples from Microsoft, any ETA?
Hi Microsoft, I (and I'm sure everybody in this forum) am waiting for the more complex (and close to real iHD apps) samples from you. Do you have any ETA Thanks, -k Hi Sammaz, What changes you made after "small debugging" Can you give me a clue Greetings ds ...Show All
Smart Device Development Packet Sniffer - Windows Mobile
Greetings all, I have searched around various sources for information, and I thought I would post here to see if anyone may be able to assist.. I am a post grad student, and I have a need to develop an app for my research project, that has the ability to capture, inspect and display the header information from an IP packet, which is recieved through the 802.11 wireless interface of a mobile device (PDA/Smart Phone etc). I have searched for managed code examples on how to obtain packets from a Windows Mobile inbuilt library/managed code but have not found anything... I have looked at the OpenNETCF.org framework for leads on how to achieve this.. also without sucess at present... I have recently been pointed toward Layered Service ...Show All
Software Development for Windows Vista Windows SDK installer fails (v6.0.6000.0 RTM)
I have downloaded the 1.15gb RTM windows installer twice now (the standalone not web download) and get the same message about an invalid digital signature. The file it fails on is \Setup\WinSDKDocNetFx-WinSDKDocNetFx-common.6.cab. I can't imagine I downloaded it and got it corrupt twice in the same place. Is your installer ok I can't do the web download due to proxy/firewall issues. Kerry Same problem here and exactly the same file WinSDKDocNetFx-WinSDKDocNetFx-common.6.cab. I tried both web installation (3 times) and downloaded the .img (twice), neither works. I was encountered a similar problem when were applying Visual Studio 2005 SP1 and got solved by follow this KB art ...Show All
Silverlight (formerly WPF/E) Does Downloader allow cross domain calls?
I'm developing a WPF/E application and I'm trying to download content using the Downloader object. While this works when the url property points to a relative path the downloader fails (no event is ever fired) when the uri points to another site/domain. Is there a security restriction preventing cross domain downloader calls Wouldn't be usefull an onError event on the downloader were you could retreive information on why your request failed Thanks I couldn't agree more with you. My post on XMLHttp working across domains was not a workarround to the problem but an answer to Byant Likes who claimed that it didn't. Of course we need something that works without the user having to change his/hers IE security settings. I still can not figu ...Show All
