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

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

SnowJim

Member List

kfsoft
SPA
SnakeSV
danhood
Mike Hildner
Meat
Dave_L
Lovericky
Hemant Kumar
TJ Bernard
amselem
DrBrain
godzilla9
RajeevP5
Perley
DMAR330
vivian20060829
MaggieChan
M_Over
Matt_
Only Title

SnowJim's Q&A profile

  • Visual C++ Embed Internet Explorer into another window

    I need to embed an Internet Explorer browser into the application I am developing (I’ll call it myApp). The embed IE browser should not have a Navigation Bar. The IE browser should run inside myApp’s main window. The application is not currently MFC and trying to change it to MFC will take a lot of time and debugging. I used the CreateProcess() functionality, but this will open a IE window that runs in the Desktop, outside myApp’s window. I’ve trying to use OleCreate() but I can’t get it to work because I am not sure how to define the REFIID and ppvObject parameters. Probably there are other parameters that need to be defined and/or obtained. I’ve been looking for a good C++ Code Example but after a coupl ...Show All

  • Windows Forms Can I use UserControl as a TreeNode?

    Hi, I am trying to create a property window. The attribute in the property can be devided as several groups. So I decided to make use of TreeView. However I cannot find a way to use a userControl as a TreeNode. Can anyone help me But TreeNode doesn't have Paint event... so I don't know how to override that event... I am really sorry,, I am new to Visual Studio and .Net Thank you, Idos ...Show All

  • Visual Studio Express Editions How to search text in a file?

    How to search a word in a text file and after that to get the line that contains that word. Regex is expensive to use and should really only be used when you are doing a constant search on specific words or patterns   however as suggested, you can use the indexOf method to check the value exists. example:   .. string currentLine = theStreamReader.ReadLine(); if (currentLine.IndexOf(someString) != -1) {    //do stuff }   ...Show All

  • Visual Studio Express Editions How to view instantiated template source code?

    I'm learning about templates. I understand what's going on with them, but I would very much like to see the instantiated source code. This should be the source code with all the actual parameters substituted for the formal parameters. I'd be happy seeing the instantiated code in a listing. How do I see that I'm using VC++ 2005 express under Win2K. Many thanks. Hi I was reading the postings. I have just created a template Node and List class for some homework. It works well but I am not able to step into the list's assignment operator. The program appears to copy one list to another correctly. The reason I may not be able to hit any breakpoints in my template class List may be because of what ...Show All

  • .NET Development Help with TripleDES and RC2 cryptography.

    I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All

  • Visual Studio Team System Replication vs Proxy Server?

    My company is currently in the process of bringing other branches of our company on to Team Foundation Server (TFS). Our primary offices are in the United States but we have other branches in Europe. Originally we were planning on having a central TFS server in the USA that all branches would connect to. Due to latency and somewhat frequent WAN outages between the branches we are now looking for other options. The first thought we had was to install a second TFS server in our European branch and setup SQL 2005 replication between the two databases. The hope is to have the European branch connect to the TFS server in Europe and the USA branches connect to the TFS server in the USA. With the hopes that we would have identic ...Show All

  • SQL Server Selecting Statement execution

    hi all, this morning i went mad trying to understand how to do something like this: WHERE         CASE @Variable1                 WHEN 0 THEN T1.Field1 <= Value1 AND                 WHEN 1 THEN T1.Field1 >= Value2 AND                 WHEN NULL THEN T1.Field1 >= Value3 AND         END         T2.Field2=@Variable2 AND so on Can i select the statement that should be executed i tried even inserting all the WHERE clausoles into 3 different ...Show All

  • .NET Development help needed in pixel operation

    hi, I want to know the difference of the below, 1. Doing image operation with the manipulation of getPixel() and setPixel() methods. 2. getting the address of the first pixel data in the bitmap using the code, BitmapData bmData = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb); int stride = bmData.Stride; System.IntPtr Scan0 = bmData.Scan0; How these two differ thanks in advance. Uvaraj T The first one uses GdipBitmapSetPixel so set the pixel data Its easier to use I don't see what you're getting at here. ...Show All

  • Visual Studio 2008 (Pre-release) AddNewRow behaviour with bound ItemsControl

    I'm trying to figure out how to implement AddNewRow functionality to an ItemsControl bound to a DataTable. The simple answer would be to just call DataTable.NewRow followed by DataTable.Rows.Add but that requires all non-null columns to be pre-populated. I'd like to create the same behaviour seen in SQLServer Mangement Studio when adding records to a table. The last item in the ItemsControl should show an empty template. When the user makes the first change, a new empty item template is added underneath the current one. When the user has finished editing the current item it is validated and all constraints checked before adding to the DataTable. The only way I can think of doing this at the moment is to not use databinding but man ...Show All

  • .NET Development MS Access !!!? Where can I post a simplish question about MS Access?

    I've set up the DB and want a screen where I can enter search criterior, which are then screened for errors before returning the required record. Finally once this is working I want to load it onto the Web with the search screen remote to the website; Hamish ...Show All

  • SQL Server Restore database on different domain - performance

    Hi, I'm trying to restore database on the server in the different domain. The destination server is located in the physically remoted place. First I tried UNC path (including IP address) with DBCC TRACEON | OFF (1807) optioin but it didn't work. Some Internet document suggested that the FTP file transfer & restore locally on the remote domain but I didn't use this method because there is additional step. Instead I used the following scripts: DECLARE @COMMANDLINE VARCHAR(500) SET @COMMANDLINE = 'NET USE B: \\192.168.1.xxx\sql_backup$ password /USER:SourceServer\read_sql_backup /YES' EXEC master..xp_cmdshell @COMMANDLINE RESTORE DATABASE [DestinationDB] FROM DISK = N'B:\SourceBackup.bak' WITH FILE = 1, NOUNLOAD ...Show All

  • Visual C# operator overloading vs operator overriding

    what is the difference between operator overloading and operator overriding thanks in advance for ur replies Overloading vs. overriding is the same, in general, as it is for methods. Overriding is the process of redefining a method (or operator) in a derived class with the same signature as a member in the base class but performing different work. You use overriding all the time. For example when you create a form in a WinForms app you normally override the base Form.OnLoad method with your own. Overloading is the process of defining several methods (or operators) with the same name but different signatures (a signature being the method name and its arguments). Whenever you type an overloaded method's ...Show All

  • Visual C++ Inserting a char into textbox

    Hi all need a l ittle help. I need to insert hexadecimal number as is into a textbox. I am using itoa to convert it to char but i dont know how to display it in the textbox. When i am inserting the char into the text box i get a convertion eror the i have tried to use .toString() on the char but then i get the ASCII value and not the hexadecimal character. I am using visual studio 2005. Will apritiate any help. ...Show All

  • Visual Basic Create folder with WMI

    Hi I need some help with creating a folder on a computer on the network using WMI. // Lasse The folder is locked for direct access i need to provide admin username and password if there is another way to do it than wmi then its fine just as long as the program can grant admin permission. ...Show All

  • SQL Server TimeSpan .Net type in AS Stored proc for Elapsed time + ProClarity

    Hi, I guess ,this is kind of an old problem. But I have tried various ways to do this in vain. Here is the scenario: and all the different approaches that I followed I need to convert seconds to DD:HH:MM:SS as elapsed time. it would mean days:hours:minutes:seconds. calculation gives 86400 seconds = 01:00:00:00 (1 day). The elapsed time needs to show negative elapsed time. for example: -02:22:10:05. Also I need to display the same on ProClarity graphs. The graphs also need to show the same dd:hh:mm:ss format. Approach 1: I used the TimeSerial function, this works fine only for HH:MM:SS. It does not support days. also it does not support negative values. Approach 2: I used a custom .Net library (AS stored procedure) which would ...Show All

©2008 Software Development Network