Software Development Network Logo
  • Visual J#
  • SQL Server
  • Microsoft ISV
  • Windows Forms
  • Visual Basic
  • Windows Vista
  • Architecture
  • Game Technologies
  • Visual C++
  • VS Express Editions
  • Windows Live
  • Visual Studio
  • Visual FoxPro
  • Visual C#
  • Smart Device

Software Development Network >> Marco cattel's Q&A profile

Marco cattel

Member List

Realgar
shy_man
Thierry Tuo
Svenson21
Ken Dopierala Jr.
TheSponge
Alexander M.
Igor Bustiuc
ANSHUL VIJH
gnikolaev
Tiendq
Gary M.
Pepe Ballaga
darksunz
smitten94
Arobind
Niels R.
Stahn
dbKemp
Miles Cohen
Only Title

Marco cattel's Q&A profile

  • .NET Development WebRequestMethods.Ftp ; Pickup where it left off ?

    I have gotten WebRequestMethods.Ftp to work fine. However, on occasion it will time out, or fail for various reasons. The files we are moving (and the speed we are going at), it can take up to an hour to move one file (Every night). Is there an example or method to use to allow my code (via the WebRequestMethods.Ftp), to resume the transfer at the point it left off. Similar to a lot of the dedicated FTP clients out there. Earl, you can use the FtpWebRequest.ContentOffset property to indicate where to restart the download. If you set the offset, a REST command will be automatically sent t ...Show All

  • .NET Development convert COM components to Web Services

    Hi all, hope u don't mind an novice question. I am thinking abut writing a tool for converting existing COM components to webservices. (for my final year project) I have boned up on COM and Web Service theory and decided to the project in C#. Now suddenly (for me) i hear this stuff about COM+ components and them being "serviced" etc , basically that they can automatically be configured as web services! I am afraid this COM+ stuff is going over my head (i haven't got much exposure to things starting with "Enterprise ..") , can anyone please clerify my doubts about the following. 1. Is COM+ a w ...Show All

  • .NET Development SQL in Visual Studio 2005

    I am using Visual Studio 2005 Express Edition. I have a windows form that gets info from a database. And outputs. I want to make a search capability that a user can input in a text box and the SQL query checks the database for the right row in the database and output the results chosen. In this case, docName and docLocation on my form. My SQL query for the search is not working properly. SQL statement: SELECT ID, docName, docLocation, indexDate, indexAddress, textSearch FROM tblDocInfo WHERE (textSearch LIKE '%" & TextBox1.Text & "%') When you say it isn't work ...Show All

  • Visual C++ Migration from VC 6.0 to VC 7.1

    I am porting from VC 6.0 to VC.NET 2003 and I am getting the following issue:- error C2143: syntax error : missing '}' before 'constant'. Plus any document or help on migration from VC 6.0 to VC 7.1 Best Regards, Just another try. So you include MSXML4 with an import. The ShObjIdl.h needs the DOm pointer definition. So using namespace MSXML2 will over this definition for the heaer file. Try to place: #import "msxml4.dll" using namespace MSXML2 ;  in front of the #include of ShObjIdl.h Or use #import with the no_namespace option. ...Show All

  • .NET Development How can I query the node in XML using XQuery?

      1. I store the xml info below in the XML field Demographics in SQL 2005, I hope to query all the node info with XQuery. The result just like <Folder Name="Root" Id="a6dce8fe-749c-4e38-ab2f-3d03d9711b3d">   <Folder Name="Card" Id="b8dcf8fe-749c-4e38-ab2f-6d03d9711b8j">   </Folder> </Folder> but I can't get the correct result using select Demographics.query('/Folder') from store   2. Furthermore, How can I query the Name attribute of the Folder node by ID of Folder using XQuery, If so, I can get the Name (such as "Root") after I know the ID "a6dce8fe-749c-4e38-ab2f-3d03d9711b3d"   3. Can ...Show All

  • Visual C++ Thread Termination

    Is there any way to easily instruct windows to wait for a given thread to complete upon exit of the process in which it was created, other than explicitly calling a function such as WaitForSingleObject at the end of execution As an example, if I create a thread in order to run an asynchronous function, such as one which performs a large calculation and stores the result to a file, logically it should continue to execute until it is finished even though main of the process in which it was created may return during the middle of the operation. I would think that such behavior would be commonly desired, and even prefered by default, yet I am no ...Show All

  • SQL Server Wait for Recieve Fails to recieve message when called from .Net sqlClient

    I have been building out an application and Service Broker has been working great but I have this one nagging problem. There are some scenarios that involve users waiting for a response so I call a stored procedure that sends a message on a service and then waits for a responses on the conversation handle on which it sent the request. When I call the stored procedure from a query window inside management studio it works perfectly. When I call it from a .NET application it times out waiting for the response.  If I set a long timeout I can see that the response   was returned and is sitting in the queue but the waitfor receive just ...Show All

  • SQL Server Retreiving TableAdapter data into variables

    SQL database    ID   FName    LName    SSN    Dept   Photo   JobReview   PayGrade me.TableAdapter.GetDataBy(LName) I would like to access the TableAdapter records and read a row into variable to be displayed such as textboxes and picturebox How do I access a row How do I specify each column to read Do I need to convert Photo into graphic for the picture box Thank you so much.    You're not going to believe this... but I'm using the binding adapter tried to update records, delete b ...Show All

  • Visual Studio How can I change the background color of the code window using an add-in?

    Hello, I need to write add-in thats changes code background in code window. Is there any samples how to do this I will very glad if somebody help me to do this. Thank you. Hi, Aaron. Yes. I mean highlighting. User selects text and this text changes background. This background saves after selecting another fragment. Can VSIP help with this problem. Thank you. ...Show All

  • Software Development for Windows Vista Workflow problems in December CTP and WF :(

    I just installed the Devember CTP of WinFX and it seems that I can not compile WF samples.  I had the Workflow Designer sample working just before the upgrade.  I had uninstalled everything (Nov CTP, WF 1.2, WinFX), then installed the latest WinFX runtime, Windows SDK, WinFX VS integration, WF 1.2 VS Integration.  Last night I worked on WPF and WCF and all was fine.  This evening, I tried a simple recompile of the Workflow Designer sample, and no luck.  It does not raise any events, warning or hints, just says "Build Failed".  Anybody else having this problem   Thanks, Joe ...Show All

  • Visual Studio connections restrictions between shapes fail

    hi, i want to restrict the connections between two shapes. I did this by using public override bool CanCreateConnection( ShapeElement sourceShape, ShapeElement targetShape, ref string connectionWarning) for the accordant connector class. e.g there is ShapeA & ShapeB. The problem is, that i can connect ShapeA with ShapeB, if i move the mouse over the "text decoration" of ShapeB although this is forbidden by the conncetor restriction. The restriction works fine, when i move over the shape area of ShapeB and not the "text decoration" of ShapeB. How can i define restrictions for the whole shape, includin ...Show All

  • Software Development for Windows Vista Runtime Workflow Design

    Scenario: An application allows multiple end users to define their workflow, then run the application based on that workflow. Real-world example: A defect tracking system wants to allow some clients to route new bugs to a manager and others to route directly to a developer. The nearest solutions I can think of are: 1) embed the designer in the application, 2) make the workflow be the most complex case and build in lots of if/elses, and expose those choices in the application. Both have their drawbacks. Any suggestions John Chris, Yes, you can do this. Look at Lab10 example. This hosts the designer and serializes ...Show All

  • Visual Basic How to....

    I am wondering if there is a way to keep VB from changing a data format and allowing certain characters to be used in a specific format. Here is an example: ElseIf frmPC1.txtCon.Text = 20 Then txtCon2 = 20 txtCon3 = 2 / 5 txtCon4 = 70 txtCon5 = 75 txtCon6 = 1 txtCon7 = 1 / 6 I want the lines txtCon3 to display as +2(+5) and txtCon7 as 1/6... I wish to avoid mathematical equations. .NET has absolutely no support for numbers expressed as fractions. To do this, you need to represent the values as strings, which is what they are anyhow. Put the values in quotes, and VB will not alter them. ...Show All

  • SQL Server Execute installation script.

    Hello. I will export  the database generated script for all objects, I want to make an installer that executes that script on the remote server, I think the installer must ask for sa password; anyway thats not the problem, How can I make with SMO execute an script file Thanks Public Shared Function RunScript(ByVal script As String, ByVal onServer As String) As Boolean Try Dim SMOServer As New Microsoft.SqlServer.Management.Smo.Server(onServer) SMOServer.ConnectionContext.ExecuteNonQuery(script) Return True Catch ex As Exception Return False End Try End Function Where onServer would be somethi ...Show All

  • .NET Development Does ViewState get validated/authenticated when enableviewstate=false?

    I need help. I am a contractor web developer here in CA working at a company where the production environment comprises two web sites located on two separate networks (the first owned by the company, and the second is hosted by a second-party company). The two web sites have the same domain name but different IP addresses on the DNS on the internet, and there is no load balancing mechanism in place, so a request could go to either IP address. Anyway, to make the web application work, I have to disable session state and view state so that it does not matter to which website each request goes. My question is: with the viewstate disabled both ...Show All

©2008 Software Development Network