mark brayton's Q&A profile
Visual C# Releasing an Excel Object
believe that I am releasing the object. I then attempt to Delete the file in the string path but VS continually says the object is in use by another process. I have pasted the code below. I have attempted to use the commented code without success. When VS gets to the 'File.Delete' comand the exception occurs that says the file is in use by another process. // Need the following code to clean up and extingush all references!!! objExcel.UserControl = true ; //objExcel.ActiveWorkbook.SaveAs(strFileNameExcel1, Excel.XlFileFormat.xlWorkbookNormal, // null, null, false, false, Excel.XlSaveAsAccessMode.xlShared, false, false, nul ...Show All
SQL Server Reporting Services wont install with MSCRM
Hi all, I'm trying to build a MS Small business server with MSCRM 3.0 SBS edition. Packaged in with MSCRM is the reporting services, the log showed that they didn' install as part of the package so I've tried to do it manully by launching the SQL Reporting Services installation that come bundled with MSCRM. I get 99.9 percent of the way through the isntallation without any issue and it looks like the very last thing before installation of reporting services is complete fails with the follwing error... -- Error 1937. An error occurred during the installation of assembly 'Microsoft.mshtml,Version="7.0.3300.0",PublicKeyToken="b03 ...Show All
Visual Basic upgrade problem
Hi I just updated an project from vb 6 to vb.net but when I build te program now I get this error can't load (io.dll)' edit : this i the script that loads it Public Declare Sub PortOut Lib "io.dll" ( ByVal Port As Short , ByVal Value As Byte ) Public Declare Function PortIn Lib "io.dll" ( ByVal Port As Short ) As Byte okay the io.dll works now, but now my loop wont work but I'm sure it worked before Do InValue = PortIn(889) Label1.Text = CStr (InValue) Loop Until InValue = 63 Dim MyValue As Object Randomize() ' Initiali ...Show All
Visual C++ How to execute DCM converter in VC++
Hi, I am new to VC++ and i am working on DCM Converter. I found this project (i.e. DCM Converter) on net. but i failed to execute it in VC++ environment. I downloaded that source code from net. That uses CxImage and DCMTK. I downloaded the source code of both these(DCMTK and CxImage) and put that in a folder along with dcm converter. I changed the project settings as directed on Cximage web page. then i compiled all the three (dcm converter, DCMTK, Cximage) seperately but still i am not able to run it on VC++ plz guide me if i am wrong somewhere. did u try the cmake file instructions, http://www.cmake. ...Show All
Windows Forms application.run
I can't understand what does Application.Run method really do. It load a form, but how can I reference to this form after that If I create a new instance of the form in main sub and then I pass it to Application.Run, I have the form loaded but the object created in main sub is already been destroyed... Many thanks Cold not ...Show All
Visual Basic AnalogTVTuningSpace and MSVidCtl
I´m trying to develop a decent tv tuner/capture application (since there are no such apps, nowhere, I say) in Visual Basic 6.0. I´m using the MSVidCtl component together with the AnalogTVTuningSpace and IChannelTuneRequest object to achieve this, as described here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_c/directX/htm/hostingthevideocontrolinavisualbasicform.asp and here: http://msdn.micro ...Show All
.NET Development I want the CLR to probe the local folder BEFORE the GAC
Hi, I have some assemblies in the GAC. I am running an exe from a folder, and the assemblies in the GAC are also in the same folder as the exe. Is there a way to stop the CLR from loading the assemblies from the GAC and load them from the folder (if they are found) Is there an element I can add to the .config file for the exe I am running to tell it to do this Thanks. The codebase element in the config file should do what you need http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconspecifyingassemblyslocation.asp ...Show All
Windows Forms Hold references to business objects in controls, or just their IDs
Do you normally store an instance of a domain object, or just it's ID, in the Tag property of, say, a TreeNode I am having problems because my GUI controls, which hold references to the domain objects they represent, stay in memory for as long as the app is running. So if I have a TreeNode and a ListViewItem, both representing the same domain object and both keeping an internal reference to that object, I think problems are occuring when I make changes to one and not the other. But I thought that because I am dealing with reference types (my domain objects), modifying it in one part of the app would modify it in all other ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotation about the z-axis...
I have a square on screen (2 triangles), and I'm experimenting with rotating the thing. Rotating about the x and y axis works as expected (the thing spins horizontally and vertically), but when I rotate it about the z-axis, it goes up and down, deforms a bit, and just looks weird. As for how I'm doing it right now, I'm using Matrix.RotationYawPitchRoll(x, y, z) to get my rotation matrix. Well, you could try using Matrix.RotationZ to see if the Z-angle you're using isn't causing any problems. Other than that, we really need to see some more of your code to be able to tell what ...Show All
SQL Server Conversation ID cannot be associated with an active conversation
Hi: My service broker was working perfectly fine earlier. As I was testing...I recreated the whole service broker once again. Now I am able to get the message at the server end from intiator. When trying to send message from my server to the intiator it gives this error in sql profiler. broker:message undeliverable: This message could not be delivered because the Conversation ID cannot be associated with an active conversation. The message origin is: 'Transport'. broker:message undeliverable This message could not be delivered because the 'receive sequenced message' action cannot be performed in the 'ERROR' state. How do I pro ...Show All
Visual Studio Team System Project Attributes
Is it possible to extend the the Team Foundation Project attributes Something like add some field related to external app, internal attributes we use to identify our projects, etc. Thks, Max A document or item on the portal should do the trick. If you're interested in tracking a significant amount of metadata around a team project, consider creating a work item type such as "Project Details" and opening new work items to track the info. Of course, this is overkill unless you have lots of details or are interested in tracking the details. ...Show All
Windows Forms Need ADO.NET Guru... Binding a Service and Forms App to Common Data
I need a way for a continuously running, automated, custom code process to be able to bind to the same data as the windows forms app that can control the long running process. Here is the basic scenario: <HR> A couple of years ago the production management team of the company I work for asked if it would be possible for me to create some&nbs ...Show All
Visual Studio Tools for Office Reopening bug for AllUsers?
Hi, I've followed this guide: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=360200&SiteID=1 and then I was able to install for all users...Hooray! However, today I've took a look at the list of my ComAddins in Outlook... And AGAIN it's not listed! And this is MORE than weird... Uninstalling, I can still use it inm my Outlook... Could someone tell me if it's experiencing the same problem Bye LastHope Hi, many users confirmed that before I made that update, they could see the plugin in the COM AddIn list...and after, they cannot see it anymore... Has anyone experienced this too Bye LastHope ...Show All
SQL Server missing notifications
Hello, We are building a simple distributed application around the service broker where each queue is serviced from a windows service. We have a windows service running constantly as a "listener" on an event queue for each of what we call "request" queues. When a message is received by the request, the listener service instantiates a reader to process the request. As we are in development, things get out of sync at times and the event queues sometimes stop getting the event notification message. I can correct this usually emptying the queues by receiving all messages from the "request" and "event&quo ...Show All
Software Development for Windows Vista TATTOOED MOBO AND HDD's
The BOM code in the EPROM part of the bios might still contain a tattoo specific to what can be resotred/installed. This has given me errors. Google a link for trying to flash out the BOM code and replace it with a fake one. This might help, might not. I didnt get the same error but a similar one. Also of you cant flash the bios try using a different hard drive, since that same tattoo is most likely embedded in the hard drive as well. Hope this helps. ...Show All
