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

Software Development Network >> Alexey Rokhin's Q&A profile

Alexey Rokhin

Member List

Amir Goodarzi
MrZkitten
eric_from_nj
PedroSimao
XCT Adolfo
johnvarney
Vikas Dhevarshetty
Ljan
clintonG
davidy13
Mateusz Rajca
Blkbird
rako77
manjunath cv
eyew
Dumitru Sbenghe
rmgjohnes
Option
mangu
publicgk
Only Title

Alexey Rokhin's Q&A profile

  • Visual Studio Express Editions Save text to new lines in text file

    Okay so I need to know how do I svae text to seperate lines Right now I have it so you press a button and it saves some text from a label to a text file, what I want to do is each time they press the button it saves the the text from a lable onto a new line in the text file, so that when I display the text in a Rich Text Box there is a line for each time they pressed the button. Thanks for you help :) ~Kiwi Ranger My .Computer.FileSystem.WriteAllText( "d:\temp\1.txt" , Label1.Text & vbCrLf, True ) ...Show All

  • SQL Server Accessing Views via ODBC from MSAccess

    Hello, This started as a simple thing, allow somebody to access to a database on a SQL 2005 server so they could get to it from MSAccess. I have created a login (Windows Authentication) so they can see the database and gave them "public" and "datareader" abilities. The user then informed me that while they could see the views they could not see the data. Not being a DBA (sorry) I added "public" to the view's permissions (under properties) and granted it "Select" access and nothing else. After I completed this the user could not even see the views to pick them (via the ODBC link from MSAccess) and when I try to remove "public" from the permissions it dissapears, but when I reopen the p ...Show All

  • .NET Development XSLT: search for specific nodes and nodes related to each

    Hi, Sorry this is going to be a long post but I felt it necessary to include source code. Here's a very small portion of my xml document: < xml version="1.0" > <xtvd> <stations> <station id="10436"> <callSign>KERA</callSign> <name>KERA</name> <affiliate>PBS Affiliate</affiliate> </station> <station id="10830"> <callSign>KXAS</callSign> <name>KXAS</name> <affiliate>NBC Affiliate</affiliate> </station> <station id="16123"> <callSign>TVLAND</callSign> <name>TV Land</name> <affiliate>Satellite</affiliate> </station> <sta ...Show All

  • .NET Development Find attributes in a XML file

    I would like to find in a XML file all the attributes with the same attribute name. I have used the following code, but It doesn’t work. The code compiles but does not print anything. Can somebody tell me why it’s not working and give me something else I can use. Thank you. while (reader.Read()) { if (reader.get_NodeType() == XmlNodeType .Element) { while (reader.MoveToNextAttribute()) { if (reader.get_Name() == "categorie" ) { Console .WriteLine( "Categorie= " + reader.get_Value()); } } } } No, it’s not working. The problem is with the following line. I have several attributes with the name categorie, but it doesn’t work. if ...Show All

  • SQL Server Please correct syntax

    hi there RS2005 - Layout tab I have a field that says txtTrackerTrue=Sum(Iif ((Fields!Tracker.Value = Fields!RecvdBy.Value), 1,0 )) I want another field that says txtAllTrue =Sum(Iif ((Fields!Tracker.Value, ClosedBy.Value = Fields!RecvdBy, 1,0 )) obviously this is going to error how would I do this please thanks thanks Jens I tried that but it came up with ReportItem is a type and cannot be used as an expression. any other suggestions cheers ...Show All

  • Visual C++ Vector subscript out of range - can't understand why

    I'm having a problem regarding the 'vector subscript out of range line 756' when popping back a vector after upgrading to VS2005. Pushing back still works perfectly. Searching the web I find many others with the same problem, but no explanation or way to fix it. This is purely in debug mode, no problem with mixing release mode or anything. #include "fire.h" vector < fire > MYFIRE; In main I have this function for(unsigned int i = 0 ; i < MYFIRE.size(); ++i) {     MYFIRE.DoPhysics(MYTIMER.getdelta_time());         if(MYFIRE.Pos().X()>400)         {         for(int j = i; j < MYFIRE.size(); ++j)     ...Show All

  • .NET Development Mutli Threaded application : Unable to use 100% processor power when Multi-Core HT

    Hi, I'm working on a CPU intensive application that use several Threads. I have a multi core CPU (Pentium 4 HT). But my program only use one CORE, so I only use 50% of the power of my machine !!! I'm unable to find a solution to use the maximum of power of my CPU. Thanks for your advice Windows is a preemptive multitasking OS. This helps prevent a software program from taking complete control of the cpu and allows multiple programs to continue to operate without crashing or freezing. As such you will never be able to get 'real' 100% CPU. (and shouldnt!) How are you threading your App No mainstream language can automatically take advantage of multiple cores and multiple processors. In C# you can use the ThreadPool to achieve parall ...Show All

  • Windows Forms WebBrowser - strange behaviour using hyperlinks

    Hi, I have an embedded WebBrowser in my c# application. The application displays documents in the webbrowser pane. If the document is not available on the local hard disk, I download it from another source. My documents may have a hyperlinks to other documents. If a hyperlink is clicked, I want to use the Navigating event to check if the document exists on disk or whether it needs to be downloaded. The strange behaviour, is that... If the document exists on disk, the Navigating event 'e' parameter contains the correct url (including href query). i.e. file:///c:/temp/file1.htm#bm01 However, if the documents doesn't exists on disk, the Navigating event 'e' parameter contains only the file path in the url and not the href query ...Show All

  • Software Development for Windows Vista more information

    please help me to do this problem in my windows vista .. I have a very important videos in this Indeo codec and I can't play them .. in addition to this I have a games that needed this codec and I dont know how to do regsvr32 against the codec file so please help because this is very important for me .. please see this thread they say somethong about ir50_32.dll ( this file is the codec ) but why isn't working .. thank you I entered the website you gave me .. but I didn't find solution I don't want to buy indeo .. thank you anyway and please help me if you can in registering this file to windows vista .. ( this codec is worked in my windows xp sp2 in my laptop ) https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=907 ...Show All

  • SQL Server Query parameters not recognized by report designer

    No matter how I try to enter an automatic query parameter it just isn't recognized as such. I get missing expression errors from the SQL syntax check and no report variables are generated. There must be something incredibly simple that I am missing.... The most recent query string I've entered is SELECT DISTINCT WRTE_ROUTE FROM WSMGR.WIPRTE WHERE WRTE_RT_GRP_1 = 'RULE_BASED' AND WRTE_FACILITY = @Facility Thanks for anyone who can help.. I neglected to mention that we were using an Oracle database because I didn't see why it would make any difference. But coworkers now tell me that the automatic query parameter recognition is a SQL Server specific feature. I don't see why this should be, and if th ...Show All

  • SQL Server SQLAGENT CAN't START

    SQLAGENT CAN't START this log: SQLServerAgent could not be started (reason: SQLServerAgent must be able to connect to SQLServer as SysAdmin, but '(Unknown)' is not a member of the SysAdmin role). In the event viewer we have the following error: Event Type: Error Event Source: SQLSERVERAGENT Event Category: Service Control Event ID: 103 Date: 3/1/2007 Time: 10:16:30 AM User: N/A Computer: MyServer Description: SQLServerAgent could not be started (reason: SQLServerAgent must be able to connect to SQLServer as SysAdmin, but '(Unknown)' is not a member of the SysAdmin role). For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp . ...Show All

  • Smart Device Development Map HardwareButton to TAB button

    Is there a way to use the HardwareButton component to emulate a TAB press Unfortunately, I don't see a way to set up that mapping within WM5. Thanks, Matthew Belk I tried SelectNextControl() and couldn't get it to work like the ordinary hardware tab-button. I ended up using P/Invoke and keybd_event() to simulate tab key presses. It works perfectly and you only need to set one form property to true and add one form event handler (not one event handler for every control). If you put the code below in a base form and derive all your forms from that form you will get tab-handling automatically - set it and forget it. 1. Add the following P/Invoke code. NOTE: You should wrap this code in a cond ...Show All

  • .NET Development Problem inserting sql query into database float datatype field using SQL Transaction

    I have this problem of inserting my query into database field. My code is as of below. The @AVERAGESCORE parameter is derived from Dim averagescore As Single = (122 * 1 + 159 * 2 + 18 * 3 + 3 * 4 + 0 * 5) / (122 + 159 + 18 + 3 + 0) and the value inserted is (averagescore.toString("0.00")) However, I have error inserting the averagescore variable into a field of datatype float during the transaction. I have no problems when using non transactional sql insert methods. What could be the problem myConnection.Open() Dim myCommand As SqlCommand Dim myTrans As SqlTransaction myTrans = myConnection.BeginTransaction() Try Dim i As Integer For i = 0 To arraySql.Count - 1 ...Show All

  • SQL Server Variable values containing dashes

    Ok. Here is a weird problem. I have a package which contains a variable with the value of a UNC sharename. The hostname in the share contains dashes. I am trying to create a SQL Agent entry to execute said package. Because the package is now in production I want to pass in a new value for the sharename variable. I use the SQL @@SERVERNAME variable to build the package command. (Notice the BlotterUploadFolder variable at the end.) SELECT @command = N '/FILE "\\' + @@SERVERNAME + '\Packages\MiddleOffice\Reconcilliation\ImportManualBlotter_AccountTransfers.dtsx" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING EW /CONNECTION MiddleOfficeDb;"Data Source=' + @@SERVERNAME + ';Initial Cata ...Show All

  • Microsoft ISV Community Center Forums Problems with last 2 parts of code?

    Hi Just testing my almost completed project and have come across two pieces of code that are proving a pain in the butt for me! I wonder if a fresh set of eyes may pick up on something i'm missing... Basically I have to run the macro a number of times before it properly removes all the rows of data I want it to - any ideas Sub cmdRemoveEntries_Click() 'used to automate the removal of exceptions such as Russia, Ukraine Dim x, z As Integer Dim cell As String z = Module1.GlobalCount 'total number of employees to be processed For x = 2 To z cell = "O" & x 'O signifies the Site in which the employee is based 'feel free to add other countries/sites as they become applicable 'MS/NN/WT ...Show All

©2008 Software Development Network