ltca's Q&A profile
Visual Studio Express Editions Visual Studio C++ Express Edition Hangs on Breakpoint!
Using: Visual C++ Express Editon (release version) on a new install of Windows XP Pro (so I don't have all the old beta .NET cruft from previous betas anywhere and never have on this install). I have one (unmanaged native C++) project in which any time I hit a breakpoint, rather than the IDE breaking as expected, it seems to go into a weird loop with the Solution Explorer window blinking (as if being constantly redrawn). The IDE is completely useless at this point until I go into the task manager and kill the VC IDE process. The same behavior occurs if, instead of placing a breakpoint with the IDE, I insert an _asm { int ...Show All
Windows Forms Defect in MainForm.MainForm_Load()
Just a note, I discovered a bug. If you have no projects, GetLookUpTables() is never called. As a result, if you goto ManageUsersForm, there's nothing in the list for users. :) I agree...it's the last line of the IF block for Project.Rows.Count > 0. ...Show All
Visual C# blocked zip files using zipsharp library
I had a program created in C#.net that zips a folder up for me automatically. We used the zipsharp library and it seems to work great execpt when you try to open it using windows to extract the files from the zip. If you try to extract the files you get a message saying "windows has blocked access to these files to protect your computer" and it tells you you can fix this by right clicking the zip file and go to properties and check the "unblock" box and all will be fixed. However there is no "unblock" option anywhere. I can use winzip or winrar to open and extract the file just fine but windows will not work. It seems to be somet ...Show All
Visual C++ Strange compiler error (C2664)
void f1(const int a[2][5][3]) { } void f2() { int b[2][5][3]; f1(b); } Causes the following error in VS6: C:\Roman\Projects\simulator\tmp\src1.cpp(6) : error C2664: 'f1' : cannot convert parameter 1 from 'int [2][5][3]' to 'const int [][5][3]' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast I note also that with only 2 or 1 dimension, the error does not appear. const_cast does not help as well (although I can't understand why should I have one). Any ideas Thanks, Roman. Try to leave the first dimension open. void f1(const ...Show All
Windows Forms Make Form Designer Generate Code in .cpp instead of .h?
I know that if I move the InitializeComponent method to the .cpp, Form Designer will generate all control init codes in the .cpp file, but it continues to generate all event codes in the .h file. Is there anyway have all generated code not be in the .h file It is considered good object-oriented programming practice to put only declarations in the .h files. Implementation code should go in the .cpp files. One reason for this is that presumably you could share your .h files with the public, but not share the implementation of the code contained in the .cpp files (which could be compile ...Show All
Visual Studio How to create a database project with template?
Is there any way to include a database project into solution template ***If you uderstand my poor english, thanks!*** You can simply use the template provided with VS at C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplatesCache\CSharp\Database\1033\SqlServerLib.zip as a starting point, and include that from a solution template. ...Show All
Visual C# drag & drop with mouse
Is it possible in a web application doing drag and drop using mouse What events have i to use For example from a menu, to a column of a datagrid... thx It is possible but it has to be coded on the client side using JavaScript, it can not be done in .NET. If you only support IE, you can do it with .htc file. ...Show All
Visual Studio Team System Override check in
How does an admin on team foundation server override a check in We have a developer who has left for a few days and he has files checked out We need to force a check in on those files If you want to undo someone else's check out through the SCE, you can't currently do that - you need to use "tf undo" from the command-line to do so. See this other thread that discusses how to do so: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=132995&SiteID=1 ...Show All
Windows Forms How to get a last row of datagrid in windows form without using dataset property and database coding
i have a problem in getting the last row of datagrid. I had two classess, the object of class2 has provided the reference of datagrid of class1. i don't want to use dataset because for that i again have to pass the data set to the object of class2. once we can pass but when the user has deleted the records the updated dataset content is not available to the class2. is any datagrid property help me in this context, because i didn't find any property or method that can help me out in this problem. Or should delegate help me in this matter. datagridview.Rows(datagridview.RowCount-1) should do the tric ...Show All
Visual Basic How to write smart application VB 2005/.NET
Hi, I am a new programmer in VB basically I want to write a database programm in visual basic 2005/.Net managed by a central server(the user will be login from remote locations) means user does not need to install a whole programm on its PC only some runtime files, is it possible in VB 2005/.NET. waiting for reply. Khawar Hi, I am a new programmer in VB 2005/.NET, I want to write a database programe in 2005/.NET like Oracle Forms 9i (which runs in browser and doesn't require installation on user's PC except Java Initiator or runtime) is it possible to write a programm in VB 2005/.NET which doesn't require full installation on user's PC ...Show All
Visual C# GetRows Method works in VB but not in C#
Can someone look at my code below and tell me what I'm doing wrong I converted VBScript to C# for ASP to ASP.NET migration. (I wasn't able to successfully convert legacy ADO to ADO.NET, so sticking with this) I'm getting an error at this line: cartValues = RS.GetRows(-1, null, null); Error Message: Exception Details: System.Runtime.InteropServices.COMException: Application uses a value of the wrong type for the current operation. C# Code: ADODB.ConnectionClass con; object[] arrVals; string sqlStr; ADODB.Recordset RS; object cartValues; int i = 0; con = new ADODB.ConnectionClass(); con.Open("Provider=SQLOLEDB;Data Sourc ...Show All
Visual Studio Express Editions Need a faster ArrayList save to text file
Hi I have used a variety of file write routines to try to find a quick way of saving an ArrayList of 240,000 strings. The best I have managed so far takes an awful long time, 20 minutes and hadn't finished when I stopped it. In all my attempts, I have to split off each word from the ArrayList and File.Append it to the file. I can see that is not an efficient way of doing it, but I can't find an alternative method. What is the best/fastest approach to write a large ArrayList to a text file I use a routine based around the following which reads the same file almost as fast as I can blink, but what would be the equivalent Write o ...Show All
Visual Studio Express Editions Copying a SQL Server Express database along with my Website
Hi! I used Visual Studio Express Web Developer to create a small website containing a SQL Server 2005 Express database. On my laptop, where I have everything installed, the website works just fine. When I tried using the Copy Website function in WD Express (to copy from my laptop to IIS running on my desktop PC), the website was copied successfully but the database didn't copy. So, on my desktop, the website fails when trying to access the (non-copied) database. I expected that when using the Copy Website function, it would copy the database, too. I can understand why that might not h ...Show All
Visual Studio Error in Sub Main()
My application is in VB.NET (upgraded from vb6.0 to VS 2003) and interacts with the data access layer to access database. I have put breakpoints in the application for debugging. One of the breakpoints is on 'Public Sub Main()' of the application which is the entry point for the application. When the application reaches this breakpoint, it displays an error message found in a method 'GetValue' in data access layer though this method is not yet called nor the class in which this method is found is instantiated. After adding a few display messages in the data access layer, I can see that the control is not coming dire ...Show All
Visual Studio Express Editions Simple .bat example
Can anyone point me to an example which will call an external .bat file (within the working directory) when a VB button is pressed I'm able to develop the GUI with a single button however I'm struggleing with declaring the .bat file within VB. Could also use an example which shows how a .dll file is declared. You could try this: 1.) Call the CreateProcess API routine to sysdevice:\windows\system32\cmd.exe 2.) Give it the path and file spec as an argument 3.) CreateProcess has a lot of arguments and flags. One of them is NoWindows 4.) If you desire, you can synchronize on t ...Show All
