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

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

js111

Member List

Grotius
NewbieDude
vgrigor
Troy Lundin
curiousss
SureshGubba
Jeremy Lew
Irina777
Víctor Manuel
Dot Dot Dog
wls1973
Xcel
ronks
Dr. Zoop
Okugops
djm-web
gcox18
mas-es
ZimY
olloemre
Only Title

js111's Q&A profile

  • Visual Studio Express Editions They've Vanished?

    All of my menu items and toolbar items have vanished, all the code is still there, all the references to them are still there in each of the properties windows it's just that the icons are not there. Is there any way to get them back Has anyone identified the source cause of this problem, or is it just a bug I've experienced a similar problem as Graham twice now. One munute my menu items are present, and then they're gone. I'm not sure when it's happening, but I can telll you that I am NOT manipulating the menu during run-time - It's a static structure... (BTW - VS Hotfix KB920805 is installed) ...Show All

  • Visual C++ Static object initialization and thread safe

    I have ran into a situation that is very werid. Could anyone help me This a C++ application built and debugged on Visual Studio .Net 2005. Basically I'm implementing a singleton class using double check locking pattern. I have read many arcticles about how this pattern is not thread safe, but my problem is slightly different. Here is the pseudo code: MyMutex.h/cpp class MyMutex { public: ... Lock() { ... } Unlock() { ... } ... }; ThreadMutex.h/cpp class ThreadMutex { public: ThreadMutex() { ... _lock = new MyMutex(); ... } Acquire() { ... _lock->Lock(); ... } Release() { ... _lock->Unlock(); ... } ... private: M ...Show All

  • .NET Development Node vs. Element? Collapsing... Elements?

    I've been developing a customized C# XML serializer, because of the lack of support for Generics using the XmlSerializer class, and I use the XmlElement quite a bit. One of my questions is what is the major difference between a Node and an Element I see that the XMLElement class inherits from XmlLinkedNode, which inherits from XmlNode, so does the word "element" simply define a "group of nodes", but can be a single node I am just curious about is all. Whatever the "group" is, my real question lies with how to programmatically collapse these "groups" My Xml file will be representing a config file that can easily end up to be 20+ pages long, so it would be really helpful to collapse ...Show All

  • Smart Device Development Serial Port Mapping Problem on Pocket Pc 2003 Emulator

    Hello all; I am developing an RFID reader project, using VS2005 C#.NET on pocket pc emulator. My rfid reader device is connected on serial port of my computer. I can read and write to serial port of reader on pc application, but when I try to use emulator in my software, I fail to communicate. My device is on COM2. I map it to serialPort1(I guess it means COM1) on emulator, then I write my software which tries to communicate with COM1, then I deploy it. It seems to open the port, but when I try to send message, the program freezes. The weirdest thing is that, I can only open COM1 port on emulator, even if I map my device to serialPort2, or even if I don't map anything. I guess this means that mapping is not working ...Show All

  • Visual C# Import Excel Spreadsheet Data into SQL Server Database Table

    Hi All, I am trying to import data from an Excel spreadsheet into a SQL server db table though having some issues. This is the code I'm using: private void Button1_Click( object sender, System.EventArgs e) { // Connection String to Excel Workbook string excelConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Book1.xls;Extended Properties=""Excel 8.0;HDR=YES;"""; // Create Connection to Excel Workbook using (OleDbConnection connection = new OleDbConnection(excelConnectionString)) { //OleDbCommand command = new OleDbCommand ("Select ID,Data FROM [Data$]", connection); connection.Open(); OleDbCommand command = new OleDbCommand ("Select ID,Data FROM [Data$]& ...Show All

  • SQL Server how does the .net app capture raiserror values from a stored proc

    I have been using return values to check the status of my stored procedures called from an application. But how does one read the new raiserror values that are passed with sql server 2005 and using ado.net 2.0. Are they returned as parameters or as a dataset or what Thanks smHaig Hi; They are returned within the error itself, take a look below.... try { // your Data Access code } catch ( SqlException ex) { string strErrMessage = ex.Message; int nSeverity = ex.Class; int nErrCode = ex.ErrorCode; byte bState = ex.State; } ...Show All

  • SQL Server Remark some task or data transformation component

    How could I remark my script component, It is isolated, I just wanna check something without losing the long script written inside. Thanks, Fahad I have an script component amid many transformation components. The script component just "trim"s the string values, and pass same data on. I just wanna see what happens if I remove the component. I have bypassed that script component now it is isolated. But I cannot run the package, since the isolated script component gives an error. I just want to "disable" or put it on "remarks" ...Show All

  • SQL Server How to encryt a Date field??

    How do we encrypt/decrypt a datetime field For e.g. Date of Birth Hi Raul garcia, How should the date field be stored in the database, should it be datetime or varbinary I am inserting data using a stored procedure that encrypts the date using encryption keys. I am using a view to decrypt the date. Table design Firstname -- varbinary(50) secretdate---varbinary(100) Stored procedure: DECLARE @ FIRSTNAME varchar(100) DECLARE @secretdate datetime OPEN SYMMETRIC KEY key_01 DECRYPTION BY PASSWORD = '50m3 p4xw0Rd&' go insert into tbltest firstname, lastname, secretdate values( EncryptByKey ( key_guid ( 'key_01' ), @FIRSTNAME), EncryptByKey ( key_guid ( ' ...Show All

  • .NET Development C# custom class - calling an sproc - completes, but no data inserted

    I have an asp.net (C#) app calling an sproc from within a class. The sproc first verifies that the item being inserted does not already exist. It then adds a row to 3 different tables (nested sproc). Running the sproc from the "Run Stored Procedure" menu item in Visual Studio .NET 2003 works perfectly. But, when I run the actual app from IE, no data is entered into the tables. The output from the Database Output window indicates each of the statements finished correctly; however, when I look at the table using SQL Enterprise Manager, the data has not been added. Am I missing a commit or something All sqlcommand parameters are set from the class properties. I make sure they're all set before calling the sproc (even though som ...Show All

  • SharePoint Products and Technologies Document Center VS Site Contents

    What's the diference and the advantages to create list's in the Document Center insted on the Site Contents Can anybody tell me   Thank's!!!! ...Show All

  • Windows Forms Exception thrown when changing opacity

    I've got a form that's shown from some code in a c# Word Addin. I've had to call the SetParent API function to make this form a 'child' of Word (I wanted the form to behave like the Word Find dialogue) like this: if ( Win32 . SetParent ( this . Handle , hwnd ) == IntPtr . Zero ) (where hwnd is the handle for Word) I also fancied having the form 'go a bit transparent' when it lost focus (i.e. when the user started typing in Word) but when I put something like this in the decactivate event of the form this . Opacity = 0.35 ;  I got this rather nasty exception: System.ComponentModel.Win32Exception was unhandled Message="The parameter is incorrect" Source="System.Windows.Forms" ...Show All

  • .NET Development dummy OracleClient question

    Hello, I have a really, really newbie question: what do I need to download to enable working with OracleClient I think I need the Oracle Client 9.x from Oracle, so I went to http://www.oracle.com/technology/software/products/oracle9i/htdocs/winsoft.html , but the file size is huge! Why is an Oracle client so big I would think the server is big, but a client should be small. I apologize if I'm asking a dumb question, but I haven't worked with Oracle in 5 years and I just don't remember the setup. Thanks, Tibs No problem, glad to help. Can you please mark the question as answered Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All

  • Visual C++ warning C4996: 'fopen' was declared deprecated

    Hi, after compile some "old code" in VC++ 2005 it was came out with error. May i know how to solve it warning C4996: 'fopen' was declared deprecated warning C4996: 'strcpy' was declared deprecated warning C4996: 'sprintf' was declared deprecated Use fopen_s instead of fopen, strcpy_s instead of strcpy, and sprintf_s instead of sprintf. If you want to remove this warning without changing the code, use _CRT_SECURE_NO_DEPRECATE precompiler constant. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Problems on resize

    Hi, I’m the coordinator of Jad Engine, a MDX 1.1 open source 3d engine. We have had one bug around for several months that we are unable to solve related to resizing the device. At the start, we used SetAutoDepthStencil = true when creating the device, and there was nor problems with the resize. But nowadays we do it manually and SetAutoDepthStencil is false. But when we reset the device, the D3D debug tells us that one surface has not being liberated. That surface is the DepthStencil we just created, because if we don’t create it, the reset works. The Microsoft.DirectX.Direct3D.Device.IsUsingEventHandlers is set to false as we create ourselves the VertexBuffers in DEFAULT mode and that’s the only way that they don’t give us an error on th ...Show All

  • Visual C# Cross-working between two or more Forms

    I suspect this is a very basic question, which I just haven't encountered so far in the literature. Writing in C# within VS 2005 for Windows Forms development, I want to develop an application which consists of two or more different Forms. I want one of these Forms to contain all the control buttons for driving the application, these buttons causing different actions on the other Forms. When I tried rather simplistically to create and run a trial application consisting of two Forms, with a button on one intended to change the text of a label on the other, it failed at compile time, with an error message saying that my reference to Form2.Label1.Text, was not allowed, IIRC because of the security settings. What should I have done to ...Show All

©2008 Software Development Network