Earl Hood's Q&A profile
Visual C# Server.mapPath
hi, everyone. I using server.mapPath to set as my dir but it could work. Anyone have idea why is it so string myDir = server.mapPath( "" ); especial this part of code.i wan to get any xml file from my folder rather than using absolute path like this @"H:\WSAT\WSAD Assignment"; becuase when i move my file i can just view it without changing my address. public static string [] getXMLFile() { string myDir = server.mapPath( "" ); string fileType = "*.xml" ; string [] files = Directory .GetFiles(myDir, fileType); return files; } it ok... i now have one error so sorry to trouble you. Error 1 An object referen ...Show All
Visual Studio Express Editions Null Reference Exception
For some reason i keep getting this "Null reference exception was unhandled - object reference not set to an instance of an object" Does anyone what this or what is could be causing it. I'm using arrays to store stuff which then makes an instance of a panel. I have 4 of these, they are all identical and use the same panel, but one of them refuses to work and I get this message, I've checked it over and can't seem to see anything different between that 1 and the other 3. ReneeC, everyone is both political and social, however that is not why we are here. There are many forums for discussing those subjects. This is a programming forum and I respect it as such and will not be baited into other discus ...Show All
Visual Studio Invalid argument for database
Hi, I have a report that is connecting to two different databases and retrieving data from a stored procedure in each. My problem is that when I try and set the destination of the database at runtime, I get the following error: Invalid Argument provided. Failed to open a rowset. Error in File C:\DOCUME~1\JAMES\LOCALS~1\Temp\temp_{5E8F9D66-6EFF-47E9-96F7-65D32A761DCC}.rpt: Invalid argument for database I have other reports connecting to the two databases and I am setting their destination at runtime with no problems. The only difference in this report is the fact that it is using stored procedures rather than tables directly. Strangely enough, when I set the designtime location of the database to be the location that i am sett ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Bug in Lights (MDX 2.0 Beta)
Lights don't use a material as a source. It may use ColorSource.Color1 and ColorSource.Color2 only. This problem doesn't occur in MDX 1.1. ...Show All
Visual C++ error C2039: 'messageMap' : is not a member of 'TCreate<CBaseClass>'
Hi All, I inherit an existing project that contains old MFC/ATL C++ code. when I compile the code with VS2003, it compile fine. With VS2005, I got 409 errors. I try to concentrate on the C2039 error above. Do you know why I got the error above What are the differences between VS2005 and VS2003 what makes they are so incompatible Thanks. Hi Nobugz This error is the first error on the list. This project has hunderds of files. So 409 errors is pretty normal for a converted project. I have seen project that has as many as 4,5 thousands of errors after being converting. Note that this project is compiled/linked and worked fine under VS2003. After converting to VS2005, it has 409 compiled errors. It ...Show All
.NET Development guid type conversion for sql key compare
I have a commerce system that uses guid type keys extensively. I cannot seem to get the right format so compare an guid with another for a select statement. For example: sqlreader record that includes a data field of type guid - Dim strGuid As String Dim guiGuid As New Guid guiGuid = myOrderReader.Item(7) - from table read item(7) is a type guid value strGuid = guiGuid.ToString Dim strOrd As String = "SELECT purchase_order_closed FROM dbo.mf_purchase_orders WHERE purchase_order_guid=" & strGuid This gives syntax error but the conversion to a string value works. How do you format the value in read field myOrderReader.Item(7) so that you can compare it in a select type statement as ab ...Show All
Microsoft ISV Community Center Forums Architecture for the Download and Installation Manager.
Hi , I am building an Download and Installation manager like Visual Studio Express 2005 Web installation, windows one care online setup installation etc. for an .net application which download and silently installs all the prerequisties and the application. I am looking for the practices that are followed in buillding these applications. Could any one help me out or give some material to read. Regards Sumit Did you find any advice I have started a similar effort in my most recent product. The code itself does not appear to be that complicated but I am sure that there are many pitfalls. Any advice would be appreciated. ...Show All
Visual Basic Check Whether The Barcode Reader Read A Barcode
May i know how to check the barcode reader has read a barcode and display the numerical value of the barcode and retrieve information accordingly from time to time. Must i use timer or is there any better way of doing it Thank you. Now the barcode reader is able to read the barcode and display the numerical value and however i want to do the check whenever the barcode reader has read a barcode and do some actions from there. I have problem of doing check, currently i am thinking of setting the focus on textbox and timer to check if the textbox <>"" then do some actions but this seems not the right way. Please let me know if you have any idea. Thank you. ...Show All
.NET Development Requested Service not found.
I'm moving a Remoting client and server from .Net 1.1 to .Net 2.0. The code worked fine in .Net 1.1. Now, if I connect to the server using a configuration file, everything works ok. But if I connect using RemotingServices.Connect(), I get a remoting exception "Requested Service not found." I've checked and double-checked to make sure the URL is correct. Since the exception originates in the server, I believe the URL is ok. Any ideas ...Show All
Windows Forms Can't Modify body of an mail Item.
I am trying modify an outlook mail item. I want to add an image to the existing mail item. So i try to read the body of the mail item and then find a place to insert it. code goes like this: Microsoft.Office.Interop.Outlook._Application olApp = new Microsoft.Office.Interop.Outlook.ApplicationClass(); Microsoft.Office.Interop.Outlook._NameSpace olNs = olApp.GetNamespace("MAPI"); Microsoft.Office.Interop.Outlook.MAPIFolder oContacts = olNs.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderContacts); Microsoft.Office.Interop.Outlook.MailItem oContact = (Microsoft.Office.Interop.Outlook.MailItem)olApp.CreateItemFromTemplate(@"C:\Projects\Resource\Westpac Alert.oft", oContacts); Microsoft.Office.Inte ...Show All
Smart Device Development Target Menu, Connectivity Options Menu doesn't respond to selection
I'm trying to build a CE image using the following environment: Vista RC2, Visual Studio 2005, Platform Builder CE 6.0. When I select the Target menu, Connectivity Options... choice, I get a brief change in the cursor, but no dialog box opens up, so I am unable to go any further. Has anybody any encountered this before Thanks in advance, Andrew Can you please manually try and register device emulator binaries They will be located in Program Files\Microsoft Device Emulator\1.0 1. DeviceEmulator.exe /register 2. DvcEmuManager.exe /register 3. regsvr32 SerDMAASPlugin.dll 4. regsvr32 DeviceEmulatorProxy.dll Hope this helps. Also please make sure you carry out these operations ...Show All
Visual Studio Team System Error 26 while running a webtest
Hey, I created a new solution with webtests and when I try to run the webtests, get an error Server was unable to process request. ---> An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) I am able to run the other solutions that contain webtests that I already have used earlier without any errors. Any help is appreciated. Thanks, sp ...Show All
SQL Server DB2 Write Image to Blob field
I need some help in SSIS Package I am trying to write a byte array to an image (blob) in DB2 destination. I am getting SQL code -290 Invalid Description, if i set the output column to a byte stream. If I set the output column to an Image data type then I get a different error the package will not at that time even process it errors out right away. At least using a byte stream datatype it errors out when it is about to write to the olebd destination. Anybody have success using BLOB fields in SSIS package data flow Thanks for any help. Are you using IBM DB2 .NET Data Provider If not, get it as part of the IBM DB2 Clinet from https://www14.software.ibm.com/webapp/iwm/web/preLogin.do lang=en_US&source=swg-d ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Displaying textured 3D objects
Hi there, I've been working my way through the tutorials at http://xna101.spaces.live.com/ , and I am stuck on lesson 16, the first 3D tutorial. The download of die.x didn't work, so I whipped up my own little 3D cube in Blender and applied a simple 64x64 pixel texture to it and saved it in DirectX format as cube.x. I was able to add it to my Project fine, but when I try to compile the program, it has all sorts of trouble understanding any texture I put on the thing. It will say the texture file is not found in the debug/bin directory; or it will give me other error messages about the structure of the texture file. I tried saving the cube as cube.3ds and cube.x3d and whatnot, and none of that worked. (Indeed, the Project didn't even rec ...Show All
Visual Studio how can we calculate the sum in crystal report ?
there are 2 columns BrCode and TransferAmount if the BrCode is repeate many times then then the sum of TransferAmount should be calculated. How can we do this in Crystal report for eg BrCode TransferAmount 1 2000 1 3000 ========================== Branch Total= 5000 -------------------------------------------- 2 1000 ========================== Branch Total= 1000 --------------------------------------------- 3 5000 ========================== Branch Total= 5000 ========================== simply make transfer amount a group and insert formular sum(transferamount) in the footer of the group... ...Show All
