Dominic Lim's Q&A profile
Windows Forms Problems deploying my ClipBoard App as a Smart Client
Hello there, I have an smart Client application that runs fine over the network. However, I just recently added a Copy-and-Paste feature, which makes use of the system Clipboard class, to the application. When I test this copy-and-paste feature I keep on getting the following error "The current thread must set to Single Thread Apartment mode bdefore OLE c ...Show All
Visual C++ C2002: invalid wide-character constant after moving to July CTP of VS2005 Beta Team System Edtion
The following code fragment from a header file compiled alright with Visual Studio 2005 Team System Edition Beta 2 (from DVD), but when I installed the July 2005 edition, I now get a compiler error: C2002: invalid wide-character constant Any sugestions as to what could be the problem Thank you. -------------------------------------------------------------- #ifdef _DEBUG #pragma comment ( lib , _DNT( "AcGe17d.lib" ) ) // Error points to this line #else #pragma comment (lib, _DNT("AcGe17.lib") ) #endif --------------------------------------------- Ayman, While discussing this with a coworker, w ...Show All
.NET Development Communication Application server
Hi all, I need to develope a communication layer between a windows application and industry field device. The windows application will read and write values from the device. I want to ask how to develope an application server of the layer that servise the windows application. The windows application will be the client and the server read and write the values. Please help. Best regards... Can you explain in little more detail 1. Where is the field device Is it on the internet or local network 2. What sort of communications exist between the windows box and the device 3. Are there three thi ...Show All
Visual C++ Compiler error when using the WDSSDK in C++/CLI
I am using the raw ado interfaces of MSN Desktop Search object: using namespace Microsoft::Windows::DesktopSearch::Query; SearchDesktopClass^ search = gcnew SearchDesktopClass(); _Recordset^ results = search->ExecuteQuery (queryString, columns,nullptr,nullptr); //error C3293: 'Fields': use 'default' to access the default property (indexer) for class 'Microsoft::Windows::DesktopSearch::Query::_Recordset' Fields^ ResultFields=results->Fields; //the same error with another error : C2227: left of '->default' must point to class/struct/union/generic type &nb ...Show All
Visual Studio Express Editions What books to get
I have looked at the local book store for books on programming. There seems to be a selection of books on VB6 and also on VB.Net. Which would be a better choice for me to get in order to learn the Express edition Any major differences I should know about when reading one of those that I need to keep in mind when I'm applying it to VB Express Thanks! Whatever book(s) you get, get those that cover VB2005. The other versions, won't help you with VB2005. There are a lot of new books for VB2005 and even some that include a copy of VB2005 Express Edition. I haven't used but one book on VB2005 and that was Introdu ...Show All
Visual C# Threadsafe application
Hi, In how many ways I can make my application threadsafe For example, I have an object that can be accessed by , say , 3 threads at time, what kind of options do I have to make this object thread safe Are there any recommended situtations or scenarios in which each multithreading technique should be used I am making an application that receives live data and displays the data in a graphical format. I need to constantly update the graph as the live data comes in. I also need to store the live data in some object, for eg: arraylist or any other data structure, before displaying it. In some cases I also need to perform some operati ...Show All
SQL Server Solution Explorer and SQL Server
I am a Visual Studio .net developer and understand Solutions and Projects in VS.net. Nevertheless, it appears that the paradigm of using Solutions Explorer in SQL Server is not exactly the same. That is, in Visual Studio you can't get anything done without creating a solution first. In SQL Server, it is entirely possible to get a lot done without a solution and the ability to create and make use of a solution seems almost an after thought or an add-on. I am particularly interested in using a solution in SQL Server to allow me to make use of SourceSafe. In the past, we jumped through all kinds of hoops to keep a runni ...Show All
Visual Basic path does not exist or is not a directory
I am calling shell when i click on a label and opening an explorer on clicking.Its working fine at my end at Windows XP but displaying error at client side with a popup window with this text "The path 'c:\....' does not exist or is not a directory" on clicking the label. I tried this application at many systems and working fine at all. I also tried on Windows 98 and Windows 2000. Can i get the solution for this The code on clicking the label is as follows: Private Sub Label9_Click() Call Shell("explorer " & Chr(34) & App.Path & "\OtherForms" & Chr(34), vbNormalFocus) End Sub When i click on label, popup win ...Show All
Windows Forms How to display "Please wait, while your request being processed" message
Hi All, I need to display a message "Please wait..." while the user's request is being processed.I am making winforms application and on "Submit" button, the request takes long time to pull data from database and then display it to user. During this wait, Can i display some message. Is there some standard way to do it. thanks Hi Paul, Thanks for your valuable response. I was able to make splash form work. Thanks... ...Show All
Visual Basic Property not visible
I have created a form with a defined property called InputSpread. Imports System.Drawing Public Class ImageForm Inherits System.Windows.Forms.Form Private cr As FarPoint.Win.Spread.Model.CellRange Private bmap As FarPoint.Win.Picture Private MyBitmap As Bitmap Private myInputSpread As FarPoint.Win.Spread.FpSpread Private ptStart As Point Private recCrop As New Rectangle(0, 0, 0, 0) Private EstablishCrop As Boolean = False Property InputSpread() As FarPoint.Win.Spread ...Show All
Visual Studio Team System Visual Studio 2005 Professional
Will Visual Studio 2005 Professional be able to access Team Foundation Source Control directly or will we have to use the TFS 'explorer' to do Get/Check out/Check in etc I seem to remember reading that Professional would be able to directly access TFS Source Control but this page http://lab.msdn.microsoft.com/vs2005/productinfo/productline/default.aspx seems to contradict that (and I can't remember where I read what I think I read) One thing to consider is that SourceSafe is included in the MSDN Premium subscription. Does this help address your need ...Show All
Smart Device Development Help with binary code conversion
I am brand new to the VB compact framework and cannot find much information on how to convert this piece of legacy code to code that is compatible with the compact framework....... piFileNum = 91 FileOpen(piFileNum, psFileName, OpenMode.Binary, OpenAccess.Read, OpenShare.Shared) A = Space(2) FileGet(piFileNum, A, 1, ) SizeVIN = (Asc(Mid(A, 1, 1)) + Asc(Mid(A, 2, 1)) * 256) - 4 RecNumber3 = SizeVIN + 3 Numbytes = RecNumber3 - 4 + 1 A = "" A = Space(Numbytes) FileGet(piFileNum, A, 4, ) FileClose(piFileNum) What is the proper way to do this in .NET Thanks!!! Legacy rec ...Show All
Windows Forms DataViewGrid bug? (keeps auto-generating columns)
When we use the grid, it auto-generates columns for us. At first I thought that was handy. We removed some columns, but they are again re-generated automatically. ITEM TWO We also noticed that the order of the columns is not the same at run time as it is at design time. Note: I am using VSTS Beta 3. Beat regards, Jerry Nixon You need to set the AutoGenerateColumns Property to false to prevent the columns from being generated automatically like so: grdCategories.AutoGenerateColumns = false ; categoryCollectionBindingSource.DataSource = CategoryFactory .GetAllCategories(); ...Show All
Visual Studio Tools for Office Excel VBA Freezepanes
Hi, I have an Excel 2003 model where I create and work in two windows. At the end of a module, I freeze panes at cell B10. This works in window 2 but not in window 1. Code for both windows is identical. The pane freeze at the end of the sheet. The code is as below. Application.Windows(1).Activate Worksheets(ActiveWorkbook.Worksheets.Count).Activate Range("B10").Activate ActiveWindow.FreezePanes = True 'change zoom for window ActiveWindow.Zoom = 75 Any help would be greatly appreciated. Thanks. I recommend that you post your question to a forum that deals with Ex ...Show All
Visual C++ Is it worth learning Win32 programming now?
I am a proficient c & c++ programmer. I was planning to learn Win32 programming. However, managed code seems to be the future now. Although Win32 will be supported in Windows Vista, Microsoft is touting Avalon as the next generation windows programming platform. So is it worth learning Win32 programming now Should I stick to .NET and managed code I was also planning to learn driver programming in windows. Will knowledge of Win32 help me in driver programming Or would driver programming also undergo a change in Windows Vista Drivers will never be written in managed code! So you have to learn at least b ...Show All
