Software Development Network Logo
  • Smart Device
  • Visual FoxPro
  • Visual C#
  • Visual C++
  • Game Technologies
  • .NET Development
  • Visual J#
  • VS Express Editions
  • Windows Vista
  • Visual Basic
  • Windows Live
  • Architecture
  • Visual Studio
  • SQL Server
  • VS Team System

Software Development Network >> Sergey Pikhulya's Q&A profile

Sergey Pikhulya

Member List

kevin d
Sentient
Alf928
Jits
moriarty
John Vulner - MSFT
LeonelParra
NewbeeVFP
Need_Helpss
sg60
tconrad
dmj1
Newbian
stanb
SJINDAL
BMF
BrunMr0tuns
Asim A
mrbenz
ddubya
Only Title

Sergey Pikhulya's Q&A profile

  • .NET Development Rijndael Algorithm + Padding error...

    Hi all I am trying to encrypt and decrypt data using the Rijndael alogrithm. I have been successfull in encrypting and decrypting the data in one go. However problems arise when I attempt to save the key and the IV value and return at a later time to decrypt the data, The error I am getting is as follows: "System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed." Here is the code that I am using to encrypt and decrypt the data: Imports System.web Imports System.web.services imports system.web.service.protocols imports system imports system.text imports system.secu ...Show All

  • .NET Development Unmanaged code to managed code

    Is there any way to convert unmanaged dll to a managed one If you have the source you could convert the code to compile it as managed code. It could be alot of work. Maybe you are just interested in using methods from the DLL The DllImport attribute can be used for that. If it is COM you can add a reference to the COM and then you can use it directly in the code. ...Show All

  • SQL Server SQLParamData fails when putting large BLOB when MARS is enabled

    I am having problems putting large amounts of data into MSSQL 2005 with MARS enabled. If I use any other version of MSSQL or if I do not enable MARS, my program works fine. However, when MARS is enabled, the SQLParamData call after the SQLPutData call fails with the error "A transaction that was started in a MARS batch is still active at the end of the batch. The transaction is rolled back. (3997) A transaction that was started in a MARS batch is still active at the end of the batch. The transaction is rolled back. (3997) " Below is the end of the log from a test program running against the Northwind database showing this error. ...Show All

  • .NET Development Connection pool size issue

    Hi, I have a question about ADO.Net's way of handling connections. My server app uses ADO.Net to connect to SQL Server to server clients' calls. Some times I get error message that says that I may run out of connections in the pool and I should consider exband the size of the connection pool (not the exact words). I am a little confused by this error because, to my knowlege, the connection pooling is by defualt set to a certain size. If all the connections in the pool are taken and when a new connection is requested, ADO will automaticly increase the pool size, isn't it If so, why do I get the error message If not, what should I do to avo ...Show All

  • Visual FoxPro editbox programmatic change

    I am looking for an easy way to determine if I've made interactive change in an editor box. The issue is that there are about 16 controls on a container, they are initialized from a table record thus their values at activate time generally are not trivial default. I have to save the changes with a SAVE button if I made any but I want this button's click method to quickly determine which control values have been changed. I do not want to do REPLACE for the fields with values that haven't been changed. In case of simple controls like a combobox I can store the initial value in Tag property and do the comparison programmatically. Sometimes t ...Show All

  • SQL Server Query problem - TIPOS IN ()

    Hi, I have the following query SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO ALTER PROCEDURE CONSTELEFONICA @E1 VARCHAR(50), @TIPOS VARCHAR(50), @PERINI DATETIME, @PERFIM DATETIME, @PERINI2 DATETIME, @PERFIM2 DATETIME AS SELECT DATA_HORA, LOCALIDADE, VALOR_TEMPO, VALOR_TARIFA, CLASSIFICA_TELEFONICA, VALOR_TOTAL, NRTELEFONE, NUMERO_E1, @PERINI as DATA_INICIAL, @PERFIM as DATA_FINAL FROM TELEFONICA WHERE NUMERO_E1 = @E1 AND DATA_HORA BETWEEN @PERINI AND @PERFIM AND LOCALIDADE IS NOT NULL AND LEFT(LOCALIDADE, 2) <> '**' AND TIPO = '2' AND LEN(NRTELEFONE) > 5 AND VALOR_TOTAL IS NOT NULL AND CLASSIFICA_TELEFONICA IN ...Show All

  • Visual Studio 2008 (Pre-release) VS2005:WinFX - How Assign Events to Controls?

    I am using VS2005, with Jan WFX CTP extensions, to play with Avalon (Cider designer) - So I can create the GUI and run the display seems OK. But when I want to add behaviour to a Button, I cannot find how to get to the Events. For example adding Button1._Click event code.  (Normally I just double click the Button in the Designer to take me to the Click Handler event code) - This is no longer possible in Cider.  So I attempt to select the event from the code Screen.  When I am in code view for Window1.xaml and Pull down the types, I only see the WindowsApplication1.Window1 Type in the pull down, so cannot ...Show All

  • Visual Studio How can I get the parent folder path of the selected item?

    I'm writing an add-in which requires the folder path of the currently selected item in the solution explorer. Currently I'm using something like this: new FileInfo ( SelectedItem.ProjectItem.get_FileNames(1)).Directory.FullName; However, this does not work if the selected item is a linked item. In that case it gives the path of the directory which actually contains the linked item. So what's the exact way to get the *project folder* name which contains the linked item Thanks a million in advance. Cheers, - Buddhike Hi Buddhike, What you are looking for can be achieved by using the ProjectItem properties. There is a property " ...Show All

  • Windows Forms Sending keystrokes...

    I'm trying to emulate sending a "CTRL-N" to a form in a Windows app after checking for a previous instance of the application. Once I determine if the users has the existing application up, I activate the current window, send a keystroke and then close the app that had the previous instance when launched. When the AppActivate runs, I can see& ...Show All

  • SQL Server Is SSMSE Redistributable

    Is SSMSE Redistributable SQL Server 2005 Management Studio Express (SSMSE) is redistributable if it is redistributed with SQL Server 2005 Express and redistributed as part of a developed application per the Microsoft redistribution rights agreement here: http://www.microsoft.com/sql/editions/express/redistregister.mspx . ...Show All

  • SQL Server Need distributed service broker sample

    I'm working with the April CTP of SQL Server and I'm trying to create a proof of concept using service broker.  I'm struggling with the "abc's" of it.  If anyone has or can point me to a distributed "Hello, World" for service broker between SQL Server 2005 and SQL Express instances it would save me some time and trouble. thx! Niels, The two link http://staff.develop.om/nielsb/code/routing2.zip http://staff.develop.com/nielsb/code/routing-aprilctp.zip still do not work (a connection with the server could not be established). I do not know if the server is down, or is the document no longer for pul ...Show All

  • Visual C# strange excepstion

    I've an app that have been written in vs 2003, today I convert it to vs 2005 but when I want to run this program (in debug mode or not) this exception occurred. Ex.Message: "DragDrop registration did not succeed." What's wrong in my app that cause this exception Please do the following, 1) include the following using System.Net; using System.Threading; 2) add the [STAThread] Attribute just before ur main function and also remember to inlcude using System.Net; in ur main program, [STAThread] static void Main() 3) The steps are as follows for threading, 1. Put all the code ( for which u r getting this excep ...Show All

  • Visual C++ Warning 4244 Adding 2 ushorts with +=

    G'day! This doesn't make sense to me, but perhaps someone can explain it to me: unsigned short one = 1; unsigned short two = 2; one += two; //warning C4244: '+=' : conversion from 'int' to 'unsigned short', possible loss of data one = one + two; //OK Is this a compiler bug or do I just not understand what's happening   I reproduced this using the /W4 flag in 2005.  Sure looks like a bug to me.  You may want to open a bug on it.   ...Show All

  • Visual Studio Demo application available

    The Web Log Analyzer Starter Kit application uses the ReportViewer control to analyze IIS log files and display the top 10 most popular pages, most frequent referrers and so on. http://lab.msdn.microsoft.com/vs2005/downloads/starterkits/ I have downloaded the weblog analyzer starter kit, but when I try to run the app on VB.Net 2005 Express Beta 2, I receive some errors: 1) The referenced component 'Microsoft.ReportViewer.Common' could not be found.   2) The referenced component 'Microsoft.ReportViewer.WinForms' could not be found.   I have installed on a Windows XP SP2: VB, C#, Web De ...Show All

  • Visual Studio Express Editions Printing Multi-page ListBox

    Hello. If someone can help me I would be most pleased. I have a ListBox with many lines but when I want to print, I can only get 1 page although there are many more lines to print. I have desperately been trying all combinations of code with the right logic. I think Please help. Thankyou. Ali. I assume you use the PrintDocument class to do the printing. In the PrintPage handler, set e.HasMorePages = true to get more than one page. ...Show All

©2008 Software Development Network