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

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

dcube9

Member List

Mitch5713
T. RUIZ
wuzzle
小朱
subhasam
pdform
Johan J
SHISHIR WAHI
hye_heena
svxtc
wynfred
NBaig
Mike36
MS_PowerUser
Hyde
jdn
Sai A
Steve Furby
mamatham
Ferdinand Kuiper
Only Title

dcube9's Q&A profile

  • Windows Forms pasing message between forms

    Hi, I am designing an application where I have a main form.Before I show the main Form, the user sees a form for connections, which in turn may load another form for a new connection. The problem is: While I am loading the form for connections, I may encounter an exception/or I will need to pass information to the main form. I need to know how I can do this in a simple manner Any help is very much appreciated! akin_l wrote: The problem is: While I am loading the form for connections, I may encounter an exception/or I will need to pass information to the main form. I need to know how I can do this in a simple manner Have you tried with custom events , your mainform ...Show All

  • SQL Server Sql Reporting Footer

    Are there plans to put a true report header and footer in Sql Reports I have 90% of our reports moved out of Crystal Report but, becuase of the lack of a true report footer the remainder have to remain where they are. On these reports we have legal information that takes up to a third of the page and is required to be at the bottom of the last page. If this isn't possible could we be given the ability resize the footer height on a specfic page Thanks Joe WHat about putting that on the body as the last control of the body That should act like a footer. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

  • Visual Basic Hard Disk Serial Number

    hi. i want 2 know that ,is there anyway to get hard disk serial number(Hard Disk , not Hard Drives) without using WMI. plz forgive me for my bad english go0d luCk Special thnx to all of you for your helps tnx Simao for your help that was very useful . Go0d LuCk ...Show All

  • SQL Server Deleting Older rows in the table

    Hi, I have a table which has around 50,000 rows. Can I delete the rows older than one year If no, Can I delete the last 25,000 rows (older rows) from the table Can you assist me with the SQL Statement to do this Thanks Santhosh I agree with you (only as a last chance "trick", of course.) Also, I often use this kind of logic as a "tie breaker" when there is a duplicate date value (which happens sometimes since the datetime datatypes are not really granular enough). And like you say, sometimes when you have to find a way to get rows, you have to do something like this. Clearly I agree with Jens too. Plan ahead so you never have to do this in production code! ...Show All

  • .NET Development Can MarshalAs interop attributes be set dynamically or overloaded?

    Let's say I have an ATL based COM object that exposes the following method signature: STDMETHOD(Store)(/*[in]*/ BSTR bstrEncoding, /*[in]*/ BSTR bstrMessage, /*[out, retval]*/ long *plResult); The first parameter (bstrEncoding) in this method indicates what type of buffer (i.e. either "ansi" or "unicode") is actually contained in the second parameter (bstrMessage). To correctly use this method from managed code I need to be able to manipulate how the second parameter is marshalled in my custom RCW (created by using reflector to dissassemble a VS generated interop assembly). For example: If a unicode string is passed as the second param: int x = Foo.Store("unicode", someString); I'd simply accept the default ...Show All

  • Visual C++ problem about font

    problem about font i write CMFont class,it inheritance CFont e.g: class CMFont:public CFont {..........}; ======================== CMFont font; font.CreateFont(...); GetDlgItem(IDC_FONTID)->SetFont(&font); error error C2664: 'CWnd::SetFont' : cannot convert parameter 1 from 'CMFont **__w64 ' to 'CFont *' how to CMFont convert CFont thank:) The code is OK on my computer. But the code CMFont* font; will get your error. Do check it! ...Show All

  • Visual Basic Media Player gets resized after form is closed...

    Hi, I've placed a Windows Media Player control on one of my forms, and works great. The user then plays a song, and that works great also. When he/she closes the form, and reopens it afterwards, and pushes the 'play' button, the Media Player gets resized to... almost 1/4 of the original size. What can I do about this Regards, Francois vdv, Netherlands ...Show All

  • Visual Studio 2008 (Pre-release) Weird Error -> Underlying connection closed

    I have a WCF windows service and client and their end points are configured as shown below. The really weird thing is the service works only if I DO NOT set these 2 properties on the concrete return object. this .Response.Result = RequestResult.Failure; this .Response.Errors.AddException(ex); Now when I debug, the above 2 lines do not produce an error and it steps out of the function without any problems. However, just as it is about to exit the main function, it throws an error given futher below: Other properties on the Response object can be set without any probs. I have also managed to write unit tests to serialize and de-serialize the Response objects successfully as well. Any Help Will Be Greatly Appreciated Sha ...Show All

  • Visual Studio Need help building web projects with MSBuild?

    If you're interested in building your web project using MSBuild, we can save you the trouble of posting the question and waiting for an answer :) To build web projects with MSBuild you need the Web Deployment Project add-in. You can get it from http://msdn.microsoft.com/asp.net/reference/infrastructure/wdp/ . Another option is to use Web Application Projects , which give you the VS2003 model of working with ASP.NET projects, but the benefits of ASP.NET 2.0 and VS2005. Happy building! Neil I tried using MSBuild to compile a web application project in a machine that has the .NET 2.0 Framework but doesn't have Visual Studio 2005, and it returns the following error: error MSB4019: The imported project "C:\Program ...Show All

  • SQL Server SQL express License question

    Hi, I wonder is SQL express free to "hobby developer" or to "anyone".... I am thinking to install a SQL express edition on my client's computer, and install our software on my client's other computers, the software will remote connect to the SQL express server. Is it *legal* to do so if it is legal, then who would pay for a copy of SQL full-version 2005 Many thanks Hi Batikit... Currently I develop clietn/server app. just like yours. I just want to know, may be you can help me. how can you set the connection string or user management in slq expres serv so it can be accessed remotely I use Connection String: Data Source=MYREMOTESVR\SQLEXPRESS;Initial Catalog=microDB;Integrated ...Show All

  • Windows Search Technologies Deleted items still showing up

    How do I get deleted items (email inbox, deleted items, sent items, etc.) to stop showing up in the search results. For example, I recently deleted a file from my inbox. It was in my deleted items folder until the end of the day when I rebooted my computer. My Outlook settings delete all files in the deleted items folder upon exit. The next day I do a search and this file shows up in the index in two places - the inbox and the deleted items folder. It is in neither. It does not exist anywhere anymore. Is there a setting to take deleted items out of the index ...Show All

  • Smart Device Development Retrieving Data from SQL any where using PPC2005 help please

    Retrieving Data from SQL any where using PPC2005 help please   Hi,   I’m new to this to be genital pleases.     Ok with the following code I can get a list of uses in to the data grid for all uses that have the id 10   System.Data. DataSet sqlDS = new DataSet ();   SqlCeConnection sqlConn = new SqlCeConnection (DB_Connection_string); System.Data.SqlServerCe. SqlCeDataAdapter sqlDA = new SqlCeDataAdapter (“Select name From data where user_id = 10”, sqlConn); sqlDA.Fill(sqlDS, "table" ); dataGrid2.DataSource = sqlDS.Tables[ "table" ];   what I would like is to be abol to get a string that containes the first user name returned with o ...Show All

  • .NET Development Best Way To Detect Client Calling a Web Service

    In my web service application, I only want it to be functional when called by our client software and only certain versions of that software. If it is called from an unauthorized client it will always return a False. I'm checking Context.Request.Browser for the browser name and version. Is there a different or better way to do this or am on on the right track with this I know that someone could spoof this information but our other security measures should prevent any problems. EDIT: Well, it looks like the Context.Request.Browser returns information for IE when the Web Service is called by a VB.NET application so what I had in mind won't work. Any other ideas   Thanks, I did look at WSE 3.0 and X509 certificates ...Show All

  • Visual C++ using some old MFC code in a managed dll

    Hi - I have some low-level C++ code to interface with a chip. The code works fine to open and download a configuration file. However, I want have that functionality from a VB app, so I'm trying to create a managed C++ dll that I can reference, pass the file path from VB and let the old C++ code process and download the file. The C++ code uses afxwin.h with all the old MFC classes, e.g. CString DownloadDlg::GetFileContents(CString fileName) { CFile file(fileName, CFile::modeRead); CString contents; // Create the buffer DWORD fileLength = (DWORD) file.SeekToEnd(); char * pFileContents = new char [fileLength + 1]; file.SeekToBegin(); // Read it in file.Read(pFileContents, fileLength); pFileContents ...Show All

  • Visual C++ DLL with C++ - Design question

    Hi, I come up into a question about which method would be better to write my DLL. 1. Write it purely in C 2. Wirte the class in C++, then use C function wrapper 3. Write everything in C++, and export the whole class Can anyone kindly point out the pros and cons of the above alternatives, and if there're other designs, please kindly let me know too. Thanks! Creating class instance inside every exported function is pretty simple. But this doesn't allow to persist class instance between API calls. If this is OK for you, do this. If you need persistence, take a look at Windows API and handles concept. For example, GetDC, ReleaseDC and DrawText. GetDC creates some object and returns handle to it. Drawing functions li ...Show All

©2008 Software Development Network