Nibu Thomas's Q&A profile
Visual C# Unable to load class library
I wrote a managed wrapper in C++/CLI and compiled it under AMD64. Now I wrote a client in C++/CLI too and this works well. Trying to do the same in C# I got everything to compile but when I run it it says: Unhandled Exception: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E) at MyClass.Main() This is weird though. I compiled the C# file for 'anycpu' but trying to set the platform to x64 did not do any difference. The class library is even located in the same directory. It was compiled using the RC: csc /out:test_cs.exe tes ...Show All
Visual FoxPro editbox control snaps.
It is a fairly mild problem but still an inconvenience. I have an editbox and a text is assigned to it in the following manner: THISFORM.Pageframe1.Page4.Edit1.ControlSource = "(ThisForm.cData)" All other operations are done programmatically. I may force it to count the number of lines and go to a specific line and highlight it. It does. But then after a while, perhaps in about 2 minutes, it snaps to the first line (beginning of file is fact). It never fails to jump backwards. It is annoying. Why does it do it What can be done about it Thanks. Do you have any code that refreshes the editbox (or the whole form) Tha ...Show All
Visual Studio Express Editions Getting files with specific extensions using FolderBrowserDialog
Hi everyone. I'm making a media player using the BASS API Library and Direct-X. My problem is, I'm using the FolderBrowserDialog component and I know it can't filter files but I need only files with specific extensions to be added to the Listbox I have on the form. So far the code looks like this: Public Sub foldertoplaylist() Dim plug As Integer = 2 Dim playlistid3 As String Dim chosen As String Dim filInfo As IO.FileInfo AddFolder.Description = "Choose the folder you would like to add to Tray-Play" If addfolder.ShowDialog = Windows.Forms.DialogResult.Cancel Then ...Show All
Visual Studio Team System Policy Override Reports
Hi All, I want to create a report for showing all the policy overrides comments. Unfortunately, I donot find the override comments data in TFSWarehouse database. Is there any way I can port this data to the TFSWarehouse database everytime the warehouse is updated with data. Or any other suggestions for creating such a report will be helpful. I donot want to create a report that reads from TfsVersionControl database. Thanks, Sarathy That policy override data is not in the warehouse. I've filed a suggestion in the TFS Work Item Tracking system to consider having this included, as I've seen it ...Show All
Windows Forms DataGrid Column Title
I am filling a datagrid programically... DataSet DS = new DataSet(); string SortField= "fldTitle"; string sql = "Select fldTitle, fldType from myTable"; OleDbConnection conn = getDb(); OleDbDataAdapter myCommand = new OleDbDataAdapter(sql, conn); myCommand.Fill(DS, "myTable"); DataView Source = DS.Tables[0].DefaultView; Source.Sort = SortField; myDataGrid.DataSource = Source; I have been trying to simply change the column header text but can't seem to find how. Thanks, Zath myDataGrid.TableStyles[0].GridColumnStyles[0].HeaderText = "My Header" The key is knowin ...Show All
Visual Studio Team System File System??
I installed TFS server on a system which had FAT32 as its file system and ultimately landed with the error 32000 which asked me either to change the file system or place the virtual server directory in an ntfs sytem. So do I now need to reinstall the OS, configure it as ntfs and again install tfs or convert the existing file system without reinstalling the OS or removing TFS . The latter is a time saving solution but would it lead to authentication problems(which windows takes of) later Thankx in advance, Bharath If you convert the filesystem in-place, you can specify the /nosecurity switch. (eg convert c ...Show All
Visual Basic TextBox array
I am upgrading a program that I wrote in VB6 to VB2005 and am having trouble with textboxes. In the VB6 version, I used an array of textboxes to display and order text on screen according to it's priority. This was done in a module. The VB6 program takes a new message, checks it's priority (assigns the texbox color according to priority) and then adds it into the array according to the textbox color and arrival sequence of both itself and the existing array members. In the 2005 version data is processed by a module and passed to the form (because I can't process the text boxes in the module). The form then needs to display the data on ...Show All
Visual Basic Copying string to a text file
Hi, I'm trying to read a text file and write to another text with some string manipulation. But when I read text string and then move the string to text file and write it , the vb express 2005 add double quote in front of each string. Richard . =============================================================== VB Code: Dim InfileName As String, TextLine As String Dim fnum1 As Integer, fnum2 As Integer, fnum As Integer fnum = FreeFile() FileOpen(fnum, OutfileNameText.Text, OpenMode.Output) fnum1 = FreeFile() FileOpen(fnum1, Infile1NameText.Text, OpenMode.Input) Do While Not EOF(fnum1) TextLine = Lin ...Show All
Visual Basic WinForm Deployment in VB.Net
I have a solution that has two projects. I was able to deploy the first project with no problems using a set-up project,adding it to the solution , and building it. It installs to other computers just fine. I used the same basic procedure as above to deploy the second project. When I install and try to run it on another computer I get the following error. Application generated an exception that could not be handled. Process id = 0xd18(3352) thread id = 0xcac(3244) When I push the cancel button in the error dialog box to debug I get Registered JIT debugger not available & ...Show All
Windows Forms How to add a new line inside a textfield...
Ok i'm trying to add a file list into a text field so i can cut and paste... I don't want the file list to be in one continues line, so I'm appending "\n" to the end... This works BUT I get the new line character displayed on my screen as well... this is my code foreach(object i in this.checkedListBox1.CheckedItems) { Ez ...Show All
Visual Basic KeyEvent Questions
I know how to get the key event of the application that I am working on, but how do I use the keyevent classes to capture general keystrokes For instance, if I want to mask a textbox to only allow numbers (I use VB.NET 2003), then I would monitor the keyevents for that specific textbox. What do I do if I want to mask a key or several keys for an entire program Would I have to put a mask everywhere or is there an easier way to do this. If you must know what this is for, then here is the skinny. My friend and I are what you would call pranksters. He just wrote this program and slipped it on my machine that made my mouse control go completel ...Show All
.NET Development SQLCommand.Parameters.Add
Was this removed in VS 2005 Beta 2 - SQLCommand.Parameters.Add(...) and it's overloads It was in 2003, but doesn't show up in 2005. Thanks Ryan That links only speaks of one particular overload. I am using the Add(SqlParameter) one with no warnings, however, no .Add method shows up in the IntelliSense help for me. ...Show All
Software Development for Windows Vista WinFX RTC December 2005 Not working with December Vista SDK
There's a problem with the WinFx RTC download for December 2005. The links on the page http://www.microsoft.com/downloads/details.aspx familyid=BD3BA2D5-6ADB-4FB2-A3AA-E16A9EA5603F&displaylang=en There's a link to download the entire WinFx RTC package instead of the "smart" installer. http://download.microsoft.com/download/9/4/9/949EEA41-364A-45DC-8F4E-47E7AC147D25/winfxrc.exe I checked the time/date stamp in the downloaded files from the WinFX RTC and the Dll's are all from 11/18/05. this is for the WinFX RTC that is linked on the downloads page indicating it was December 2005 WinFX RTC. This happens wi ...Show All
Visual C++ What happened to vector?
Something is wrong with the STL 'vector' header file in the 2005 Express installation. After installing beta 2, I can't compile any source files which #include<vector> any more. The vector file is now 59k as opposed to a very tiny 'vector' header in the VC++ 2003 Toolkit. Also, the VC++2005 vector file has all the code in it, while the vector file that works only has a few lines including some other headers. These problems just started with Beta 2. I get about nine syntax errors pointing me to various lines in vc++2005 'vector': ------ Build started: Project: test, Configuration: Debug Win32 ------ ...Show All
Smart Device Development SQL Server CE DB - Shared
I understand that SQL CE can only allow one application to connect to it at a time. If it is to be a shared db that I am to put on the hand held what is the recommended way to marshall access to the DB between the different applications Is there a global mutex in C#/PPC that can be used as a flag to indicate when it is in use (ie: updating etc) and cannot be connected to Thanks. There's a new class called SqlCeResultSet which allows for faster loading and retrieval and also support data binding. Licensing is the same as before. Note it does not work with NETCF V1. ...Show All
