Mike2006's Q&A profile
Visual C++ read struct from file
this is a beginner programmer questions, at least i think so. CFile::Read( void* lpBuf ,UINT nCount) i can pass a struct (first param) and the length of that struct (second param) and then i will have a populated struct. How can i do the same thing with a managed c++ function The size of an int is 2, size of a double is 8, and a long is 4, how can i adjust my struct that i am reading in to account for this offset You can just use CFile in managed C++, although I would suggest you should use fstreams instead. I would be more inclined to write the different parts of the struct explicitly though, ...Show All
Visual Studio Team System Type definitions overwritten every night
A small problem has come to light. I successfully exported and modified the Task.xml and Bug.xml type definitions. I then imported the changed template successfully. Subsequent changes to the templates were made and imported via witimport.exe. Any changes I made were reflected in any new bug or task added to the test project. We already had an existing project up and running, setup with the original basic MSFAgile template. When it came to use the new templates everything went well. Import was successful, no errors, and test work items could be created and pushed through the new process. However (there's always at least one "however") a p ...Show All
Visual Basic What happend to Right & Left
Hi everyone I just tried to manipulate some strings in VB.Net, but what happend to Left() and Right() and of course Mid(). It seems that these functions are gone, but which one can I use Or is there now a totaly diffrent concept behind i Thanks for some advices. . It seems that stringmanipulation is always a main topic. Left and Right are gone, but there are some new methods & functions wich are very helpful. There is first Substring() . But also : LastIndexOf() or Index() or Length() etc. Now you have to use them for getting the needed parameters to fill in the Substring(), if you don't have a fix ...Show All
.NET Development Dynamic updation of XML file in C++ Application
Dear Experts, I need some information on dynamic updation of XML file. Our application asks the user to insert a file by giving the user browsing option. We want our XML file (which contains the information about the residing files) to be dynamically updated as soon user specifies the path of the inserted file. The next task is to dynamically update the XML file once the user select the file to be deleted by clicking on the Application UI. We have to develop the code in C++. Kindly send across your suggestion, opinion and helpful codes. Regards, Mayank Srivastava See MSXML SDK . ...Show All
Software Development for Windows Vista 'Display' not showing any tabs
Hello, I am having trouble with my Display (in control panel, called Display) it won't show any other tab besides the Theme one i.e. I can't see the screensaver tab. Does anyone know how to fix this ngunawar wrote: Hello, I am having trouble with my Display (in control panel, called Display) it won't show any other tab besides the Theme one i.e. I can't see the screensaver tab. Does anyone know how to fix this There were no posts to yours but, did you ever figure out how to fix I just lost the screensaver tab in windows2000 properties which doesn't hav ...Show All
Visual C# Why does Visual Studio 2005 starts to consume 100% of my CPU?
Hello, Sometimes Visual Studio 2005 starts to consume 100% of my CPU. I've tried see if it is when I'm doing something specific, but I cannot put my finger on what it is that might trigger it. It is my first solution in VS 2005, so I have no clue if it's specific to this C# solution. I have a Windows Forms project and a Webservice project in my solution, all connected to a SourceSafe 6 database. This far I've always been editing the Windows Forms project when the CPU consumption has kicked in. I don't even have to build or run the solution for this to happen. If I close VS 2005 and open it again everything will be normal, ...Show All
.NET Development Trusting to certain network drive
Hello readers, I'm wondering that does .NET Framework (1.1) support a possibility to fully trust to a certain network drive i.e. all .NET code executed via a mapped drive (or even a host, whether it's mapped or not) would be run as fully trusted. Thanks for help, Ville Sure. See Using CasPol to Fully Trust a Share . You can use the same technique to trust a mapped drive: CasPol.exe -pp off -m -ag 1.2 -url file://Z:/* FullTrust -Shawn ...Show All
Visual Studio how to locate the chapter in the help table of contents associated to the current visited page
Sometimes I find a page by searching in Index in the .NET help system. But after, I want to locate that chapter or section in the table of contents. How do I go, pls, from the current page in order to find its link and place within the chapters in table of contents. Best regards The Standard Toolbar in Visual Studio has a "Sync with Table of Contents" button on it. Click that button to achieve what you want. The button is located next to the one that's labelled "Ask a Question". ...Show All
Visual Studio Express Editions Pb with parameters in a QUery
Hi, In "TableAdapter Query Configuration Wizard" I try to create a Query with a parameter like : Select field1, field2, field3 from MyTable where Field1 = @Field1 And it sends me an error : Unable to parse query text Can you help me for this pb. Thanks When using field and table names that might conflict with reserved words or keywords you should enclose those names in square brackets: "Select [field1], [field2], [field3] from MyTable where [Field1] = @Field1" ...Show All
Windows Search Technologies PST
I have thousands of Mails archived in PST files. Is there a possibiltiy to search also these mails Yes, but open up outlook and then open up at least the top level folder in each .PST file. It seems like the indexer doesn't recognize it until it is opened in Outlook, (perhaps a FileWatcher thing rather than a Sessions.Folder quiz, dunno.) You can check it has found them by using the 'Indexing Status' window, i.e. when I first went back and clicked on a seldom used old PST my 'Items left to scan:' jumped up by a few thousand - a good sign it's found the content to index. ...Show All
SQL Server Strange problem with DataReaderSource
Hi there, I have a very strange problem with DataReaderSource. I'm trying to get data from InterBase table. I created a Connection manager and the connection was successful. The SQLCommand in "Component properties" tab is a simple "select * from <table_name>". When I switch to the "Column mappings" tab, only the first column from the table is displayed. Pressing the "Reftesh" button resulst in the following error: Error at Data Flow Task {DTS.Pipeline]: The "output column <column_name> has a length that is not valid. The length must be between 0 and 4000. When I go to the "Input and Output Properties" tab, the Dat ...Show All
SQL Server Bulk Copy into CSV file with column name
Hi i am exporting a data from table to CSV file using BCP command but only the data are exported in CSV file,actually i want column name also in CSV file. Appreciate your help for this issue Thanks in Advance You can use a query that contains the header row and orders the data appropriately. See http://www.umachandar.com/technical/SQL70Scripts/Main8.htm for an example. Note that with this approach you will have to convert all the data to string format. ...Show All
Visual Studio Express Editions Install error - Mscoree
Having problems with the install, Error is with Mscoree Any Help would be great [08/10/05,15:10:17] Entering CMsiInstaller::BeginInstall [08/10/05,15:10:17] Entering CMsiInstaller::GetMscoreeVersionFromSystem [08/10/05,15:10:17] ***ERROR EVENT*** : Failed to obtain MSCOREE.DLL version at C:\WINNT\system32\mscoree.dll [08/10/05,15:10:17] Entering CMsiInstaller::GetMscoreeVersionFromMsi [08/10/05,15:10:18] Version of mscoree.dll in the msi package is 2.0.50215.44. [08/10/05,15:10:18] Leaving CMsiInstaller::GetMscoreeVersionFromMsi [08/10/05,15:11:14] ***ERROR EVENT*** : Custom Action Failure:Action ended 15:11:14: InstallFinalize. Return valu ...Show All
Visual Studio Team System Check In Comment
Is there a setting to require a non-blank Check In Comment I'd rather not create a check in policy for a user defined note called "Comment." Jennifer, I'm afraid that this check-in policy is missing out the box. You can however implement it yourself. See the following blog post by James Manning for more information:- http://blogs.msdn.com/jmanning/archive/2006/01/21/515858.aspx Regards, Martin. ...Show All
Visual C# Regarding ToolStrip's movement in RunTime.
I want to make the ToolStrip control on my form to be movable (if user wants to), the same way as we do with the toolstrips from Microsoft in any of their windows. Can anyone help me on this If you are using the 2.0 Framework and Visual Studio 2005, take a look at this tutorial on using the ToolStrip control (as well as a few others)... if you are using 2002 or 2003... you will have to either roll your own solution or find a third party control as the ToolStrip class in 02 and 03 do not support this functionality. ...Show All
