Rui Mauricio's Q&A profile
Visual Studio 2008 (Pre-release) Inconsistencies between NorthwindLib and Wizard-Generated Version
I'm seeing unexpected inconsistencies between the schema files of NorthwindLib and those generated by the Entity Data Model Wizard from NorthwindCTP.mdf. SSDL: Wizard version has AssociationSets and Associations defined, NorthwindLib version doesn't. CSDL: Wizard version is missing CustomerId Property of Orders EntityType; NorthwindLib version's Entitites have NavigationRoleProperties - Wizard's doesn't. Multiplicity attribute format differs. Wizard version is missing ConcurrencyMode="fixed" Property attribute. MSL: Wizard version is missing CustomerID Property of Orders. All element tags and attribute names are qualified with p1; NorthwindLib attribute names are qualified with cdm (no big deal). Which is the current/ ...Show All
.NET Development UDP Sockets wont communicate across LAN
I created an app with udp sockets that communicatte on port 62626 & installed it on 2 hosts on my local network (192.168.2.2 & 192.168.2.3). While the code appears to work, it appears windows (XP) is dropping th packets rather than letting them cross the network. All firewalls have been turned off to no avail. Can anyone tell me what I need to do to allow the packets to pass Thanks If you have DontFragment == true and the size of the message is larger than your network frame size (most likely 1.5k) your packets will be dropped. Which address are you sending the message to ...Show All
Visual Studio Team System Can't find any tables for databinding?
Hi, I tried to add an Excel spread sheet as a data source for my webtest. I have created an excelsheet with highlighting the table and defined the name. Also, in the webtest editor, I have selected the Provider, Entered the path of the file, set the values to the extended properties. When I tried to perform the last step(mentioned below), I can't find any tables associated with it. "Choose the tables you would like to include for data binding then click Ok. " FYI: I have referred this link for this http://blogs.msdn.com/slumley/archive/2006/02/08/adding-different-types-of-data-sources-to-a-web-test.aspx Kindly suggest where I would have messed up. Thanks - Vijay. In the exte ...Show All
Visual Basic click event triggered by pressing enter
Can anyone tell me how to trigger my click event by pressing enter while button is in focus. if the button has focus and enter is pushed the click event should automatically be triggered, If its not maybe you have a keydown event stopping it from occuring but from memory the enter overrides the mousedown event and click should still be triggered. Andrew ...Show All
Visual C++ Strange Compiler Error!!!!!!!!
Hello, I have recently begun programming in DirectX. I am compiling a single file(.cpp), that requires nothing but a link to DirectX in Visual Studio 2005 Professional (Which I own). I have linked everything to the DirectX SDK files, but I receive the following errors. error C2065: 'index' : undeclared identifier error C2228: left of '.x' must have class/struct/union error C2228: left of '.y' must have class/struct/union These seem familiar with "C" style errors, but I'm using C++. I might have the compiler settings wrong, so that it could think that it was C, not C++, as .x, and .y is straight C++ so somethign is wrong here, there is nothing wrong with the code, as it is from a book and have given it to other ...Show All
Windows Forms Override of WebBrowserSite IDocHostUIHandler using WebBrowser.CreateWebBrowserSiteBase doesn't work
According to http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.createwebbrowsersitebase.aspx I should be able to customize the behavior of the System.Windows.Forms.WebBrowser control as follows: "To use this feature, implement classes that inherit from the WebBrowser and WebBrowser.WebBrowserSite classes. The unmanaged WebBrowser ActiveX control uses the protected CreateWebBrowserSiteBase method to retrieve extensibility interfaces implemented by the WebBrowser.WebBrowserSite class. Override the CreateWebBrowserSiteBase method to return an instance of your own class that inherits from the WebBrowser.WebBrowserSite class. The WebBrowser.WebBrowserSite class provides default implementations of the OLE IDoc ...Show All
Software Development for Windows Vista how to use Pointers with complex datatype(real,imag) in c#.net
Hi Actually am using (Complex **c) and (double *x, double *y) in c#.net am getting error- Pointers and fixed size buffers may only be used in an unsafe context . What do u mean bythis, i don't have any idea..actually my idea is to implement fourier transforms on a two dimensional complex array, what do u mean by Complex **c, i have no idea, is it double pointer plz help me out asap. It means you have to wrap the code in an unsafe {} block (or mark the entire method or class as unsafe) and compile with the /unsafe option. That's required to use pointers in C#. But I don't see why you need that here. I would start implementing it in "safe" code and only explore the unsafe option if it turns out later that it might gi ...Show All
Visual Basic How to get html string from a website ????
Hi, i'm trying load html content in my application and it works, the problem is the first time it is called, the aplication stops for a few seconds. i'm actualy using this code: Private wc As New WebClient Dim uri As New Uri(strEnderessoP) HTML = wc.DownloadString(uri) how can i optimize this process or what classes should i use You might try using System.Net.HttpWebRequest and HttpWebResponse objects. These are pretty fast. As spotty noted, the initial call may take a little longer due to some behind-the-scenes work, but the following code pulls msn.com (on a T1 connection) in .6-.8 seconds the first time and .3 to .4 thereafter (on average). Dim start As DateTime Privat ...Show All
Visual Studio Express Editions VB Express connecting to SQL database
Can anyone tell me whether its possible to connect Visual Studio Express Edition to a SQL server database not stored on the local host. I rent some SQL space on the net but I only seem to be able to connect to a locally stored database in vb express. Can anyone help me out Thanks.. Hi Yes this is possible. You need to define a connection string to the remote database: For example, the following connection string will connect me to a remote server running SQL Express cnn1 = New SqlConnection( "data source=10.100.25.231\sqlexpress;Integrated Security=true;Initial Catalog=SSOP" ) 10.100.25.231 = IP address of Server. Computer name could be used \sqlexpress = instance of sql Integegrated Security = Windo ...Show All
SQL Server Merge replication - examples for custom conflict resolvers?
I have gone through BOL and various online resources including this one and I can't find any examples on how to use custom conflict resolvers to generate a result row which is a combination of the rows to be merged. BOL says it can be done, but suitable examples are missing. I have found various posts requesting examples from up to a year ago, but can see no replies with relevant information In particular I would like to see examples of 1) A stored procedure based custom conflict resolver 2) A business logic handler written in VB .Net Here's hoping aero1 You might want to look at the additive conflict resolver. This will do something like concatenate or add the two values together. You ca ...Show All
SQL Server generate sp using wizards - have problem
When I change some tables dbowner (design table > table and index properties > owner) I can’t generate sp using wizards (tools > wizards > database > create stored procedures wizards). What is the problem (User dbo haven’t any problem) I am using sql server 2000. Manually I can write sp using my table Eg : select EmpNo, EmpName from tharindu.emp (0 errors) Sp name: tharindu.insertEmp_sp (after exec 0 errors (normal insert update sp)) My problem is I can’t create sp (insert record sp) using wizards. ...Show All
Windows Forms datagridview picture column - can I have a cell without a picture?
Hi I have a datagridview control with three columns. One of the columns is a picture column which is bound to an imagelist. What I'd like to be able to do in some cases is show no image at all in this cell. I can't find a property of the image list to display 'none'. Is it possible to do what I'm after Cheers, Mike ...Show All
Internet Explorer Development C# IE toolbar: how to use ShowBrowserBar to make the toolbar initially visible?
Hi, As I'm programming in C#, I'm using the DeskBand object http://www.codeproject.com/csharp/dotnetbandobjects.asp , rather than the MSDN .net kbbar sample which is written in managed C++. I would like to make the toolbar visible after its installation. Do you know a way to do this I tried to use code like this: Object oShow = true; Object dummy = false; Object vGuid = t.GUID.ToString("B"); // or this.GetType().GUID... Explorer.ShowBrowserBar( ref vGuid, ref oShow, ref dummy); but the problem is: where do I put this code ! If I put it in the SetSite method, it is called when the toolbar is displayed, so too late! Ideally, I would have liked to make it visible in the Register method, but unfortunately, the Explorer is not ...Show All
Visual Studio 2008 (Pre-release) September CTP dead link?
Hi I've just tried downloading the September Interactive Designer, through the link: http://www.microsoft.com/downloads/details.aspx FamilyId=EBF7A3F3-4B55-4C2C-A43A-B977446A131A&displaylang=en But after clicking Validate it just goes to a dead link. It does this with teh Graphic Designer link also,using different browsers, and even on different computers. I've tried enabling all cookies, but still no success. Ben I seem to have the same problem. The Microsoft Passport Network is unavailable from this site for one of the following reasons: This site may be experiencing a problem. The site may not be a member of the Passport Network. ...Show All
Commerce Server getting more info from purchase orders
I have used the example and retrieved the purchases and they contain things like OrderGroupId, SoldToId, SoldToAddressId, total, etc. I would like to get the actual address of who it was sold to, the contents of each line item, and the credit card information (type, number etc). It seems that with the ordergroupid, and the addressid I should be able to grab other types of information, and I can see it in the DB, but how do I grab the data through the API thanks! Thank you, that does help a grea deal...but it leads into another question. I see the Payments.CreditCardPayment table has a field called CreditCardNumber, but it leaves it blank, where can I grab the credit card number from thanks ...Show All
