Anurag Srivastava's Q&A profile
.NET Development Creating 64-bit interop dlls from an ActiveX component
Hi there, I have generated a 64-bit version of an old ActiveX component. I now need to create the appropriate interop dlls to be able to use this component from some managed code. Here's what I've tried: > tlbimp myDll.ocx /out:myDllInterop.dll /machine:x64 This generates the error: TlbImp : error TI0000 : A single valid machine type compatible with the input type library must be specified From this error, it appears that I might not have a 64-bit activeX component. But when I check it using DependencyWalker , it says it IS a 64-bit dll. Is it possible that the typelib info inside the ocx is only 32-bits. If so, how can I verify that OleView doesn't give me enough info about the bit-ness of the tlb. And more importantly, how can I forc ...Show All
.NET Development How best to handle exceptions thrown from Asynchronous calls?
If you use a try/catch block to call a method asynchronously using BeginInvoke, then BeginInvoke returns very quickly and if you do not have much work to do, you will exit the try/catch block quickly. If, in the mean time, the called method on the worker thread throws an exception, it will not be caught by the calling method since it has already left the try/catch block and could even have returned altogether. What is the best way to handle exceptions thrown by asynchronous methods I see at least a couple of alternatives : 1) Be sure to catch all exceptions in the async. method and return either the exception object, or the exception message as a return value. If no exception is thrown, return null. Then harvest this result in th ...Show All
SharePoint Products and Technologies MOSS 3.0 vs. Sharepoint 2007
Can someone explain the major differences between the two Thanks First off, it's MOSS 2007 and WSS 3.0. SharePoint is often used to generically talk about both, but there is no such thing as SharePoint 2007. Here's a link to an Excel spreadsheet that does a feature-by-feature differentiation between the two technologies: http://download.microsoft.com/download/1/d/c/1dc632e8-71e1-466f-8a2f-c940f1438e0a/SharePointProductsComparison.xls ...Show All
.NET Development execute method at a specific time without using a Timer
Hello! I would like a method to be executed at a specific time. I wouldn't like to use a timer, since that time may change regularly and I wouldn't like to stop timer, change interval and start over so often. Is there any other standard way or trick to do it Hi papadi, I think is the only way, you will need always a timer to execute a method at certain time. Some post can tell you to use some win32 methods but they use timers internally. I think that is still elegant and will not hurt your performance. Anyway, if I found more information I will post it here, have a nice day! ...Show All
Visual Studio Team System Team Foundation Build Disk Space
I get a warning message when trying to install Team Foundation Build that states: The System Health Check has detected a problem that may cause Setup to fail. Description Available disk space does not meet recommendations Workaround / Remedy The available disk space in this computer does not meet the recommendations for installing this product. If you continue with installation, you may experience performance or scalability issues I realize that this is just a warning, but I have found no documentation to tell me what the disk space recommendations are. It is not in the install guide (to my knowledge). Can someone point me to the documentation for the recommended disk space for TFB Thanks - JFK ...Show All
Visual Studio 2008 (Pre-release) Any plans for 3D in WPF/E?
Hi, does anyone know if there are plans to support any 3D at all in the release of WPF/E I have read conflicting info about this. I know it is a cut down version of the WPF framework, but to sacrifice all 3D would be such a shame! Cheers "soon": http://blogs.msdn.com/jstegman/archive/2006/11/12/checking-in.aspx - Doug ...Show All
Visual Basic Help: WebBrowser Control with custom http headers
I use WebBrowser control in VB.NET windows application and have to customise the USER-AGENT for only control under the application itself (does not effect the original IE) sample: Original USER-AGENT : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) desired USER-AGENT : My Application Name (any version) I saw that it is an overloaded function to add a custom http header but it is available only for POST method It is very easy to do this with VB6 but .NET is different. Tried searching over the internet but found no answer yet. Just found the answer, very easy. Try using WebBrowser1.Navigate(URL as String, target as String, PostData as Byt ...Show All
Visual Studio Team System PVCS to TFS conversion?
Hello, we are currently working with the PVCS Version Manager and I want to migrate the data from our PVCS database into TFS because we want to use TFS in the near future. Is there any way to get the data to work in TFS Maybe with a third-party-tool I'm searching since 6 hours now and I can't find anything to do this. Regards Thomas The only conversion tool I know is VSSConverter, but, as it name says, it's intended to migrate from VSS It seems you will need to develop your own tool, using the Version Control object model, you can find more samples and documentation about it in the Visual Studio 2005 SDK, and also on the the Version Control forum ...Show All
Visual Studio 2008 (Pre-release) Xaml troubles
Great to be a part of the community. I'm having a lot of trouble with the implementation of xaml files with vs2005. I've installed everything neccesary to run winfx stuff (the winfx rtc, windows sdk, winfx ctp extensions dec 2005 and vs2005) successfully but am having difficulty getting a xaml file to run with presentationhost.exe. Here is an example. I write this and save as test.xaml... < xml version="1.0" standalone="yes" > <Window> <Button>Hello World</Button> </Window> and i get this... "An error has occurred in the application you were using" window + more details.. Startup URI: C:\Documents and Settings\CJ\Desktop\test.xaml Application Identity: file:///C ...Show All
Visual Studio Express Editions the break operation
hello there, am trying to figure out how can i operate my brake command inside a nested loop, but i like that the break would also affect the outer loop. her is some example of waht am asking: private void button1_Click( object sender, EventArgs e) { //loop india for ( int i = 0; i < 30; i++) { //loop juliet for ( int j = 0; j < 30; j++) { if (j == 3 & i == 0) { // how can it be applied both on juliet and india break ; } //MessageBox.Show("I is now equle " + i.ToString() + " J is now equle " + j.ToString()); } any advise would be apriciated. thanks in advance Bad news… break only breaks you out of the nearest loop and ...Show All
SQL Server How to accomplish this?
I'm a new user to SSIS and am trying to figure out something that I suspect may be very basic, but I'm having a hard time figuring it out. I have a single table of "events" generated by an application. I will get a daily feed of these events. Events may be like so: Event A Created Event A Modified Event A Property A Created Event B Created Event C Created Event B Property A Modified Event A Property B Created Event C Voided Event A Property A Closed Event A Closed In the end I want to create two tables like so: Table 1: Event A / Closed Event B / Modified (Event C is not here because it was voided, so any prior records of C are gone). Table 2: Event A / Property A / Closed Event A / Property B / Created (Only events with prope ...Show All
.NET Development Kerberos delegation problem
I have hunted through a serious number of blogs and web pages, but I just can't get delegation to work with our WCF application. To save some space, here is a link to the source code of a small test app that I am using: http://members.shaw.ca/murraypeterson/rcstest/ You can look through the source code to see the various settings I am using (NetTcpBinding, ClientCredentialType = TcpClientCredentialType.Windows, ProtectionLevel = System.Net.Security.ProtectionLevel.None, AllowedImpersonationLevel = TokenImpersonationLevel.Delegation, etc.). The scenario for testing is simple. Two machines, both members of the same domain (machine1 and machine2). Two users, both members of the domain (user1 and user2). On machine1, run the test ...Show All
Visual C# Installing a c# app with .net framework
Hi, I want to create a wizard that also installs the .net framework. Is this possible Thanks Thanks, I'll read these articles. (The second one is not working). I tried using file://dotnetfx.exe, but it is still trying to download the package thanks ...Show All
Silverlight (formerly WPF/E) "Unexpected call to method or property access." when changing an image's source property.
I'm trying to change an image's source property in JavaScript. With some images, this line of code: image["source"] = "newimagepath"; throws this error in JavaScript: "Unexpected call to method or property access." Has anyone else seen this error Thanks! Michael - Please send me an image that doesn't work when you can. thanks! -mark Program Manager Microsoft This post is provided "as-is" ...Show All
Visual Studio Replacing Project Name
I have a solution developed in Visual Basic with one Class Library and one website. I have the custom template created and it works fine. However, the website always comes across as 'Site' or whatever I put in the vstemplate for the project name. I am looking to have the developer choose one and have it update it. I was looking into WizardExtensions but have been unable to get it to work. Now I am looking into GAT. Can someone point me where I should look for this since I have not seen examples that create web sites as well and being that its in VB and not C# Thanks. Kosmo I found the following post in the forum: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=916721&SiteID=1 ...Show All
