linuxfreak's Q&A profile
SQL Server How to know the code in Query Analyser
My Program wants to know what is being edited in Query Analyser currently. How can I do that Thanks. I would not consider it nice for an application to snoop inside of another unless there is a system to addin that functionality. Why do you want to know what is beeing edited One approach if you want to get the edited text is to use the Process class to launch query analyzer editing a temporary file. You will then add a FileSys ...Show All
Visual Studio 2008 (Pre-release) Security options reduced when hosted in IIS?
When self-hosted, one can use ServiceSecuritySettings.SetUserNameAuthentication to specify a custom MembershipProvider or even custom UserNamePasswordTokenAuthenticator for validating users. Similarly, when self-hosted, one can use ServiceSecuritySettings.ThreadPrincipalMode with GenericThreadPrincipalMode to specify a custom RoleProvider or supply a custom ThreadPrincipalMode class. When hosted in IIS, however, these options don’t seem to be av ...Show All
.NET Development Cannot view XML input using XSL style sheet
Yeah! I've got VS 2005. So I built a new WebPage on a remote machine. It has only one 'form' or page i.e. "default.aspx" That page only has one button on it. Code behind changes the button's color. Publish site is successful. However, when trying to view the site from a browser, I get: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MFC and a Dialog frame showing the Direct X dispaly.
Using the App Wizard that comes with Direct X 9 and Visual Studio 6 (because that is what the app wizard was created for (I know i'm lazy)). I have started on a single document mfc application with a picture frame where the Direct X renderings are displayed place. I have now completed the majority of what will be shown in that window and wish to create other diologs also showing frames like this. That app wizards builds this funct ...Show All
Windows Forms TreeView/TreeNode Icons
Hello, I have previously used VCS Express Beta1 and moved my projects to Beta2. Small projects work well, but one - big - has a strange behaviour. In small projects the icons or bitmaps are displayed perfect, but in the big one I have white on white icons :-) The imagelist works fine in the IDE, shows selectedimageindex with an icon, when starting there are Icons in imagelist.... confused and hoping for help ;) TIA, Peter ...Show All
Visual Studio Express Editions .exe file to change screen resolution settings
Can VB Express Edition be used to develop an .exe file that, when run, will change screen resolution from one setting to another (e.g. 1024x768 to 1280X720) If so, what template would/should be used and where might I find more information on how to do it Any feedback would be appreciated. Thank you Here is the way i do it, works in 2005 [code] Private Declare Auto Function EnumDisplaySettings Lib "user32.dll" ...Show All
SQL Server How do I pass multiple paramters to reporting services?
I want to pass parameters from a web form to a reporting service report. I have 3 report parameters defined. Emplnbr, StartDate, EndDate. The spelling is exactly the same in the report parameters asn in this statement. This is my statement Response.Write("<script language = ""Javascript"">var win=window.open(""http://becsql/ReportServer %2fHuman+Services/Training%2fTrainingReport&rs:Command=Render&rc:Paramete ...Show All
Windows Forms Animated cursors from embedded resources
Hi! I know that the .NET Framework doesn't support animated cursors. However, i also know that it's possible doing that with the Win32 API (function LoadCursorFromFile from user32.dll ) . I have done that with success. The problem is that i want to get the animated cursor from the resources of my application. I have no problems getting other kind of embbeded resources (icons, images, etc) with the following method: System.Reflecti ...Show All
SQL Server Second instance of Reporting Service cannot get to web page
I am beginning to think I can't do anything right with Reporting Services. I was following Brian Welcker's web cast SS 2005 Reporting Services Management and Configuration. I have successfully created a second instance of RS (demo) and all is fine until I try to browse to the port 81 web site. I cannot see the web cast well enought to see what he changed in order to get to the demo site. http://localhost/reports get to the first instance of RS. ...Show All
Smart Device Development problem with pocket pc emulator on localhost in VS 2005
HI, I'm trying to develop a Mobile web application in Visual Studio 2005 (in Framework 1.1). I am trying to run it in Pocket PC 2003 Emulator. But when i press F5, i get an error saying that the application cannot open http://localhost/.../..aspx (I have added the emulator.exe file as default browser thru File->Browse With->Add..) Can anybody help me regarding this problem as to why i cannot rum my application on localhost/pock ...Show All
Smart Device Development problem with app installation
Hello ladies and gentlemen. I've encountered a problem that I have yet to get rid of. I downloaded the Windows Theme Switch onto my Desktop and naturally downloaded it to my SmartPhone 2002. I have been waiting patiently for 2 hours and the screen has not gone away and has not completed the installation onto my phone. The screen says as follows: "Download of Windows Theme Switch Today.CAB completed succesfully. Installation in progress...&q ...Show All
Visual C++ Should generate C4407 warning in VC++ 2005??
Consider the following code: #include <iostream> class CVA { public : }; class CVB : virtual public CVA { public : }; class CB0 { public : CB0() {} void TestFunc() { std::cout << _T( "In CB0::TestFunc" ) << std::endl; } }; class CB1 : public CB0 { public : CB1() {} void TestFunc() ...Show All
Visual C++ Possible Bug in Reference to Pointer to Const
This is with VS 2005 void F( const char *&pChr) { pChr = "Test" ; } int _tmain( int argc, _TCHAR* argv[]) { char *pChr1; const char *pChr2; F(pChr1); // Fails: cannot convert parameter 1 from 'char *' to 'const char *&' F(( const char *)pChr1); // Fails: cannot convert parameter 1 from 'const char *' to 'const char *&' F(pChr2); // Succeeds return 0; } ...Show All
Smart Device Development ConnMgrEnumDestinations trashing memory in WM5?
My app is built with Visual Studio 2005 targeting the PPC 2003 platform & using the 2003 SDK. It uses ConnMgrEnumDestinations to check for availability of various connection types. When this application is run on a WM5 emulator using a release build with the 'maximize speed' optimization turned on, it crashes on return of a function that does the following: int nIndex = 0 _CONNMGR_DESTINATION_INFO cmDestInfo = {0}; hr = ConnM ...Show All
.NET Development OnKeyPress
I have a form in which a user enters a number into the textbox and clicks the search button, and then the user gets results. How do i make it to where when the return key is pressed and the user is inside the texbox it does the same as clicking on the button. Thanks In ASP.NET 2.0 you can use the “default button” property of <form> or <asp:panel> control. If you are having issue with the lower version write script to captur ...Show All
