JohnTMSDN's Q&A profile
Visual Studio BuildAction property for a ctc file does not contail the CtcFile property
Hi, I'm trying to remove the depenendency of my Package on a satellite dll. I did this by creating a resx file and adding all the necessary strings, ico, images etc. I proceeded to add the [MsVsShell. PackageRegistration (UseManagedResourcesOnly = true )] attribute to my package. I then moved the ctc file for the assembly from the satellite dll project to my main package project. The "Build Action" property for my ctc file, however, does not provide the "CtcFile" option. If I look at the Toolwindow sample the ctc file has this option. What is the correct way to migrate a ctc file from a satellite dll to the main package How do I get the "CtcFile" option to show up for the "Build Action" property. Thnx in advance. ...Show All
Visual C# Problem with DataGrid table navigation
Hi there, I have a Windows.Frorms.DataGrid populated with a 3-table-relationship. Each table has a boolean editable column: Modifying values on parent row modifies values on child rows (that is working just fine) and modifying the value on a child row should modify the value of its parent row. Performing this last operation causes the datagrid to reset its view to Table[0]. Is there a way to avoid this issue ...Show All
Visual Studio Express Editions VS 2003 Free too?
I'm not 100% sure if this is the right place to post this but here it goes. I know VS 2005 express is free, but is there any VS2003 version you can download for free (C++ needed in particular) If so, where can I find it The reason I need 2003 is that I wanted to try my hand at modding Half-Life 2. I own a copy of VS2005 professional but it would require me to manually fix 600+ errors... so it would be much easyer for me to just find a copy of VS2003. ...Show All
SQL Server moving data in ssis from sql server 2000 to 2005 on same server
hi, does anyone know how I can make a connection to a 2000 db thru ssis LISA86 wrote: maybe I'm missing something, but when I use that I can just see my 2005 dbs But can you type in your 2000 SQL Server name ...Show All
SQL Server SQL Server CE Replication: Integrity error, but not at all
Error information: NativeError: 28549 HRESULT: -2147217873 Message: OrdersHeader,Delete,{0503BF00-BB05-11C6-8000-36BC4ADEE342} Description: The row update or insert cannot be reapplied due to an integrity violation. Server side: SQL Server 2000 or MSDE Client side: SQL Server CE or SQL Mobile This error is usually caused because of an error on the filters. But not in this case, i think. I assume it's not a filter error because if I delete the SDF and run the sync it works. The error occurs when I delete some rows in the server (parent( OrdersHeader ) and child( OrderLines ) tables) and the PocketPC stills have this rows. On the next synchronization It seems that replication process tries to delete the OrdersHeader rows before the OrderLin ...Show All
Visual Basic string array question
I’m trying to create an array from each line read from a text file. I just successfully did a similar array using Directory.GetDirectories to fill an array, but for some reason this one doesn’t work. I’m getting a Null reference error. The line “ aryFromList(i) = Line” has a squiggly line saying that aryFromList is being used brfore it has a value. BTW, I am aware that I need a "while not EOS" line for the reader, I am giving you just a portion of the code. Any suggestions would be appreciated. Dim objFS As New FileStream( “C:\test\test.txt” , FileMode.Open, FileAccess.Read)   ...Show All
SharePoint Products and Technologies Problems with replication of Active Directory password change to Sharepoint 2003
Hi, we have a problem when some users change their password Sharepoint 2003 does not replicate the password from Active Directory. And the username/password dialogbox comes up. Is there a workaround for this problem Anyone else have the same problem This is the case for around 10 users now. And the only way to make sharepoint is setting the password back to the old password. Appreciate help! Thanks, Kjetil Tveit Hi Kjetil, Are you using SPS2003 or WSS 2.0 (with AD auto creation mode ). If you are running the portal in the same domain as the user, has the user logged out and in again on their local PC Maybe there is a mismatch with the current logged in user on the PC (old password), the integrated windows authent ...Show All
Audio and Video Development TextStream, writeline
The writeline method writes a string and a new line char, right Why i "don't see" this new line I'm getting all in the same line! FileIO.openTextFile( "file:///required/score.txt" ,FileIO.FILE_IOMODE_WRITE, false , true , cbfnGetTextStream); And then... pTextStream.writeLine(score); FileIO.saveTextFile(pTextStream, cbfnSaveTextStream); And i'm getting all the scores in the same line... Actually *nix uses one, Mac uses the other, and DOS / Windows use both. Use the write method (instead of writeLine ) and put "\r\n" at the end. Note it must be in that order -- "\n\r" still won't work for Notepad etc. ...Show All
Visual Studio Team System MSTest Command Line Error - Test 'x' cannot be found.
When I run the test harness from the command line: mstest /resultsfile:test.xml /testmetadata:tests.vsmdi /testlist:BuildVerificationTests I get the following: Microsoft (R) Test Execution Command Line Tool Version 8.0.50727.42 Copyright (C) Microsoft Corporation 2005. All rights reserved. Loading tests.vsmdi... Starting execution... Test CheckExpectedTypeGoodParameters cannot be found. No tests to execute. However, through the IDE the tests operate without a problem. Is there any way to get a more detailed log to figure out why MSTest isn't locating the test When I run it without the testlist parameter it manages to find the tests (while still noting that all the tests in the list cannot be found). The te ...Show All
Windows Forms setting superscript and subscript text in a rich text box
How can I programmatically set a character into superscript or subscript in a system.Windows.RichTextBox I control, I can easly type it in using the same way I do in Word, but there doesn't seem to be a way to do it programmatically. Hi and thanks a lot for the reply, the problem with SelectionCharOffset is that it controls the offset level of the character without making it a true superscript or subscript (it doesn't become smaller for instance); if you look more closely to the rtf, you will see that it sets \upN rather than \super, so you could have both \super and \upN set. I'm almost convinced that the RTB implementation does not have a property to control the super/sub behavior, so what I will do i ...Show All
Community Chat What language do you prefer?
Could someone please enlighten me as to what the advantages and disadvantages of the following languages are, in general: C# C++ Visual Basic Also: I read somewhere that C++ was much better for game programming than VB, but why VB is easier to learn and use, so what are the advantages of C++ Here's my take on them. C# – It’s a relatively new language that’s essentially a cross between Java and C++. In fact, some have called it Java with the serial numbers scraped off. It’s closely associated with the .NET Framework and is the primary language for it, meaning that you’ll see new Framework features in it first and often better implemented as opposed to what you see in other languages. The syntax is conducive to go ...Show All
Visual Studio Visual Studio Compile Slow on Network
Hi, My compile times have increased by 500% when i connect to network. The output window in visual studio shows that class libraries just take 1-2 seconds to compile. But my control library and Winforms project take about 7 minutes to compile. If i disconnect from the network the compile time is normal just 3-4 seconds for each project. I need to access the network because the database is on a domain server . SQL Server 2005 express edition. The only thing I can think of is that visual studio may be checking a network share for some reason. Do any of your projects have hintpaths or references to a network share / drive. ...Show All
Visual Studio SqlExecute MSBuild Community Task
Has anyone made use of the SqlExecute task from the MSBuild Community tasks I've tried to use it and get an error saying that the task cannot be found. I'm using other community tasks in my build project and haven't run into this problem before. Thanks, Jon P.S Is it just me or is documentation on these tasks severely lacking Jon, The problem with SqlExecute is that it's not in any of the test projects/sample projects. So, it seems like it's not being tested with msbuild. There's a discrepancy with SqlExecute in the 'MSBuild.Community.Tasks.Targets' file. If you open that file up, you'll see that 'ExecuteSql' is declared in the using tasks. However, the public class is declared as ...Show All
SQL Server Query Oracle Table In SQL & Put In Temp Table
Hi all, I am querying a table in oracle, the server connection to the Oracle database is determined by a criteria. Though how can I put the results from the oracle query into a temp table This is the code i'm using for the query: DECLARE @cmd VARCHAR(500) declare @Year varchar(25) set @Year = '2006' DECLARE @Link VARCHAR(100) DECLARE @Table VARCHAR(100) select @Link = Server from tbl_Conn where Area='Floor' select @Table = Target_Table from tbl_Conn where Area='Floor' SET @cmd = ' select * from OPENQUERY ( ' + @Link + ', '' UPDATE '+ @Table +' SET TARGET_VALUE = '+@Value+' WHERE Date = '+@Year' '' ) ' EXEC (@cmd) How do I put the executed results into a TEMP table Rgds, ...Show All
SQL Server Error when I try to copy components and tasks
Hi everyone, Everything's fine or I think so but when I try to copy/cut components to another SSIS of to own. I get this error: Error al copiar objetos. El Disenador SSIS no pudo serializar los objetos de tiempo de ejecucion de SSIS. No se pudo copiar el objeto 'Tarea Secuencia de comandos ActiveX' al Portapapeles. (Microsoft.DataTransformationServices.Design) Tranlasted into English (more or less): Error copying objetcts. SSIS designer was not able to serialize run-time SSIS objects ActiveX Script task was not copied to clipboard NOTE: this behaviour doesn't happen in the own server only from client (xp pros sp2). Nothing has been changed I don't know if install again or not. ...Show All
