Software Development Network Logo
  • .NET Development
  • Windows Forms
  • Visual C#
  • Microsoft ISV
  • Visual C++
  • Smart Devicet
  • IE Development
  • Windows Vista
  • SQL Server
  • Visual FoxPro
  • Visual Basic
  • Visual Studio
  • Audio and Video
  • SharePoint Products
  • VS Team System

Software Development Network >> fscarpa58's Q&A profile

fscarpa58

Member List

snegidhan
johndog
MarissaM
Vani M
Syed Mazhar Hasan
kcchesnut
ZAKSDG
MDesigner
dls104824
learningdba
markios
prasad_8104
NBaig
F. Gsell
NetPochi
PK_VBE05
CodeButcher
DanBaumbach
Deepa7476
alvi_du
Only Title

fscarpa58's Q&A profile

  • .NET Development SslStream AuthenticateAsClient and Async Read

    I have a NetworkStream setup using asynchronous reading. When I receive a specific packet I try and switch to SSL however when I call AuthenticateAsClient I get exceptions on EndRead stating that it can only be done on fully authenticated sockets or it receives some data and proceeds to pass it to my parsing class. I have also tried BeginAuthenticateAsClient with similar results. Is AuthenticateAsClient supposed to block until all authentication is done or would an asynchronous stream read interrupt that flow You must complete authentication prior to attempting to send/receive using an SSL Stream. This is well described in the MSDN docs for the class (pasted here): After creating an SslStream , the ser ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Heightmap Collision testing

    This question has been mocking me all day. I know it's doable, I have even used such a function somewhere long ago, and I have even found quotes of people saying "the calculation is easy and quick," however, I cannot find an example of heightmap collision testing. In other words, I want to be able to type MyLandscape.GetHeight(x,z) and it'll return the height (y) at that point. Now, this is not a simple, find the vertex at (x,z), and return the array value. There is distance between each vertex so, (x,z) wouldn't always be a vertex location. If I recall my calculus from ages ago, I think I remember there being a way to do this, but I don't remember. Answers or links would be deeply appreciated. ...Show All

  • Visual Basic Label Printer Problem

    Hi all, I have a label printer (Argox 1000-x) and i want to print some datas on it. And this printer is connected to my computer via the COM1 port. I can open/write COM1. And when i send some data to printer through COM1, Label Printer's Ready Signal Led will be ON/OFF. But it does not print anything or any label.. So, how can i solve this problem Regards.. Hi BrunoYu, Now i can write some data to label via the barcode label printer. And i don't get any errors. And label printer is used in a warehouse. But now the problem is i can't print the barcode and also i don't know how to do this. But i am searching it. If you show me the way, it will be nice :) Thanks for your reply.. Regards.. ...Show All

  • Visual Studio 2008 (Pre-release) animate listbox items to scroll

    how to animate listbox items to scroll and fade out If you bind the ListBox to an ObservableCollection<Whatever> then you can hook it's CollectionChanged event. In that event handler, if you notice that an item was added to the collection, call ScrollIntoView on the ListBox, passing in the new item. ...Show All

  • Windows Forms PropertyDescriptor, IsBrowsable and the PropertyGrid

    I have seen this question asked sporadically but have never seen any answers. The abstract PropertyDescriptor class defines an IsBrowsable property that would seemingly be called by the Windows Forms PropertyGrid control to determine whether to display the property or not. This seems reasonable because it is the pattern followed by other PropertyDescriptor properties like IsReadOnly etc. When IsBrowsable is overridden and breakpoints are set in the debugger however, I (and others) have discovered that IsBrowsable never gets called! How then shall we proxy the behavior of the BrowsableAttribute in a custom PropertyDescriptor Are there any workarounds the propertygrid uses a child class of the propertydescr ...Show All

  • Software Development for Windows Vista Context Menu - Workflow Designer Sample

    Hi. I am building on top of the Workflow Designer sample and am trying to add context menus to the activities on the design surface. I have been able to use ISelectionService to get close to the intended effect but did not find a way to determine when a right-click raises the event and when a left-click raises the event. I think that maybe ISelectionService is not the correct approach, but am having trouble figuring out where and how to create and bubble up the event. Thanks in advance! Look at the WorkflowDesignerMessageFilter class in the docs. The docs will point you to a sample in the SDK. This class has a method, OnShowContextMenu, that will signal you to show your context menu. You can then eithe ...Show All

  • SQL Server How to combine to boolean collumns ?

    Hi, my name is Wilhelm and I'm new to this forum. I having problems with a SQL SELECT statement. I'm trying to combine two boolean columns in ms sql server 2000. I tried this: SELECT (Bol1 OR Bol2) as Bol Anyone have any suggestion why this don't work I think i have done something similar in Orcale ones. ...Show All

  • Visual Studio Tools for Office VSTO 2005 standard form question + upgrade path VSTO v3

    Two questions: 1. Are Outlook addins built with VSTO 2005 only good with Outlook 2003. Since Outlook 2007 no longer uses toolbars & menubars, I assume the current VSTO 2005 code will have to be re-written for Ribbons Will the rest of the addin code that uses the Office 2003 PIA still continue to work with Outlook 2007 2. Can you work with standard Outlook forms (such as Contact form) in VSTO 2005 & be able to collect the data the user entered in order to persist it to a SQL db. What about customizing a standard Outlook form Possible in VSTO 2005 or will a custom winform need to be designed for it Seondly, I understand that this is something that will be possible with VSTO v3 & Outlook 2007. ...Show All

  • Visual Studio Tools for Office More Problems Completing MSDN Article Exercise for Customizing the Ribbon UI

    I have a problem completing a step in the MSDN article http://msdn2.microsoft.com/en-us/library/aa338202.aspx I am attempting to complete the exercise titled: "Using a shared Add-In to mofify the Ribbon UI" Thanks to help provided in this formum, I made it through adding references. I completed the part for creating the XML customization file. I am now in the part "To access tehe host application and work iwh the ribbon. I completed steps 1 through 7. Step 8 directs to add the following method to the class. When I copy this code in the clase the "Office.IRibbonControl" has a blue wavy underline. The associated message is Type "Office.IRibbonControl" is not defined. Thanks for any help you can ...Show All

  • SQL Server Service Broker Table Copy, file send?

    Hi There I have a table at my initiator, i have a copy of this table at my target, every morning i want to refresh the table at the target with the data from the initiator via service broker. What would be the best way to do this One major consideration would be that this table would be very large +- 1.6 million rows. I was thinking of exporting the table to file like a csv, compressing the file and then sending it via service broker. Then at the target i would uncompress and bulk copy the data into the table at the target. But can this be done How would one go about sending a file via service broker For example if i wanted to send a .csv or something via service broker how would i do it I know i can send binary dat ...Show All

  • SQL Server VERY large binary import/export headache

    Hi, I am currently importing (and exporting) binary flat files to and from Db fields using the TEXTPTR and UPDATETEXT (or READTEXT for export) functions. This allows me to fetch/send the data in manageable packet sizes without the need to load complete files into RAM first. Given that some files can be up to 1Gb in size I am keen to find out a new way of doing this since the announcement that TEXTPTR, READTEXT and UPDATETEXT are going to be removed from T-SQL. I had a quick foray into SSIS but couldn't find anything suitable which brings me back to T-SQL. If anyone knows a nice elegant way of doing this and is prepared to share, that would be grand. Thanks for your time, Paul Firstly, bear with me - I am a self-taught T-SQL user com ...Show All

  • SQL Server RS Configuration

    I'm working on a RS 2005 demonstration for my employer. On my equipment at home, the install goes just great. (winxp pro) On the server at work (that I have limited control over), I've managed most of the install successfully using the SQL 2005 Trial Edition, however, when using the RS Configuration Tool, the Web Services Identity won't allow me to enter anything, and when I try to connect to RS through the Management Studio, I get some warning saying that it recieved text/html when it was expecting text/xml or something like that, followed by a bunch of html. The main difference I can see in these installations is that the one that won't work is on Win2000 Server. So, I guess the one question that springs to mind is: is there something in ...Show All

  • Visual C# App.config in a C# Class Library

    App.config in a C# Class Library   I have a class library that has the following App.config file in it. ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- Problem is, that when I attempt to get the eventLogName key value my class object like this: ------------------------------------------------------------------------------- ConfigurationSettings.AppSettings["eventLogName"].ToString() ------------------------------------------------------------------------------- It doesn't see the appSettings as having any keys at all. I see the connectionStrings key, just not the appSettings key weird.... ...Show All

  • Visual Studio Express Editions Memory could not be "read"

    Ever since I install new updates after installing SP2 in my computer, I am getting this msg every time I get out from any program - The instruction at "0x041824e5" reference memory at "0x041b23e0". The menmory could not be "read". Could any one tell me waht to do to get rid of this anoying msg I don't have a clue what's causing the error but I have a few Ideas. 1. run some program to trigger the error, then goto control panel/administrative tools/event log and see if an event was triggered, if one was triggered examine the events properties. 2. Drop into dos and run any non resident command and see if it dumps an error. If it does, run any resident commnad and see if ...Show All

  • Audio and Video Development Dynamic change of media type in an existing topology

    As I wrote before, I'm implementing a MFT that among other things also performs scaling. SO, now, with the RC1 it looks like the format change passes correctly and I get renegotiation over the media type in the MFT. On the other hand, on the player it doesn't seems to affect. When I use IMFVideoDisplayControl::GetNativeVideoSize(), the size is the same as it was when I created the topology, though, since the type was changed in the MFT I see a small part of the scaled video on the same size of video window. Is it possible to change the size (the media type) of the renderer dynamically or should I recreate the topology and if I should, how (from the beginning ) Thanks!! Haim Hi Haim, It a ...Show All

©2008 Software Development Network