ejgarci's Q&A profile
Visual C++ "Find in files" stops working for no apparent reason
Hi folks, The (heavily used) command "Find in files" from the Visual Studio 2005 IDE just stopped working for me for some reason. Attached below are the search parameters that should return most of my files: Find all "A", Subfolders, Find Results 1, "c:\", "*.*" No files were found to look in. Find was stopped in progress. Looking around a bit, I've noticed that this problem was also present in previous versions of the IDE (namely, .NET). The solutions mentioned for this problem didn't work (yes, I even tried the infamous <Ctrl>+<Scroll Lock> combo). Any ideas Cheers, Laurentiu ...Show All
.NET Development Converting streams
I have a Stream which is Stream stream = httpWebResponse.GetResponseStream(); I need to convert this System.IO.Stream into System.IO.MemoryStream. How can I do that with C# 2003 The data that a server returns is an image. I would do byte [] data = webClient.DownloadData(uri); but for certain reasons I have to use HttpWebRequest/Response. Thank you. You can't convert it from one to the other .. you would read data from that stream into a memory stream. Although I am curious why you need to read it into a memory stream as opposed to using the response stream directly I can write code such as .. public void DoSomething(Stream s) ...Show All
.NET Development 'END' ing a program throws up an exception
I'm converting an existing VB6 program to run under VB 2003.net. All is well until I hit an "END". At this point VB throws an exception as follows "Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, version=1.0.500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed." This only occurs when I am running the code on a mapped networked drive on our server. Can anybody please decifer the above spagetti and explain to me what it all means. I've done plenty of surfing looking for an answer, but have thrown up my hands in exasperation and posted this question. Can anybody recom ...Show All
Visual Basic Virtual Server Explorer
I am having issues trying to add a VirtualServer to the Servers menu under Server Explorer. I can remote desktop into the virtual server virtual machine instance just fine. Are there special steps you must take to include a virtual server instance in VisualStudio 2005 Server Explorer, or is this even possible ...Show All
Visual C++ using ATL macro to change LPSTR to LPCWSTR
Hello, I'm making a 3D game and realized I would have to face many problems and maybe trying to "reinvent the wheel" on my own, if I wanted to implement SETTINGS -(for graphics mode) in my game. So I am going for DXUT framework or engine by Dx team or what it is called to simplify my life. But I am facing some problems, because it is using UNICODE and I need to change LPSTR to LPCWSTR so I use macro A2W(lpstr) and include this for it #include <AtlBase.h> #include <AtlConv.h> But then I have a compile error: fatal error C1189:#error : Need to include strsafe.h after tchar.h bec ...Show All
Windows Forms Adding UserControl to Windows Forms Application
Hi - I have created a small Windows Forms Application test application. I want to add a UserControl to my project that is editable in the Designer. To do this I am right clicking on the project in the Solution Explorer, then selecting Add->AddClass. This brings up a dialog with a tree view with all the class types I can add. I select .Net from the tree control and then the UserControl Icon. When I click Open I recieve a MessageBox that says: "User Controls can only be added to DLLs". Is this true Is there a workaround to this, as I would rather not make a DLL if possible. Thanks in advance - Samy Just f ...Show All
Visual C# accessing variable of one window form to another
Hi, 1. I have defind one variable with some value to one window form and I want to access this variable to variable in another window form. 2. I have defined one dataset (bound with some database) into one function defined into one form. I want this dataset should be accessible with bound data from any point of the application (may be another form). Please assist me. Thank you I agree with WreckinCrew. Here is how I do it typically. Create a public static class called Global.cs or something. I typically have a file like this in a DataLayer project to keep things seperate but how you wa ...Show All
SQL Server Script Component in loop tries to evaluate connection
I have a script component which loads a file which is in a custom format. The script component is inside a For Each Loop Container and it uses a flat file connection manager. The loop sets the connection string for the connection manager. The problem I'm having is that the connection string needs to be set to something every time that I start the package but I don't know ahead of time what file there will be, so I get a System.IO.FileNotFoundException error on the script component. If I manually set the variable for the connection string and point it to a file that exists, then the package runs fine but at the end of the package the conne ...Show All
Visual Basic Could we please have a Visual Studio Installer... For VB
I like making programs and creating installers. The trouble is most installers cost lots of cash and the free ones aren't much good. It would be nice if there was a fully customisable installer creator. It could work similar to the publish feature included in BETA 2 and could give you the option to launch one or more of the executables or files on the installation complete screen. There is suggestion on the Microsoft Product Feedback Cente r that asks this very thing. If you want vote for it, visit: Better Setup and Deployment story for VS.NET setup projects ...Show All
Visual C++ Optimization problem
Our application crashes during execution a floating point instruction. It seems to be an incorrect optimization. When the method 'CLPController::StopPlaying' is called from the 'CLPController::SetLogTime', a floating point value is remaining on the top of the FPU stack: 00AC4575 call CLPController::StopPlaying (0AC3090h) 00AC457A fstp qword ptr [esi+24h] 'CLPController::StopPlaying' indirectly calls the ::MoveWindowW function which sometimes empties the FPU stack. It causes a crash at a next FPU instruction (in the another place) because the ' ...Show All
SQL Server about bcp
Hi all, I would like to know about bcp. The input file (in parameter) must to has \t to separate the columns Is there a way to choice the separator simbol for example the file: 1;Test1;active; 2;Test2;active; 3;Test3;inactive; Yes, there is a command-line parameter "-t" which can be used to specify a field terminator. See Books Online for more details on the command-line options of BCP. http://msdn2.microsoft.com/en-us/ms162802(SQL.90).aspx ...Show All
.NET Development Problem with XMLSerializer in .NET 2.0
We use the XMLSerializer to serialize a class hierarchy. This works fine in .NET 1.1 but in .NET 2.0 beta 2 I am getting the following error message: "If one class in the class hierarchy uses explicit sequencing feature (Order), then its base class and all derived classes have to do the same." This message is actually from the most inner exception. The 15 or so nested "outer" exceptions reported the following. "System.InvalidOperationException: There was an error reflecting type ' mytype ' This error occurs on the call XmlSerializer oSerializer = new XmlSerializer (oData.GetType()); where oData is object I am serializing. I ...Show All
Visual C# typedef in C#: Visible in separate projects
I saw that you could get around the absens of the C++ typedef feature by using: namespace NameSpaceCS { using Handle = System. Int64 ; or using Handle = System. Int64 ; namespace NameSpace CS { But this is only visible in one file. How do you make it visible in other projects. I have added the reference and the using NameSpace CS ; in my other project but it still seems to be out of scope. The methods in the other project I can use thogh. It's just the typedef replacement that's out of scope. Somebody suggested I should use a property which returns a member of a struct. ...Show All
.NET Development Creating our own datasource
Could We create a structure so that it could be binded as a datasource to control who supports databinding. If yes Could any body provide me a sample (with code) of creating our own datasource in C#.That is i don't wan't to bind to dataset ,xml etc I wan't to create my own datastructure.What I have to do. I suggest you read this 3 MSDN topics (inside "Windows Forms Data Binding") "Data Binding and Windows Forms" " Data Sources Supported by Windows Forms " "Interfaces Related to Data Binding " Sample in MSDN: "How to: Bind a Windows Forms Control to a Factory O ...Show All
Visual Studio Express Editions BAD INSTALLATION ERROR :( PLEASE HELP!!
Hi! I'm having an error with installing Visual C++ Express Edition. First I should probably tell the story. Ok, originally, I installed this program to my external hard drive, but today when I plugged it back in, the drive letter was different, so it wouldn't work anymore!! I went to add or remove programs, but of course that couldn't find the correct path anymore either. So I manually went into my ext. hard drive and deleted the folder Microsoft Visual Studio 8. Then I went to download a fresh copy of the installation program. It downloaded fine, but when I run it, it extracts all the files, and when it gets to "setup is loading instal ...Show All
