pmpmpm's Q&A profile
Visual C# WH_MOUSE_LL Abilities
Is there a way I can use the LL mouse hook to capture other information besides which button was clicked For example, these are the events I'm wanting to watch for: Window State Change (Minimize, Restore, etc.) Which window control was clicked (Minbutton, Maxbutton, etc.) System Menu opened I know I can use the LL hook to find out which button was clicked and where the mouse is and such, but I'm having some trouble with the above information. Any help on this is very appreciated. --W form.windowstate maybe :) http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.ad ...Show All
SQL Server Configuring SQL Express -- getting login failed exception
I have a machine with Windows XP Pro w/SP 2, IIS, SQL Server Express and Visual Studio 2005 installed. When I attempt to open a database from an ASPX page, I'm getting an exception with the message: "Cannot open database "Tasks" requested by the login. The login failed. Login failed for user 'MYDEV\ASPNET'." I've searched the web and found a number of pages that talk about the "Login failed for MACHINE\ASPNET" issue, but I didn't find any with a solution. For your information (in case it makes any difference), the computer is connected to a domain. And the authentication methods for the virtual directory ...Show All
SQL Server Data Source passwords in Config Files
Anybody find a sound approach to being able to store DataSource connection information in a configuration and be able to access a Data Source that requires a password for login Storing it as a configuraiton in the DB is not an option, as you require the pw to access the DB that would store it. Can security be applied to an environment variable Registry Anyone successfully use the registry to store configuration values Here is an edited copy of our config file. Everything beginning with Zz is something that I edited before posting (along with the nifty DEADBEEF guid). Also I added the carriage returns ...Show All
SQL Server Is Reporting Services 2005 compatible with Visual Studio 2003?
Hi!, Im a C# developer. I'm working in an web application that is running with Sql Server 2000, Reporting Services 2000 and Visual Studio 2003. (we have some integrated reports insight the application to wich you can see clicking a link) We now need to use the Report Builder wich is a new feature of Reporting Services 2005, but before migrating Sql 2000 to Sql 2005, I want to ask if anobody knows if my application will run with *SQL 2005 *Reporting Services 2005 *and VISUAL STUDIO 2003(I don't have enough time to migrate the code now). Really Thank You!!!!! ...Show All
Visual C++ how to get errors for nonstandard ISO c++?
As I understand it, "for each" (as opposed to for_each() from STL) is not allowed in standard ISO C++, it's part of the new C++/CLI standard instead. So if I take the program below, it doesn't compile in Cormeau's compiler. However, it compiles in VC2005 even if I use /Za and do not use /clr. My question is, how can I prevent the compiler allowing new constructs like this My friend's compiler doesn't compile them! What switch am I missing to get regular standard C++ cl /EHsc /MDd /Za /W4 /c /Zi /TP .\scratch.cpp #include <list> #include <string> int main () { s td::list< int > foo; ...Show All
Windows Forms ??? How to set a default image viewer
I've got a main menu with an item called "Set Default Viewer"... How do I go about giving the user a form to 1. Browse and Select a Default ImgVwr program and 2. Have the Windows Program remeber this default vwr even when program is closed and reopened. Any help or Articles on this would be HIGHLY appreciated. Back in& ...Show All
Visual C# Searching a byte array for a pattern of bytes
I am reading a binary file into a one dimensional byte array. Now I need to search that array for a pattern of bytes. In other words, this is the equivilent of String.IndexOf() I want to search the binary array and return the index of the subvalue that I searched for. For whatever reason, I'm having trouble wrapping my head around this. Can anyone give me an example of how to achieve this "the equivilent of String.IndexOf()" A different (simpler) approach to get what you want is to convert the byte arrays to strings, then use the string.IndexOf method to do all the hard work. Care must be taken to ensure that the ...Show All
Visual Studio Tools for Office Making help files
Hi all, I'm looking for good way of arranging information at work. I think to do that like all the help of any application. Is there any components that use the office softwares for arranging files like the help system of any software. I want to make like a library. Regards... I think the exe file name changed to Htmlhelp.exe. Try downloading it from http://msdn.microsoft.com/library/default.asp url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp Go to http://msdn.microsoft.com/library/default.asp url=/library/en-us/htmlhelp/html/hworiHTMLHelpStartPage.asp to get to the top of the H ...Show All
Visual C# Read multiple text files
I have an app that reads from one to 15 text files and appends the records into one text file. I've put a ListBox on the form thinking I could step thru the list and process the files but I am not sure how to proceed. As it stands now, the app reads the first file and stops and I am not sure how to proceed. Basically, I want the app to read all of the files automatically after the user clicks on the "Process Files" button. Originally, the user would have to manually select a file to process and then click on the button to start a read operation. This would sometimes cause confusion because the files are rather large (45 to 50,0 ...Show All
.NET Development Cryptic debugger message
Hi, I have written a small application that uses interop with kernel32.dll for communication with the serial port. I have having a rather puzzling problem. Whenever the application runs I get then following messages in the debug output window. The application invariably compiles sucessfully however intermittantly totally freezes (in a release build this freeze is replaced with a silent crash). "Managed Debugging Assistant 'InvalidOverlappedToPinvoke' has detected a problem in '<long path here> bin\Debug\MTKCOM.exe'. "Additional Information: An overlapped pointer (0x0575F440) that was not allocated on the GC heap was passed via Pinvo ...Show All
SQL Server Start SQL server 2005 CTP
Hi I need an answer to this: I just downloaded and installed SQL server 2005 CTP. When I start the MS SQL server database Engine it returns this error: TITLE: Surface Area Configuration for Services and Connections - localhost An Error occurred while performing this operation - (SQLSAC) Program Location: at Microsoft.SqlSac.MainPanel.UserControlService.ActOnService(ServiceAction action) Can you please tell me how to fix this Poek Hi, what does the Event log tell you about the service start HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual C# Threaded Controls
I'm a little confused on how to show a progressBar with style continious on a seperate thread. Do I need to create the progressBar at runtime...or can I pop one on the form and just invoke it Style Continious can just be set in properties...with nothing really to do in the threadproc...know what I mean My form is also getting very "crowded"....mucho hidden panels groupbox, etc. Rather create at runtime and just bringtofront....let it run...and then abort when finished. TIA You can add the control dynamically, at runtime. See "To add a control to a form programmatically" in this doc . You'll still need ...Show All
Windows Forms Opacity and Transparancy...
Hi I'm workin on a Splash screen (Yet another one.. :) )... and the idea is as follows. 1. When starting its completly transparant.... nothing is seen on the screen.. 2. It shall fade up until completly "solid" (sorry about the language) 3. After a period it shall fade down until inviseble and then closed. This sequence is handled by a Timer and Opacity property.... During 2 (Splash is visible) the Splash window displays a bitmap as a background image. How can I make parts of this bitmap transparant... I've tried to use the "TransparencyKey" but i only works as long as I not changes the Opacity property from its default value (1 ...Show All
Visual Studio Express Editions Registering Express Edition on 2 Computers
Hi. I installed the Express Editions at work. I then went to each product's Help menu, and clicked the "Register Product..." item. I logged in with my Passport, verified my information, and received a Product Key that I pasted into the Registration Form. Sometime later, I installed the Express Editions on my PC at home. I also went to each product's Help menu and clicked the "Register Product..." item. From home, I logged in with my Passport, but instead of being taken to a Product Key that I could enter on the Registration Form, I was taken directly to the page that thanks everyone for registering. I am NOT using the ...Show All
.NET Development Pre .Net 2.0 Installation Question
Is there any pre-installation pre requisites for .Net 2.0. To quote the 2.0 Framework (x86) Redistributable requirements: Required Software: o Windows Installer 3.0 (except for Windows 98/ME, which require Windows Installer 2.0 or later). Windows Installer 3.1 or later is recommended. o IE 5.01 or later : You must also be running Microsoft Internet Explorer 5.01 or later for all installations of the .NET Framework. ...Show All
