whiterabbit's Q&A profile
Visual C++ LINK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF
Hi. when I run Batch Build .... Deleting intermediate files and output files for project 'Sampler - Win32 Release'. Deleting intermediate files and output files for project 'Sampler - Win32 Debug'. --------------------Configuration: Sampler - Win32 Release-------------------- Compiling resources... Compiling... StdAfx.cpp Compiling... Sampler.cpp SamplerDlg.cpp DisplayDlg.cpp Generating Code... Linking... LINK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF Sampler.exe - 0 error(s), 1 warning(s) --------------------Configuration: Sampler - Win32 Debug-------------------- Compiling resources... Comp ...Show All
Visual Studio 2008 (Pre-release) Soliciting community feedback: ClickOnce and permission elevation prompts in the internet zone
In the CTP and Betas of .NET 2.0, any ClickOnce-deployed application that desired elevated permissions was only allowed to prompt if the application were Authenticode-signed. Were such an application not signed, the deployment would simply fail. Subsequently, with the RTM release of .NET 2.0, this decision was reversed. Now, any ClickOnce application deployed from the Internet zone can prompt for permission elevation. Ostensibly, this would enable hobbyists, community apps and open-source projects to be able to publish their applications without spending the time and resources on Authenticode-signing. Given that Clic ...Show All
Visual Studio Express Editions Evaluate Code Stored in String
How can I evaluate / execute code that I have stored in a string I have many textboxes named: tb1, tb2, tb3, etc. I want to run code like this: For i = 1 to 3 temp1 = "Me.tb" & i & ".Value" temp2 = [EVALUATE or EXECUTE](temp1) Next Any suggestions / helps Please also let me know which libraries need to be included. Any help is appreciated. Thank you! Take a look at the MSScript control. I would like to see exactly what you are trying to do. MSScript is quite powerful but it takes some learning. Its not hard, just takes a little practice. You need to make an interface of wh ...Show All
Visual Studio How to add an assembly reference to a web project?
I am trying to automatically add an assembly reference to “myassembly.dll” to user’s project from my Visual Studio addin. The addin setup program adds the necessary registry key in order to display “myassembly.dll” in Visual Studio’s “Add Reference” dialog box. After that in VS 2003 I could used the References property of VSProject interface to add this assembly to the user’s project as shown below. VSProject.References.Add(“myassembly.dll”); This works even in VS 2005 regular projects. But web projects do not support VSProject interface. Therefore I used the VSWebSite interface found in VsWebSite.Interop.dll. So now I have ...Show All
Visual C# How can I speed up this image processing routine?
This is a small filter to modify an image that is being loaded by some picture boxes. The filter works great except it takes about 20 seconds to run. How can I speed this up public void ThresholdFilter( int intMidValue) { filteredImage = ( Bitmap )originalImage.Clone(); Color pixel; int t; for ( int y = 0; y < filteredImage.Height; y++) { for ( int x = 0; x < filteredImage.Width; x++) { pixel = filteredImage.GetPixel(x, y); t = (pixel.R + pixel.G + pixel.B) / 3; if (t < intMidValue) t = 0; else t = 255; filteredImage.SetPixel(x, y, Color .FromArgb(t, t, t)); } } } ...Show All
Visual Studio Team System Team Test Load Agent - Installation issues
I am trying to install the Team Test Load Agent on my Laptop (config - WINXP-SP2, 512MB RAM), I have admin priveleges on the Laptop. The setup does the following actions before failing > Copies files into specified folder > enter my userid and password > enter valid controller machine name ERROR Message Pop up " Setup Encountered error Please refer setup log for more information" I find the following message in the setup log [10/05/05,10:52:44] Setup.exe: GetGlobalCustomProperty({3CFC9708-E1DF-4D5B-AFCF-A49B86D176AE}) [10/05/05,10:52:44] Visual Studio 2005 Team Test Load Agent Beta 2 (English): CRootComponent:: ...Show All
Windows Forms Creating a C# Chat Application...
I am wondering exactly how I would create a Chat based windows application using C#. Also if anyone could point me in the direction of any code samples or anything that would be very helpful. Thanks in advance. Well basically the coding side. I'm good at designing graphical interfaces, But coding is my problem area. Every user would get a copy of the message that say I was to type (if they were logged in - The send message button would be disabled if they were not logged in). You must login before you can send a message... ...Show All
.NET Development Performance test - Web Services vs. .NET Remoting
Against any sources I have found so far the Web Services with XML and SOAP seems to be a little faster than .NET Remoting with TcpChannel. Here is what I got: Iterations WS TcpRemoting 100 00:09:21.6504501 00:10:47.2276639 1000 01:32:33.1492575 01:47:14.6432660 In both cases I send a DataSet through the wire. The data set has all the fields from a SQL table and 5,000 records. ...Show All
Visual C++ _bstr_t question
How do I do case conversion for _bstr_t Are there any functions available I looked up MSDN, did not find much help there. Appreciate any help, S _bstr_t exists mainly to provide conversion between ANSI and Unicode strings. It doesn't do much else, you'd have to take the string in whatever format you want and put it into a string wrapper that does tolower, toupper, etc. From memory, std::string needs a function object to do this, but CString will do it. ...Show All
SQL Server The connection manager 'OLEDB' is not properly installed on this computer
Please help someone from MSFT! I've just finished installing the Sep CTP on my laptop. I previously had the April CTP and June CTP. I followed the instructions for removing a previous installation of SQL 2005. Now, when I try to create an SSIS package, I get a message that says: TITLE: Microsoft Visual Studio ------------------------------ The new connection manager could not be created. ------------------------------ ADDITIONAL INFORMATION: The connection manager 'OLEDB' is not properly installed on this computer. (Microsoft.DataTransformationServices.Design) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft ...Show All
.NET Development Message framing and SSLStream
A bit of background: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=142895&SiteID=1 and http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=120007&SiteID=1 Will using SSLStream (or NetworkStream) with TCPListener/TCPClient solve message framing problems I don't think using SSLStream will solve your message framing problems at all. The class just abstracts you away from the overhead of creating a secure connection. The class takes whatever data you write to it and encrypts it before it is sent on the wire. Just as with plain text TCP, the packets can still be broken up whe ...Show All
Visual C++ Why isn't this call working properly?
I'm building a project for myself really; however, this problem is sticking me in the side. Can anyone tell me why this particular problem isn't working #include "pl_en_stats.h" // in *.cpp file for icPlayerInformation_Data struct usage. // in *.h file for Class definition. class LoadGameData { private: char PlayerInformation; icPlayerInformation_Data* pl_statistics; public: LoadGameData(); bool load_SaveData_Open(); void load_SaveData_Variables( icPlayerInformation_Data &pl_Statistics ); bool load_SaveData_Close(); ~LoadGameData(); }; ==PathRemoved==(24) : error C2143: syntax error : missing ';' befor ...Show All
Visual Studio VS 2k5 Cleanup Errors
Hi, How can I remove the some VS tools from the Add/Remove window without the change/remove buttons . Any ideas please I have used all the available cleanup tools but I cannot seem to get rid of these tools. I have also removed the entries in the registry related to some of these tools. I cannot install SQL Server Express because of these uninstalled tools. I get error 1305 when I try installing the SQL Server express, even when running the computer in safe mode. Thanks try this: Run msiinv.exe. You can get a copy from the link below or the windows sdk: https://blogs.msdn.com/quanto/archi ...Show All
Visual Basic Add connection wizard fails with Access database
I have the RTM version installed. I am quite puzzled at this wizard. It works fine with SqlClient. But for Access databases, this wizard completely fails. In this wizard, I only have one option to do - setting the ConnectionString. I set it to Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\path\abc.mdb, which works fine in my code. But when I click OK, it complains: --------------------------- Microsoft Visual Studio --------------------------- Format of the initialization string does not conform to specification starting at index 0. --------------------------- OK --------------------------- And more, the Advanced button is dis ...Show All
Visual Basic Formatting numbers in a textbox or label in VB2005
Hi, I was wondering if someone could tell me how to format the input text in a textbox or a label, for instance, if the text is numeric, then how can I define how many decimal places it must show If the display text is 0.3 and I want it to be displayed as 0.30, how would I go about Any help would be dearly appreciated. Thank and regards, Arun To validate if the TextBox.Text is numeric, use, IsNumeric() function, and to get the length of the text, use TextBox.Text.Length ... Hope this helps :) ...Show All
