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

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

LeoXue

Member List

pessi
luben111
stonejc
pmak
darrens
Neo2001
waterking
AlanKohl
j1m68
Chaz Clover
Hector Urizar
nil130180
publicgk
Shu Gao
alien-
Titu
SCourt.NET
Rajkumar Cheney
Snickel65
mclagett
Only Title

LeoXue's Q&A profile

  • Visual Basic Can PrintPreviewDialog size be started with the size specified?

    I want to put a PrintPreviewDialog up with the size much bigger than the default, which is too small to read and always has to be re-sized by the user dragging the bottom-right corner of the dialog box (awkward and annoying!) or double-clicking the header for full screen etc.. Is it possible to pre-declare the height/width before calling the dialog Can't find anything obvious.... Dear Huy, Excellent - thank you. I spent ages stumbling round not quite thinking of that, you're a star - it works just fine. Kind regards, Nick ...Show All

  • SQL Server sql server 2005 (express) reporting service - authorization problem

    Hello I generate a report (.RDL) using Business Intelligence studio and then deploy it. This deploys sucessfully (see below) ------ Deploy started: Project: Report Project5, Configuration: Debug ------ Deploying to http://localhost/ReportServer$SQLExpress Deploying report '/Report Project5/Report1'. Deploy complete -- 0 errors, 0 warnings ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ========== ========== Deploy: 1 succeeded, 0 failed, 0 skipped ========== When i try to view in IE browser I am required to enter credentials. I enter Admin user and password but this does not work - not authorized to view page. Looked in IIS -> ReportServer$SQLExpress and would have expected to see report he ...Show All

  • .NET Development Odbc and OleDb to VFP with tables of 64 or more fields and records of 1000 or more problem

    I am trying to move data from SQL into VFP tables. On this particulare table i have 80 columns and approx 14000 records. I have the Data in a DataSet and create an insert command. I found the odbc has a problem with more that 64 columns and more that 1000 records as shown below. I thought I would try OleDb and it has the same problem. Any idea of a workaround This is ridiculous. Gary http://support.microsoft.com/default.aspx scid=kb;en-us;275577 Hi Gary, In most instances, OLE DB is definitely a better choice than ODBC. I'm surprised you have the same problem with OLE DB. Your table is well within FoxPro's table size limitations. Without seeing your code and your table it ...Show All

  • Visual C++ Directory listing

    I was thinking about writing a quite simple program in c++ which purpose is to write all .mp3 files in a folder and subfolders onto a .m3u file. I cant find any standard library functions returning the next file or folder in a directory... Does anyone know how to do this (I'm quite a beginner in c++... I have read "c++ whitouth fear"! Does anyone recommend a book to continue learning ) Hi, I think you must write recursive function to get files in subdirectories, you must call "CFileFind::FindFile( pstrName )" and then call "CFileFind::FindNextFile()" to get another files, but note you must skip . and .. files, and check if it is a directory by "CFileFind::IsDirectory()", so you must search ...Show All

  • SQL Server Optimising Merge Replication for both server and client subscribers

    I need to merge replicate data to two different types of subscribers: Clients subscribers which will have a very small percentage of the data from the central database. The data on these machines will be managed using dynamic filtering on host_name() Server subscribers which will manage a copy of all the data from the central database There will be far fewer server subscribers than client subscribers. As I see it I have two options for the configuration 1) Use two separate merge publications – one which is filtered and one which isn’t 2) Use a single merge publication and setup the filtering so that the server subscribers receive all the rows Which option is likely to lead to better performance ...Show All

  • SQL Server Caching Application Block and SQL 2005 SQL Dependency

    I am building a web app using VS2005 and SQL 2005 I would like to use the Caching Application Block to cache objects from my BLL. I was wondering if there is a way of utilizing the build in SQLDependency in SQL 2005 with the Caching Application Block Does anybody have tried this, are there any samples on the web Thanks, Newbie You can take a look at http://msdn2.microsoft.com/en-us/library/a52dhwx7.aspx http://msdn2.microsoft.com/en-us/library/t9x04ed2.aspx ...Show All

  • Visual Basic Combo box (again)

    Hi guys I am having a few problems with combo boxes, i have inherited a combo box to add some more features, i also provide a data view as the datasource, this side is working well. I have the dropdown style to dropdown and the autocomplete mode to suggest append. If the box has focus and i hold alt + arrow down then the list displayes. If i type for example 'a' whilst the list is dropped down a further list is displyed with my selection, if i highlight my choice and then press enter then the box is empty. If i use tab then my selection is displayed. is this correct or am i doing something wrong here i have experimented with different autocomplete modes. Regards Steve I think there is a bug in he ...Show All

  • Visual Studio Accessing user list from VSS

    Hi, How to get the user information from the Visual Source Safe (VSS). I want to display the associated users for a project configured in the VSS. Can someone help me to get the user list from the VSS using C#. Thanks in advance, santhosh Open the database first IVSSDatabase db = new VSSDatabase(); db.Open(@" \\alinc00\vss ", "Admin", "password"); Get the item of interest ( http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.sourcesafe.interop.ivssdatabase.vssitem(VS.80).aspx ) IVSSItem item = db.VSSItem ("$/path/file.txt") Use the Checkout collection to browse all the checkouts of that file ( http://msdn2.microsoft.com/en-us/library/microsoft.visualstu ...Show All

  • Visual C++ Debug assertion on application creation

    Hi, When I create my application, i get the follwoing assertion from the CWinApp constructor :- AFX_MODULE_STATE* pModuleState = _AFX_CMDTARGET_GETSTATE(); AFX_MODULE_THREAD_STATE* pThreadState = pModuleState->m_thread; ASSERT(AfxGetThread() == NULL); Any idea what could be the reason I seem to have no clue stuck The application links to many user dlls and the assertion faliure occurs during the creation of th exe. Thnx in advance Regards Prateek Hi, pModuleState->m_thread should be null before the Assertion statement 'ASSERT(AfxGetThread() == NULL)'. And CWinApp Constructor will be called immediately once the application starts execution of Application object instantiation. So ,it shoudn' ...Show All

  • Visual C++ OpenMP vcomp.dll problem

    Hi everyone, I have just bought and installed Visual Studio 2005 Pro, and I have a problem with its OpenMP support. I have been using the Beta 2 before, and wrote code that uses OpenMP. As you might know, vcomp.dll is required when using OpenMP. The files can be found inside some redist folder of VS 2005. So I copy this file to the executable folder, and try to start the exe. I get an error which says that it tries to load vcomp.dll wrong. However, I don't control the loading myself, so I assume this is a bug. Also it worked fine with the Beta. The Beta 2 vcomp.dll does work. But it causes some hang/lockup/deadlock somewhere, which didn't happen in the Beta. Does anyone know what I should do Is it possible that they shipped a wrong DLL fi ...Show All

  • SQL Server getting System.Configuration.ConfigurationErrorsException was unhandled by user code

    hi folks i am using enterprise library 2.0 for net framework 2.0 when i added a custom handler class for exception handling i recieve the following error System.Configuration.ConfigurationErrorsException was unhandled by user code Message="The type CodeDecodeConsole.CriticalErrorExceptionHandler, CustomException, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from configuration could not be created." Source="Microsoft.Practices.EnterpriseLibrary.Common" BareMessage="The type CodeDecodeConsole.CriticalErrorExceptionHandler, CustomException, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from configuration could not be created." Line=0 StackTrace: at Microsoft.Practices.En ...Show All

  • SQL Server Disaster Recovery Plan example

    Hi, Can any one please share the sample disaster recovery plan. I dont know what I have to include in it and how to prepare it. Your help will be highly appreciated. Thanks in advance... http://www.sql-server-performance.com/disaster_recover_examples.asp http://www.e-janco.com/drp.htm gclid=CP3Hmtzk74cCFRNlYQod5wY-hA http://databases.about.com/od/sqlserver/a/disaster.htm ...Show All

  • Windows Forms DataGridView duplicated columns issue - what's the fix/workaround?

    This issue has been brought up before in other posts, but I don’t seem to be able to get it to work in any way. I have a class (I call it ‘myDGVControl’) that inherits from DataGridView. I brought this class into the designer and added my own columns using the designer. When I drag a myDGVControl onto a form’s surface, the form re-generates the columns and causes them to be duplicated. I already tried (with no success): - Setting AutoGenerateColumns = false ; even though I have no data bining. - Avoid calling InitializeComponent() more than once (if that is what the designer is doing) How can I get around this problem Thanks! I too faced the prob ...Show All

  • Visual Studio 2008 (Pre-release) How to use hardware rendering / video flicker

    How do you tell your application to use hardware rendering The following call is returning 0 The Tier is designed to give you a rough idea what capabilities your machine has under ideal conditions. That is, do you have sufficient video memory to reasonably expect that 3d will run well, etc. It's based entirely on your hardware/memory and it does not react to load (i.e. it's based on total memory, not currently available memory, etc), and cannot be set. It will, however, react to remote desktop connections, etc. That said, what you're possibly hitting with the Tier is the bug described here: http://wpf.netfx3.com/files/folders/developer/entry5494.aspx I wrote a little utility that will attempt to "fix up" your registr ...Show All

  • Visual C++ How do you intanstiate objects on the fly and destroy it?

    If I have a defined struct, how do I create objects from it whenever user wants to in my main loop and destroy them when finished using them There shouldn't be a limit to how many objects user can create as long as the memory allows. What I'm trying to get done is to instantiate objects whenever needed in the main loop instead of making a giant array of objects. Help please. It's not necessary to instantiate the objects on the heap and store pointers to them. You can directly store the objects. struct foo {}; std::vector<foo> container; ...Show All

©2008 Software Development Network