Ta1os's Q&A profile
Visual Studio Express Editions is VS2005EE with .net able to do all you can do with mfc?
sorry for the questions - i dont know what i'm doing (other than having fun...) all the developers at work use mfc, they have no knowledge of .net programming. is mfc better than .net i.e. are their limitations to .net and should a newbie aspire to getting the paid-for version of visual studio instead.... Or is .net just a new way of doing this, and everything mfc can do can also be done in .net once one knows how to use it Mark Trying to make you feel better: MFC is far insuperior to the .NET class libraries. But you can do certain things in MFC that are easier to do in .NET. And the other way around. It is a completely different way of programming. Think of it this way: they'll be the dinosaurs ...Show All
SharePoint Products and Technologies Caching Search Results
Hi, Is it possible to cache search results in Moss 2007 i.e. if I apply output caching at a site collection level then Caching will be enabled on the Search Center subsite as well. Now,does this imply that the search results which are generated will also be cached If yes,How do we test the same Any help will be appreciated. Regards, Divya ...Show All
.NET Development HttpSessionState
me are new to ASP.Net and the Web Service have few very basic question about HttpSessionState why HttpSessionState default are disabled in WebService is it because of security problem can cause conflict or anything else me have to access the HttpSessionState by calling "Context.Session", why cant me access it just like ASPX pages by "Session" me remember that storing "object" in Session are not suggested in ASP. how about in ASP.Net is it will cause trouble if me stored "Object", "Struct" or "Class" in HttpSessionState thanks a lot why HttpSessionState default are disabled in WebService is it because of security problem can cause conflict or ...Show All
SQL Server get dimensions of a perspective in mdx
hi guys! i need to get a list of all dimensions used in a perspective so i wrote a little query that should show me the things i need: with member [Measures].[Rank] as '( Rank([Date].[Calendar].currentmember, set_rows) )' member [Measures].[DimensionName] as '( Dimensions([Measures].[Rank]-1).name )' member [Measures].[DimensionUniqueName] as '( Dimensions([Measures].[Rank]-1).uniquename )' member [Measures].[Levels] as '( Dimensions([Measures].[Rank]-1).levels.count )' set set_rows as '{ Head([Date].[Calendar].members, Dimensions.Count) }' select set_rows on rows, {[Measures].[Rank], [Measures].[DimensionName], [Measures].[Levels], [Measures].[DimensionUniqueName]} on columns from [Direct Sales] BUT the query returns me all dimensions of ...Show All
.NET Development Upload Data To HTTPS via Proxy problems
ok.. I've seen quite a few questions about this issue but no responses, so let me try again. I'm trying to upload some data via the request headers to a page on a secured site, the page is accessed through the office proxy. Through IE and the appropraite proxy settings I can browse to the page just fine. When I use a webclient to call downloaddata on the page I get the webexception "The underlying connection was closed: Unable to connect to the remote server." which has an inner IOexception of "The operation is not allowed on non-connected sockets." from what I could trace out of the headers I can see that IE sets this when requesting the page Proxy-Connection: Keep-Alive But when I call it th ...Show All
Visual C++ memory leak for socket program
I got memory leak after running a socket program. I checked for "new" and "delete" socket, they both seem fine. So I couldn't figure out what's wrong. Here are the messages after exiting the application: ...... 'ip.exe': Unloaded 'C:\WINDOWS\system32\iphlpapi.dll' Detected memory leaks! Dumping objects -> {269} normal block at 0x00B15870, 2401 bytes long. Data: <2.0.8 n > 32 2E 30 2E 38 00 6E 00 00 00 00 00 00 00 00 00 Object dump complete. The thread 'Win32 Thread' (0xc7c) has exited with code 0 (0x0). The program '[1372] ip.exe: Native' has exited with code 0 (0x0). If I run the certain function twice which creates the new socket then deleting it, memory leak will be detect ...Show All
Visual FoxPro Variable '_REPORTOUTPUT' is not found.
I have had a few users start complaining that they are getting the following error when running reports lately: Variable '_REPORTOUTPUT' is not found. I have verified that they have ReportOutput.App on their machines and the users have the proper access to it. I have also uninstalled and reinstalled the VFP9 SP1 redistributables including the report functions. I have also tried setting the _ReportOutput variable in the code before the reports run. Originally they were able to run reports with no problems and they say they haven't updated anything on their machines. Again, this is only happening to a few clients and not everyone. What am I missing Any help or suggestions anyone could provide would be appreciated. Thanks, Brian ...Show All
Visual Studio Team System Baseless Merge: Am I missing something?
Step 1: I create a branch from _Trunk called _Branch1 and check it in Step 2: I make a small change to a file in _Branch1 (changeset 10) and check it in Step 3: I create a branch from _Trunk called _Branch2 and check it in Now, I would like to merge the changes I had already performed on _Branch1 into _Branch2. Since they are not directly related, I know I must perform a baseless merge. I use this command: tf merge /version:C10~C10 /baseless "C:\TFS\Product\branches\_Branch1" "C:\TFS\Product\branches\_Branch2" /recursive The conflict dialog pops up with the file that I changed. Good. I click on "Resolve..." and the "resolve version conflict" dialog box shows up. Good. I choose t ...Show All
Visual Studio Tools for Office Context menu customisation for the outlook word editor
I am writing an add-in to Outlook 2007 using VSTO 2005 SE for which I need to add a context menu item that appears in a new mail inspector window when I right click over the body of the email. I was able to do the same back when winword.exe was run as the default editor in outlook 2003, but now it seems that the editor is run in-proc (I tried accessing the object model through the wordeditor object of the inpector but it looks like the object model and access to the corresponding commandbars object is blocked when the document is open as an email). The command bar needs to be added to the word-editor’s context menu and nowhere else in Outlook. Could anyone help me out on how this can be done or point me to some resource that’ll ...Show All
.NET Development Webservice or Class
Hi I am building a webapplication which will have a series of aspx pages for each of the functioanilty (Employee status, Employee Details, Company Details, payroll etc) I need to make a webservice to cater each of these functionailites, What should be the right approach to do this 1. should I create a .asmx file for each of the functionality that I want to provide OR 2. should I create a single .asmx file and also have classes in the same assembly so I will have a single webservice (.asmx) which will internally call these classes and return approriate data Please help!! well, it depends in what you want... sometimes you'd like to have it all separated in services..... However, it is more typical the # 2, and I r ...Show All
Visual Basic writing ANSII/ASCII characters using streams
Ok so I have some text boxes that have some text in them, I think I know how to convert them to ascii chars by converting them to uni bytes then to ansii/ascii bytes then to ansii char arrays but just in case I have it wrong, and I still am having issues writing them to a data/text file, how do I do this and write them to a file Try using a StreamWriter directly: Module Module1 Sub Main() Dim text As String = "blah" Dim Writer As New System.IO.StreamWriter( "D:\Temp\TempFile.txt" , False , System.Text.Encoding.ASCII) Writer.NewLine = vbLf Writer.WriteLine(text) Writer.Close() End Sub End Module Hope this helps, ...Show All
Visual C++ Windows Live Messenger requiring msvcr80.dll!
I'm using Windows XP Professional with Service Pack 2 (Swedish). Yes, vcredist will install msvcr80.dll and others of VC++ 2005. The location depends on your target OS. IIRC 2000 does not have WinSxs so it uses system32 instead. XP and 2003 use WinSxS. Release apps which have been built against the runtime of VC++ 2005 should have a manifest embedded which ensures that the correct version is found. I don't know if the messenger has that manifest embedded. I guess you might see some problems because of the messenger beta you installed. To see which version of msvcr80.dll is loaded you could use depends.exe which comes with VC++. Open the messenger exe with depends.exe and start it from within depends. You should see some output about dl ...Show All
Visual C++ New Class instance in newly created VIEW
Hi, I am using VC ++ 5.0 and working on Document/View architecture. I have declare one class instance in the private members list of My CDiagView (i.e. CFormView) class. e.g. //CDiagView.h Class CDiagView : public CFormView { private: MyClass *my_class; .......................................... ...................... } And in //CDiagView.cpp I have written following in the OnInitialUpdate() . my_class = new MyClass(); Now everytime I create new view, it will create new instance of MyClass but unfortunately it is replacing the old instance for previously created CFormView. Result of that when I call any method of MyClass then it is returning the value for ...Show All
Visual FoxPro Why I can not read all kind of registry?
I use the method GetRegKey, but with this, I can read only the registry that type is REG_SZ , but I need to read also the registry that type is REG_DWORD. With What I can obtain the value of registry whom type is REG_DWORD I have Windows XP, and use VFP9 Thank you. The WMI registry provider allows easy access to the registry type REG_DWORD (among others): nValue = 0 nHive = 0x80000002 && HKEY_LOCAL_MACHINE cKey = "ExampleKey" cName = "ValueName" oStdRegProv = getobject("winmgmts://./root/default:StdRegProv") nResult = oStdRegProv.GetDWORDValue(nHive, cKey, cName, @nValue) if nResult = 0 * Success return nValue else * Key / Value not found, acc ...Show All
SQL Server Bitwise & operator does not work
I would like to do something like a SELECT * FROM Files WHERE (Attributes & ) but the & operator isn't recognized. I looked at the documentation sample for it and in the sample the & operator isn't used in the WHERE clause so I thought that might be the reason but I still can't get the operator to work. So even the doc sample code for it doesn't work. I got this to work by rewriting the WHERE clause as (Attributes & = ). However, the VS query designer can't parse the bitwise operators. ...Show All
