Youenn Trebossen's Q&A profile
Visual Studio 2008 (Pre-release) Odd problem when passing an array using a callback
Is there any problem is attempting to have a callback method that has an array as argument public interface class ISomeCallback { [OperationContract(IsOneWay = true)] void OnSomeEvent(array<int>^ pNumbers); } I find that this works fine as long as the array is under 550 in length, but if the array is bigger, then the call never completes, it just hangs. Both server and client hang! Anything I am doing wrong ...Show All
Visual C++ How to read unicode character??
Hi all, Currently i am doing one project related to unicode file reading, showing the characters in the ListCtrl . I got my result applying CFile, API WideCharToMultibyte & the reverse one.Here I read BOM for each file(.txt),then got the bytes for respective characters. but i have some confusion regarding whether those functions work properly if the character is more than two bytes ,ofcourse it is going to surrogates.I just want to know is there any deficiency/limitation in those fuction If I use wistream is it possible I know its possible. But which is the better way.Tho ...Show All
Visual Basic System.InvalidOperationException: Mutex could not be created.
I have develpper edition of VS 2005 . I get System.InvalidOperationException: Mutex could not be created. error when I am trying to access a webservice from windows app. Both app and webservice are on same machine. Dose anyone have any idea how to solve this problem Thanks I think we're going to need to see some code. A mutex is a mutually exclusive semaphore. Someone was trying to protect something and could not create the mutex. If it's a system mutex, I might wonder about the privileges that the webservice is running with. ...Show All
Visual Basic Referencing the name of a runtime generated UserControl
Hi there, Well, I've been chasing my tail a bit with this one and I think I've confused myself enough. I'm working in VB 2005 Express. I made a custom UserControl to display and handle data from realtime sensors. Right now, I'm just dealing with one kind, but eventually there will be five or six different types with varying capabilities, but for the moment, I'm getting started with the easy one. The control works just fine if I place it at design time, but I need to be able to generate them programmatically at runtime and update them (and eventually, save the data, scan for changes, then act upon those changes, but "that's anot ...Show All
Visual Basic Please help me get started
I work in a Visitor Center that is looking to install a couple of touchscreen kiosks (computers) for the public to use. Since the estimated cost to develop a separate program for each computer is too high for us to afford my boss suggested I look into basic programming software and see if I could do it. I have never developed a program or taken anything more than the basic computer class in college. I talked to Microsoft support and they told me that I should have no problem doing what we want to do with Visual Basic.net 2003 and that I should be able to handle it. I installed it and looked at the manual that came wit ...Show All
Windows Forms Ambiguos error...
Hi all. I have very strange problem and make me crazy. I don't know what it is. This is the code: int id, n=0; this.treeView1.TopNode.Nodes.Clear(); for (int i = 0; i < ApplicationState.GroupCount; i++) { id = Convert.ToInt32(xml.xmlData[0].ChildNodes[1].ChildNodes .Attributes["GID"].Value); this.treeView1.TopNode.Nodes.Add(xml.xmlData[0].ChildNodes[1].ChildNodes .Attributes["GroupTitle"].Value); for (int j = 0; j < ApplicationState.ItemCount; j++) { if (id == Convert.ToInt32(xml.xmlData[0].ChildNodes[0].ChildNodes[j].Attributes["GroupID"].Value ...Show All
Visual Studio Team System Looking for MSDN Premium Professional Subscriptions in India
Hello everyone, we are a German company and going to start a software development project by the beginning of September 2006 in Pune, India.Therefore we are looking for 1,5 or 10 subscriptions of MSDN Premium Professional Subscriptions. Even though I really tried to get in contact with anybody in India who might be in charge of it, no one could help me. So I tried to get help from MS Germany, but they only gave me telephone numbers and contacts I already knew. Actually I am seeking for a list of trustworthy Microsoft resellers all over India or even better in Pune . I already sent an e-mail to the ms-fulfillment-centre and of course ...Show All
Windows Forms Need ADO.NET Guru... Binding a Service and Forms App to Common Data
I need a way for a continuously running, automated, custom code process to be able to bind to the same data as the windows forms app that can control the long running process. Here is the basic scenario: <HR> A couple of years ago the production management team of the company I work for asked if it would be possible for me to create some&nbs ...Show All
Visual Basic EventID ?? is now InstanceID
Guys, On VB 2005 microsoft had the wonderfull idea of change the Eventid for InstanceID. I'm trying of retrieve the eventid in my application but it come with a very long number in some cases. How can I retrieve the EventID that you can see in the Event Viewer instead of the InstanceID Is there a way I can convert the InstanceID to EventID Ejemple: Private Sub btnSee_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFind.Click ' Create an EventLog instance and assign its source. 'Dim myLog As New EventLog("myNewLog", ".", "MySource") Dim entry As EventLogEn ...Show All
Visual C++ Display an int in a MessageBox?
Hi, I'm new to C++, have started to use VC++ 2003 at work and dont know much about it because i have only used Java and VB before now. I cant use the debugger for reasons that arent relevant here but all i want to do is use a MessageBox to display an int! I cant seem to do this no matter what i try. I dont care if i have to use the AfxMessageBox function instead but please some one tell me how its done! I'll give you the example below int back_color = 2; how do i display that 2 or rather back_color in a messagebox thats all i am asking! Many thanks Will Yes, format is a me ...Show All
Visual FoxPro Vue File Format Structure Needed
Can anyone help me on where I can find information on the structure and format for the VFP Vue files that are created with the command: Create View MyView.Vue Please thanks, Terry VUE files have never been documented and have changed considerably over time. ...Show All
.NET Development .Net 2.0: How to handle XML data with RAD features the best way?
I am about to write a small application that will be distributed to a lot of machines. SQL Server 2005 Express or MS Access does not appear to me as attractive options since they both are very large softwarecomponents which will take up a lot of diskspace. I have been focusing on these two components because I would like to use the build-in RAD features in 2005 and thus I need a Data Source. But I have also though of using ADO.NET DataSet/DataTable XML as persistence since my application is by nature for a single user only single user. How do I handle this the best way Should I design the dataset in the dataset designer, load the da ...Show All
Visual Studio Team System Deleting a Team Project
Hi, is there any way to delete a Team Project created by me From Team Explorer exists the remove option but I couldn't find one to delete all the different parts of a Team Project (SCC, Project Portal, Work Items, etc). Is it possible Thanks a lot LucasC See Buck Hodges blog entry at http://blogs.msdn.com/buckh/archive/2005/01/24/359462.aspx . The post refers to the December CTP, but it works for Beta 2 as well. See the update at the end of the post for the path to DeleteTeamProject. ...Show All
Windows Forms Graphic forms instead of windows forms
Have you guys seen Windows Media Player 8.0 above They have a nice graphical interface instead of regular boxy windows forms. I want my application to be like that (I only have one form and would like this form to be stay on top of other applications) and have a graphical look instead of boxy windos forms.. Anyone has advise of doing that, I will& ...Show All
Visual Studio 2008 (Pre-release) Wrapping Label?
Anyone know how to make a Label that wraps across multiple lines in WPF I can't seem to find a property that makes this work. Thanks. Or better yet, if it makes sense in your object model, go ahead and expose properties like TextWrapping to the Label class itself. The template could pull those in to the inner AccessText. ...Show All
