jms04081974's Q&A profile
Visual C++ Error 45 fatal error LNK1104: cannot open file 'msvcirtd.lib'
When I upgrade a vc6 project with Com dll into a vc2005 project, After I fixed all the error, there is one remaining which confuses me as follows: Error 45 fatal error LNK1104: cannot open file 'msvcirtd.lib' TctrumForm Can you tell me how can I solve this problem I am here to thank you in advance. You need to use #include <iostream> instead of #include <iostream.h> ...Show All
Windows Forms HELP explain this winform behaviour
Hi, everyone. I ran into an UI freeze issue with threading and simplied the problem down to the following sample code. The logic is as follows: 1. The main UI thread creates a non-UI STA thread(m_MainThread). 2. Then the non-UI thread runs and creates derived winform and holds a reference to the winform. NOTE: I don't call Application.Run() because I don't need a message pump on this "hidden form" in my application. I rely on the form's STA thread owner to pump and dispatch non-COM messages to the form window when the STA thread is on a pumping wait call(eg. WaitOne()). This works fine. I can send and receive messages to external win32 process using the hidden form. The code below works fine in .NET 1.1, but causes UI freeze issue ...Show All
Visual C# Reading the end of an XML file
I have a program that cycles through an XML file and outputs to another file every 1000 records. Thyis works fine until the end of the XML file is reached, when it fails saying my 'root' tag is not closed - although it does for the previous files. It seems to be having issues with recognising the end of the XML file, so can someone please confirm how this is done Currently I have a while loop to do this, with a for loop inside to cycle through the records, ie: while (XmlReader.Read()) { ... for (int i = 1; i <= 100; i++) { while (reads in a node here) { does the work } } Close the XmlReader and XmlWriter } This works fine for the beginning, until the end of the file is reached; is my way of reading the XML file correct (I have also trie ...Show All
Visual Studio Tools for Office VSTO 2005 and Outlook 2007?
Hi, I'd like some informations...I've started to use VSTO 2005 to build my plugin for Outlook 2003 some months ago...but a few weeks ago an user told me he has successfully installed my plugin into Outlook 2007! However, he's the only case... Do you have any clue Should they change the PIA, something else I still don't understand how this guy have been able to install (he neither...he just double-clicked the installer, and voila! :)) Please help me ;) Bye LastHope Until recently I'd been ignoring VSTO as an option because my next version was to support OL2002 & OL2000 as well. That left me with ADX.NET as my best/only option to let me do .NET coding and support the old Office versions. But now I'm hearing that I can likely get aw ...Show All
.NET Development The magic number in GZip header is not correct. Make sure you are passing in a GZip stream.
I've just tried the following code for decompressing a .zip file, but get the following error message: "The magic number in GZip header is not correct. Make sure you are passing in a GZip stream." The error is on line 27: "int bytesRead = compressedZipStream.Read(smallBuffer, 0, 100);" My code is as follows: using System; using System.Collections.Generic; using System.Text; using System.IO; using System.IO.Compression; namespace GZipText_decompression { class decompressionTest { static void Main(string[] args) { FileStream inputFile= null; GZipStream compressedZipStream = null; try { //determine the uncompressed size of the file inputFile = new FileStream("c:\\translated_catalog.zip", FileMode.Open, FileAcces ...Show All
Visual C# IMediaControl in QuartzTypeLib ?
Is there anyway i can control my music played using my program The code for me to play music files are: using QuartzTypeLib; private IMediaControl audioControl = null; This is for me to openDialog box to open files: private void OPEN_Click(object sender, EventArgs e) { // Allow the user to choose a file. OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "Media Files|*.wav;*.mp3;*.mp2;*.wma|All Files|*.*"; if (openFileDialog.ShowDialog() == DialogResult.OK) { // Access the IMediaControl interface. QuartzTypeLib.FilgraphManager graphManager = new QuartzTypeLib.FilgraphManager(); QuartzTypeLib.IMediaControl mc = (QuartzTypeLib.IMedia ...Show All
Visual Studio Express Editions Automation addin for Excel : function not visible
In Visual C# 2005 Express Edition, I follow the instructions in How to: Use Managed Code as an Automation Add-In for Excel (C# Programming Guide) First, my addin is not visible in Excel because I should "Make Assembly COM-visible", which is not specified in the online doc. Second, when I do this, my addin becomes visible, but there is still not "Tax" function available. Any help would be appreciated. Yes, this is what I have done already. Point 1 : the online does not indicate this in: How to: Use Managed Code as an Automation Add-In for Excel (C# Programming Guide) But in spite of this, the method "Tax" is not visible in Excel, although my addin is added in Excel with Tools -> Add-Ins -> Aut ...Show All
Visual Studio Team System How to assign one workitem to two people?????
Hi, from the very begginning i have tried to assign a single workitem to two users or more, How do we achieve this Hi All, dint get the solution, but this is right now not supported Out of the Box in Ver1.0.... But still, if anyone has something to say about this, plz reply ...... ...Show All
Visual Studio Incrementing Assembly Version and File Version
When building projects using MSBuild I was expecting the build number to automatically increment each time. Is there a setting that will achieve this I have tried using an * in the Assembly version as stated in another message but this does not work. This area seems to be very obscure. Is anyone able to point me to some documentation Thanks David Do a search on the AssemblyInfo task. Its available on the MSBuild community website : http://msbuildtasks.com/ ...Show All
Audio and Video Development adding a pause in script
i'm wondering if anyone can help me add a pause in script. i'm trying to delay a function so that an animation has time to complete before a function begins. i'm familiar with setTimeout(), but i believe it is not supported in iHD thank you very much Peter for your knowledge, time, and promptness! will you have any time soon to post a sample of picture-in-picture application ...Show All
Visual C++ std::list has changed in VS 2005
It seems like std::list implementation has changed in that it now uses the & operator on elements of the list type. The difference between VS2005 and VS2003 implementation can be seen in the _Buynode( _Nodeptr _Next, _Nodeptr _Prev, const _Ty& _Val) method (line 1152 VS2005, line 915 VS2003). The problem with this is that if the & operator for the type is overloaded, the same code that used to work in VS2003 will no longer compile in VS2005. When the type used is a built-in type like _com_ptr_t, which overloads that operator, it is no longer possible to have a list<_com_ptr_t> type. Does anyone have a resolution for this This is always a problem for objects in container t ...Show All
Visual J# library.xml not created when called from MSBuild
Hi; If we build out J# based DLL using VS 2005 or nant - it created WindwardReports.dll and WindwardReports.xml. If we build it using MSBuild, no WindwardReports.xml. We have a C# library also and it does have the .xml file built. Any ideas thanks - dave Support, You can drop this issue as it is a known bug. --TeleRiddler ...Show All
Visual Basic Question on class inside an objet
hello. A question please. A have an objet toolstripitem. When I do a "watch" on it, I see all properties and a class called system.windows.forms.toolstripmenuitem. How can I access to this system.windows.forms.toolstripmenuitem class There are informations I need. Thanks... So you are seeing a list of ToolStripMenuItem objects within the Item property of the ToolStrip In order to actually access each ToolStripMenuItem you'll need to extract it and then convert it to the desired type as the Items references its contents as ToolStripItem s. ...Show All
Windows Forms Custom/Nested List box
Hello all, Im sort of new to Visual C#, been programming with Java mainly, anyways, I didnt see this posted anywhere in the forums, so here goes ... My objective is to have a list sort of like this : First ----- Mid-1 Mid Mid+1 ----- Last Where all the text stands for position, so First and Last shld be the First and Last values of the list respectively, and middle will be the middle value. Basically all these are for the pointers. By default, the list should first appear as above. In the middle between the dashes, there should be a scroll bar unless it happens as below : First First 2 ------ 3 Last-3 4 Last-2 ----- Last-1 Last Last Well in code langu ...Show All
.NET Development R
I am getting some xml file from the resource to which i can't change the generated xml. In my application i am transforming this xml file by the help of my created xsl file to new xml file. I am getting the above mentioned error when Itry to execute mycode for transformation string fXmlFileName = @"C:\Test\FirstExporter1.xml" ; string fXsltFileName = @"C:\Test\FirstExporter.xsl" ; StreamWriter msOutput = new StreamWriter ( @"C:\Test\FirstExporterNew.xml" ); XPathDocument doc = new XPathDocument (fXmlFileName); XslCompiledTransform xslt = new XslCompiledTransform (); xslt.Load(fXsltFileName); xslt.Transform(doc, null , msOutput); msOutput.Close(); Can an ...Show All
