NewtoC's Q&A profile
SQL Server Pass through Authentication
We have Reporting Services 2000 standard edition installed and everything works fine. You can log in and run reports and the Reporting Services security rolls work. The problem is when a user goes to the url of reporting services web server it prompts them for a login. They enter their Windows domain login and they get in. Is there a way to configure Reporting Services to use the user's Windows Domain login credentials (pass through) and not prompt for them, similar to SharePoint. Here is our configuration: We have a NT Domain (not active directory) all servers and client machine’s are in the same domain. IIS for Reporting Services i ...Show All
Visual C++ crt deprecation
VS8 has these new defines. I#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1 #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT 1 #define _CRT_SECURE_NO_DEPRECATE If I use the last one, will the other 2 still work I.E. will they still generate code for sprintf_s, strcpy_s, etc (I like the last one because it gets rid of some warnings about gmtime, etc.) If you're careful enough, yes. If your code is not suitable for template overloading (eg. if you pass dynamically allocated buffers around, or it can't get the size of your arrays), then you will get the unsafe versions, and the compiler won ...Show All
.NET Development FileSystemWatcher and FileStream.Flush(); no notifications until Close().
I don't know if this is an OS limitation, a problem with the FileSystemWatcher, or just me. If I use the FileStream class to open a file, seek to a specific position, write some data, and flush the buffer, FileSystemWatcher is oblivious to the change until I call FileStream.Close! If I view the file attributes and contents after the flush and before the close I see that the last file write date/time has changed the the contents have changed. Same thing happens in Visual Studio if I load the file I'm writing to into Visual Studio: Visual Studio does not inform me the file has changed until FileStream.Close is called. I haven't tried usi ...Show All
SQL Server 0x80040e21 error running SQLCE 2.0 on Windows Mobile 5.0 device
I have an SDF using SQLCE 2.0. When I run the app on a Pocket PC device running Windows Mobile 5.0 I get 0x80004005 and 0x80040e21 errors. The same app executes fine on PPC 2003. The app is written in VC++ using and uses the SQLCE OLEDB Provider to access the SDF. It is complied with eVC 4.0 Any idea as to the problem Since it's compiled in eVC 4.0, it won't debug on MW 5.0. I'm in the process of "porting" to VS 2005 with is a chore in it's self. JEK ...Show All
Software Development for Windows Vista Problems playing back video using DirectShow in Full Screen!
I'm having a problem playing video back in full screen. The deal is that the interface for the game I'm working on tries to play a video in full screen when the user clicks on the credits button. Now the weird part is that the video ALWAYS plays reliably in windowed mode, but as soon as we test it in full screen mode, sometimes it works, other times it doesn't. Has anyone run into this problem and if so, has anyone figured a way around it I would be so appreciative of anyone who can help me! Thank you :) Which video renderer Are you using the default renderer in windowed mode and using IVideoWindow::put_F ...Show All
Windows Forms ContextMenuStrip MenuItem Click event isn't triggered?
I'm using the enclosed code to change the font of a Label. When right clicking the label shows a context menu. Only the click events isn't triggered when clicking a menu item. Nothing happens... I'm using VS2005 Beta 2. (And new to C#) --Goos van Beek. //************************** using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; namespace GB.VinChecker.Controls { class nwLabel : System.Windows.Forms.Label { protected override void OnMouseDown(System.Windows.Forms.MouseEventArgs e) { if (e.Button == MouseButtons.Right) & ...Show All
Visual Basic Save\Load values as text file
Hello In VB6, I was able to save and load values as text file, it saves them like this form: "V1","V2","V3" I was using this code: Dim A As String, B As String, Op Op = FreeFile A = "Value1": B = "Value2" Open "D:\File.txt" For Output As Op Write #Op, A, B Close Op How can I do it in VB2005 Thanks & Regards Just to be clear, as Reed Kimble says ("...you really don't want to use them...") this is NOT good code, even though it may function. ...Show All
SQL Server The e-mail address or SMTP server value is not valid.
I'm using the Service Monitoring Solution Accelerator to configure Notification Workflow. Everything works with the exception of e-mail delivery. E-mails are not sent; but events are logged. I've included the event as well as an excerpt from the appConfig.xml file. Event Type: Error Event Source: NotificationServices Event Category: None Event ID: 7301 Date: 3/1/2006 Time: 4:07:51 PM User: N/A Computer: Computer Description: <NotificationServicesEvent> <Description> The e-mail address or SMTP server value is not valid. </Description> <Context> <EventParameters> <Smtp server></Smtp server> <Mes ...Show All
Visual C++ How to convert string object to char array?
Hello, I am writing MFC program. There is a string object that needs to give its content as char [] array. Is there anyway to extract string object as char Array Thanks, vcboy Hi, if you're talking about the string from the STL then all you have to do is call the c_str() method that returns a pointer to the first char in the string: std::string str("test string"); char* s = str.c_str(); if you want to copy the string to a char [] then follow the same procedure: std::string str("test string"); char* s = new char[str.length]; strcpy(s, str.c_str()); ...Show All
Visual Basic Could not load file Interop.Access, Version 9.0.0.0
I built a Visual Studio (VB) app and created a setup program for it, again using the documented procedure for doing that with Visual Studio. I set up all of the dependencies and requirements, but when I load on to another computer system (windows XP) and try to run, I get the message "Could not load file Interop.Access, Version 9.0.0.0. As an aside, I had to manually load the .Net framework, even though I had it selected in my build routines. The same for the data access routines 2.8. Can anyone help Charlie It sounds as if you are making your own reference to the native Access DLL rather than using the PIA (Primary Interop ...Show All
Visual C++ Running a very simple Win32 app on a comp without VC++ 2005 Express
Hi! I have installed VC++ 2005 Express and the Platform SDK according to the instructions on MSDN: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx Compiling and running the following program on the dev computer works like a charm: http://www.winprog.org/tutorial/simple_window.html I then changed to release-mode, turned off debugging in the project properties and copied the .exe to another computer without VC++ 2005 Express on. I pretty much expected problems, so I wasn't very surprised when I got the error message saying that there was something wrong with the program configuration, like the one here: http://forums ...Show All
Visual Studio Express Editions Producing Report
Hello people I'm writing win app. I have to print "recipts" from my application - in other words: produce a report. However, in the express edition there are no reporting controls such as "crystal reports", "report document" etc. - which I used in the past in previous editions. What should I do One important thing: The report must be "Right to Left" aligned. I tried to play with a little bit of GDI+ with ReportDocument but with no success. Is there another solution which I didn't mention Many thanks. Have a look at the following post, http://forums.mi ...Show All
Visual Studio CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
I am trying to access a Crystal Report through an ASP.NET page. The access works just fine until the page is refreshed. Then I receive the following error: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed. I have tried the push and pull methods. I have read other posts that people getting this same error had success with datasets. I get the same error. I have checked permissions in SQL, IIS, and on the directory where the reports are. I'm sure this KB article applies to my problem: http://support.microsoft.com/default.aspx scid=kb;en-us;319264 but I could not get the resolution listed to wor ...Show All
Windows Forms FileDialog Help
Hi, How can I tell if the Cancel button of an OpenFileDialog has been clicked Seems as though it should be simple but I can't find reference to it anywhere. Cheers You can tell if the dialog was cancelled by checking the return value of OpenFileDialog.ShowDialog(). If it returns DialogResult.Cancel, then it was canceled. ...Show All
.NET Development Late Binding with Web Service?
Hi, I had a question about late binding with Web Service. Say that we have two web service functions in the server side. If one were to add one more web service function in the server side, does the client side always have to recompile(update web reference first) to see/use the new function Is there a way to do this without recompiling the project in the client side Thanks. Hello, Take a look at a tool called WebServiceStudio: http://www.gotdotnet.com/team/tools/web_svc/default.aspx There is a way to do it, but I think you may find that simply recompiling the client application is quicker. I guess it all depends on how oft ...Show All
