Valery Zharkov's Q&A profile
Visual C++ Can I use POSIX threads in a atl STA project
I have a library which uses pthreads inside of it. Can I use this library safely in a single threaded apartment project. If I can't what are my options . I want to use this library for building a com component. Thanks I don't know the implementation details or pthreads; but, there's no problem with multiple threads on an STA object; you just have to make sure you don't do anything with any of your STA object's members while running in one of those threads--all member access to your STA object should be done with the STA thread. ...Show All
Visual Studio 2008 (Pre-release) ASP.NET Client -WebReferences Changed The Interface
public interface IMyService { [OperationContract] double Add(double n1, double n2); } -> public void Add( double n1, bool n1Specified, double n2, bool n2Specified, out double AddResult, out bool AddResultSpecified ); I am receiving the same problem. On the same machine, I compile the "Getting Started" WCF sample solution through VS2005. I then use VS2003 to try and consume the web service through a VB.NET client I created. The signature below is what is created as viewed through object explorer in the client application. Public Sub Add(ByVal n1 As Double, ByVal n1Specified As Boolean, ByVal n2 As Double, ByVal n2Specified As Boolean, ByRef AddResult As Double, ByRef AddResultSpe ...Show All
Internet Explorer Development IE7 Crashes for Unknown Reasons
I have been getting IE7 crashes on a regular basis, on two different computers, after upgrading. Can't replicate the crashes, because they don't occur all the…but the info from the Event Viewer follows: On a P4–3.4E GHz computer with XP Pro & all current updates: “Faulting application iexplore.exe, version 7.0.5730.11, faulting module ntdll.dll, version 5.1.2600.2180, fault address 0x00018fea.” On Centrino 1.83 GHz Dell Inspiron6000 with XP Pro & all current updates: “Faulting application iexplore.exe, version 7.0.5730.11, faulting module unknown, version 0.0.0.0, fault address 0x61df7730.” Extremely annoying...so much so that I may go back to IE6. Anyone have any ideas ...Show All
Windows Search Technologies "Unable to display preview." on network share results
I'm using Desktop Search 3.0 RTW along with the UNC/FAT add-in, and I'm getting an "Unable to display preview" message on every result that's not on my local machine (e.g., my R: or Z: drive over the network). Is there a problem or am I doing something wrong Thanks, Tim Tim, Unfortunately, previews are not currently supported with the UNC/FAT protocol handler. We are working on fixing this in future releases of the add-in. Paul Nystrom - MSFT ...Show All
Visual Studio Express Editions Question about "sealed"
Hi all I have read the documentation (see below) but i'd like if anybody could explain better, in a practical context, the actual benefits of declaring a class "sealed". For example why it could be fine to prevent inheritance of a class thanks in advance for any help/info about the above! -- from MSDN documentation --- sealed (C# Reference) The sealed modifier can be applied to classes, instance methods and properties. A sealed class cannot be inherited. A sealed method overrides a method in a base class, but itself cannot be overridden further in any derived class. When applied to a method or property, the sealed modifier must always be used with override (C# Reference) . Use the seale ...Show All
Windows Live Developer Forums CrashAParty/StartAParty
I would like to see sources for the demo crash a part/start a party. I am close to moving to G API if documentation for VE keeps being that poor. Any chances for the spources to be loacted someplace as work in progress Ah, I've missed your posts Jeff! Yeah I bothered to even enter it into google and only got this post and some bartending site! But seriously unless it is a MSDN demo I don't think someone is going to simply give you there source code .....or else I'm taking my bat and ball and going home. Strange thread. John. ...Show All
Visual Basic any buddy have file splitter program coding
dear friends Any buddy have the program coding of file splitter in vb.net 2005. plz send me. thanks in advance Ravi its not an easy task and you would also have to do some research about it. you can read the file using the BinaryReader and read the amount you want, then right that amount to another file using BinaryWriter, and continuing on until no more data is left to be read from the original file. a simple search on google shows this first hit: http://www.codeproject.com/vb/net/file_split___merge_tool.asp ...Show All
Visual Basic need some help here plss!
I suck at programming and i have a few problems here. Hope some kind soul can save me Firrst, i have a textbox to allow users to input related hyperlinks. Therefore, users are to enter the links lik this in the textbox. http://www.yahoo.com,http://www.asp.net However, when some1 clicks on the link, it appears http://www.yahoo.com,http://www.asp.net in the address bar. Can some1 teach me how to seperate this 2 sites so that it appears http://www.yahoo.com or just http://www.asp.net in the address bar How to seperate them The text box is a single line text box. Secondly, the websites have to input with this format http://www.yahoo.com . can anyone tell me how to detect whether the user has input the website with the ...Show All
.NET Development Cannot get the simplest performance counter to work
Hi, I'm just trying to add some perf counters to my application and I have been unable to get them working. I wrote this test code to try it out and monitoring from perfmon never updates the value (it always appears as "---"). I'm running XP SP2 with .NET 2 and 3 installed. using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; namespace PerfCounterTest { class Program { private const string _categoryName = "My Category"; private const string _counterName = "My Counter"; static void Main(string[] args) { if (PerformanceCounterCategory.Exists(_categoryName)) { PerformanceCounterCategory.Delete(_categoryName); } //create performance counters Cou ...Show All
Smart Device Development Application loses focus when closing a Form - but only on one Form it happens...
Hi all, I have this strange problem/issue that I have had bothering me for a while now. I have an application where the users browses through Forms to perform various bits of functionality, and then closes the form to return back to the previous form (the Form from which it was openned), and the Focus is right back with the Form that openned the closed Form (if you know what I mean :)). Now this all works fine in my application apart from in one place, where when the called Form is closed, the calling form (or my Application even) doesn't get focus back until the 2nd tap on the application with the pen. The Windows start button and Input control on the MainMenu are focused and can be activated from the first click on them, but not my appli ...Show All
Internet Explorer Development Xaml in IE7 Addon Development
Is it possible to use Xaml in IE7 Addon Development (like XUL can be used in Firefox extension.) If it's possible, please give me a link where I can learn how to do with Xaml in IE7 Addon dev.. Thanks a lot. ...Show All
Windows Forms How do I create an object from a row in a DataGridView / BindingSource?
I would like to create an Object (say Client) from the currently selected row in a DataGridView. The DataGridView's DataSource is a BindingSource, for which the DataSource is a DataSet containing a single Table of Clients. I have been advised to use the BindingSource.Current property to get the selected item (or row), rather than the DataGridView. I have tried the following: DomainClient c_client = (DomainClient)c_bindingSource.Current; which results in an exception. How can I get around this Thanks in advance, JackStri. Remember that BindingSource , in your case, is binded to a DataSet . Therefore the current object would be a DataRow in the data set. You'll therefore need to conver the dat ...Show All
Visual C# WebCam Capturing
Hi All I need to Capture Webcam Images at regular intervals and save them to disc,i am developing a window based application using Visual studio 2003 and Dotnet Framework 1.1 , i really have no idea of how to do it, i welcome all with their valuable suggestions Thanks C# Webcam Capture: This will return a System.Drawing.Image every x milliseconds: http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp txtCodeId=1339&lngWId=10 Regards, Ashish ...Show All
Visual Studio Express Editions how to get hardware IDs of system
how to get Hardware ID,serial no,model no of pc Harddisk,Processor,motherboard etc.... you could use WMI for this approach. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=845223&SiteID=1 be sure to add a reference to System.Management and import the namespace. I would also suggest downloading this cool tool which allows you to go through the WMI engine and go to specific classes and get information you want and it also generates VB.NET/C# code for you: http://www.microsoft.com/downloads/details.aspx familyid=2CC30A64-EA15-4661-8DA4-55BBC145C30E&displaylang=en ...Show All
Visual C++ place for code
maybe this is a stupid question, but I have started microsoft visual C++ today (c++ itself also for the first time) and i dont know where to put the code. i'm making the program hello world, but it doesnt work it asks if i want to 'build' the programm and i dont know what it means. i named the program hello and i put the code in the place where it says: hello.cpp is this the right place if so, what am i doing wrong this is the code: // hello.cpp : Defines the entry point for the console application. // #include "stdafx.h" int _tmain( int argc, _TCHAR* argv[]) { return 0; } #include <iostream.h> int main() { cout << "Hello World!\n" ; return 0; } ...Show All
