Kurt De Kempeneer's Q&A profile
Visual C++ linking problems (invalid or corrupt file)
Hello experts! I was testing compilation programs with dlls. So I have created simple dll with header: int sum(int size) { return size*2; } And I have compiled it. I have also created simple console application using this library. In project options I have added headers path and libs path, but I have linking errors: Linking... C:\Documents and Settings\Jacek\Moje dokumenty\Visual Studio 2005\Projects\mylib\release\mylib.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x278 Please help, I don't understand this error and I don't know what to do. Greetings Are you using Visual C++ 2003 or ...Show All
Visual Studio Team System TF30144 error when creating a project from another domain
Hi I am struggling with a setup which consists of TFS single deployed on domain X and Team Foundation Client (and Visual Studio) on domain Y. X and Y does not know about each other since they are on diffrent nets and the DNS servers are not connected. My first problem, which I solved, was that TFS setup (or possibly SharePoint Services or SQL Server) uses computer names in configuration files. Thus, Team Explorer did not work correctly (red crosses on the documents and reports folders etc..) since computer names couldn't be looked up from domain Y. This was solved by adding the IP computer name mapping in the Windows 'hosts' file. &nbs ...Show All
Visual Studio Team System Moving TFS to a new server - use Beta3 refresh or RC?
Hi all, I want to move our existing Team server to a new machine and a new domain but I have two hugh questions: (We're using Beta3 Refresh) 1. Would it be easier for me to upgrade my existing server from Beta3 refresh to RC than do the move, or just do the move using Beta3 refresh then upgrade the new server to RC 2. There was a post a while ago that contained details about backup and restore ( http://blogs.msdn.com/vstsue/articles/500334.aspx ), in this document it covers How to restore TFS data to a different server. Is this the best article that explains how I should do the move, and using this technique would my data survive a ...Show All
Visual Basic Button Tool
I want to apply Windows XP button style on my Windows Form, but how First Add a TextFile to your bin folder and rename it to <ApplicationName>.exe. mainfest That should be manifest. ...Show All
Windows Forms What's the difference between bin and obj?
always wondered that, they seem to be the same I find the files in the bin and obj quite different, the program in the obj doesn't run while the program in the bin does run. My impression therefore is that the obj is the compilers working area, while it finalises the compilation in the bin. (I could find nothing about this ...Show All
Visual Studio Continue prompt when running analyze over a network
We currently house our VSS database files on a SAN and as such when we try run analyze we get a popup stating "For reliability and performance reasons using the analyze, archive and restore utilities over network is not recommended. Do you wish to continue " This was not in the beta 2 version but has shown up in the release. This would not cause an issue if we were manually running analyze, but we are attempting to schedule analyze for off hours and the popup is preventing us from automating. Is there a way to disable this notification from the command line execution of analyze Or are there any suggestions on best ...Show All
SQL Server SSRS 2005 Export to PDF Missing Data
I have a report that has a page header that needs to have the customers name. The report works fine by referring to reportitems!Customer_nm.value where customer_nm is a hidden textbox in the body of the report. Unfortunately, when I select the Export to PDF, this value is blank. It works fine if I export to Excel or just use the native functionality. It appears only to be missing in a PDF. Any ideas Hi Lynn, We are also facing the same problem :( What we have done is inluded the textbox as part of the body and not the header. Anyone any ideas on this Thanks Manish ...Show All
Windows Forms Edit mode in datagrid?
Hi, How could i programmaticaly know that the datagrid is or is not in Edit mode Thanks. Datagrids don't go into edit, datarows go into edit, since the datagrid goes into edit for each cell and and ends edit when you move rows here is a way to see if the current row is in edit dim cm as currencymanager = ctype(me.bindingcontext(me ...Show All
Visual Studio Express Editions Printing multiple pages
Can someone please help me print out a directory listing to multiple pages Here is the basic code I have so far: Private Sub PrintDocument1_PrintPage( ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim di As New DirectoryInfo(pathString) 'create an array representing the files in the current directory. Dim fi As FileInfo() = di.GetFiles() 'get number of files in selected folder numfilesInt = fi.Length Dim printFont As New Font( "Arial" , 10) Dim lineHeightSingle As Single = printFont.GetHeigh ...Show All
Smart Device Development How to change current UI culture at runtime?
HI. I have a form and I want to change its UI culture at runtime. The method System.Threading.Thread.CurrentThread.CurrentUICulture = ... does not working in .Net CF. I am using VS .Net 2005Beta2, C#. Thanks. System.Threading. Thread .CurrentThread.CurrentCulture = new System.Globalization. CultureInfo ( "en-US" ); ...Show All
SQL Server Why you can't set up in 'disabled status' a task in Data Flow layer???
In Control Flow you can do that. Data Flow objects behave quite differently from Control Flow objects - disabling a transform may invalidate much that happens downstream. This is especially the case for asynchronous components. I can see cases where disabling synchronous components could be useful, and indeed I have some ideas around how that might be done in the future. I would be interested to hear more about your scenarios and reasons for asking about this. Or perhaps you were just asking (no harm in that of course) Donald ...Show All
Visual C# Web Application Problem
Hi, I would like to know how can I run a ".bat" file trough my web application, I tried using process but it doesn't get the argument... Here is the part of the code.. System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents= false ; proc.StartInfo.FileName="C:\\Inetpub\\wwwroot\\Webshell\create.bat"; proc.StartInfo.Arguments="Pasta1 Pasta2"; proc.Start(); But it does not work, if I paste the command and the prompt it works fine.. Any help Ok the only thing i can imagine now causing a problem is CAS (Code Access Security) and nothing more.. Check the settings there. Is there a chance th ...Show All
SQL Server Paging of Large Results Using Server Cursors
I'm writing an ASP.NET application that uses a SQL Server 2000 database. The application searches in large tables with 500, 000+ Records and then displays the search results, the search results could be easily 20,000 or 30,000 results. Ofcourse i need to use paging to show like 10 or 20 results per page. Unfortunetly ADO.NET doesn't support the paging functions that were found in ADO (like PageSize or AbsolutePosition) so i have to implement the paging myself. I've read many articles that talk about how paging could be implemented. Most of them suggest doing the paging through SQL Server using Server Cursors. I know that cursors are resou ...Show All
Visual Basic upgradesupport exception error
Hope some can tell me what i'm missing here..... I converted a small vb6 app to VB2005 and cleaned up the errors it generated. It runs fine on my development box, but when i install it on a win 2003 server using an msi installer, i get "The type initilizer for 'myapp.upgradesupport' threw an exception. This happens on the line of code: MarsWorkspace = DAODBEngine_definst.Workspaces(0) where MarsWorkspace is defined correctly. any help out there for this tia Sorry this relates to a thread from last year. Wondered if you could help me I have inherited a software a ...Show All
Visual Studio How to translate from Properties to Items?
I have a property that has comma-separated values, like "A,B,C,D" and I need to pass it to another target. My current solution is to declare it as items and the pass it to msbuild with batching: <PropertyGroup> <MyProperties>A,B,C,D</MyProperty> </PropertyGroup> < ItemGroup > < MyPropertiesAsItems Include = "A;B;C;D " /> </ ItemGroup > < Target Name = " MyTarget " > < MSBuild Projects = " $(MSBuildProjectFile) "   ...Show All
