kerrycas's Q&A profile
Visual C# how to know when form lost its focus
Hi, Is there any way to know when Form lost its focus I have tried Deactivate event but it does not helped me. Thanks in advance Thanks for your help - It works. Is there any way to know when application lost the focus. I mean even my application in on and he start working on another application. ...Show All
.NET Development passing a safe Array as an out parameter to a .net component
I have a .Net component that passes a stringArray to a client program via an out parameter. This works fine from a .net client and I have successfully passed a SafeArray from MFC to a .net component as an [in] parameter. What seems to evade me is returning returning an array of BSTR from a .net component via the CCW as an [out] parameter, back to this MFC client Can anyone help regards Hi Robert, This call seems wrong to me: SafeArrayGetElement( pSC , &bound[2] , XX); 1) you must pass a BSTR reference to be filled: SafeArrayGetElement( pSC , &bound[2] , (void*)&XX); 2) the third parame ...Show All
Visual Studio 2008 (Pre-release) EntitySet<T> - any chance you can un-seal it?
I would like to be able to extend EntitySet<T> to add some implementation-specific functionality, however it is currently marked as sealed, any chance it can be un-sealed for the next CTP in addition, any (rough) idea as to when this [next CTP] will be Thx in advance, DaveW I 2nd that.. please make the architecture open instead of sealed and non virtuals and no interfaces. that just suck and will force us to use 3rd party tools when we might have been able to extend dlinq to our needs with very little effort in some cases.. ...Show All
.NET Development CPU problems in a .NET COM+ application
Hi, I have a COM+ application developed in C# which is based on Microsoft Exchange Store Events. The application is using asynchronous save event to extract each e-mail fields and base on these fields add a "special tag" to the e-mail. The COM+ application is extracting the fields and sends them to another application which runs on another computer. This application analyzes the content of the fields and is returning the "special tag" for the e-mail. The "special tag" is saved by the COM+ application in the e-mail. I have tested this application on some test servers and it is running fine, but when I installed on a real life serv ...Show All
Visual FoxPro DBclick
the dbclick event can't be effect after i wrote program in mousedown event in grid control.how can i fix it thank you A button would work, either on the form or in an adjacent column. The other way is to workaround it, but it's a bit of a pain. You might add a timer: On the first mouse down, start the timer. On the second mouse down check to see if the timer has been started. If it has stop the timer and do the double click code. If the timer expires the single click code runs. The problem with this is that there is a small lag before the single click code runs and that is often unacceptable. The other way would be ...Show All
Windows Forms Determine if there is a full screen application running
I am currently trying to develop an application to augment the taskbar, the same project for which I have previously asked about making a program an appbar (thanks again Brendan). I would like to modify part of it's design programmatically when there is an application running full screen. I can change the display as I want to, but I do not know of a way to determine if there are any applications running that have been maximised. Is this possible ...Show All
Visual Basic Attach USB port to a virtual serial port
Does anyone knows how to link a USB port to a virtual serial port in order to communicate with the USB device with serial communication protocol ...Show All
Smart Device Development CAB/INF, install directory out of control with user selected install volume
CAB/INF/CeAppMgr together with user selected installation volume. When users let the installation be done on device as suggested by CeAppMgr/Add-Rem-Prog the installation directory is set as described by Installdir in the .inf. When user choose to select another installation volym the suggested (and unchangeble) install directed is no longer the one set in the .inf Now it's generated by two variables in .inf, Provider under [Version] and AppName under [CEStrings] are merged together with a blankspace in between. Details ------- INF: [Version] Signature = "$Windows NT$" Provider = " MyComp " CESignature = "$Windows CE$" [CEStr ...Show All
SQL Server Deliver to SharePoint
Quite a while ago Brian Welker talked about Reporting Services WebParts (which are available now...) and a delivery extension for SharePoint. Is anybody aware of it I googled around and didn't find anything about that (besides Brian's statement)... Is there any other option to deliver reports to SharePoint (beside the "delivery to file system" and import/link it to SharePoint) Thanks, Currently Microsoft does not offer a way to deliver to SharePoint. There are plans to include this in a future release however. -Daniel ...Show All
Visual Basic retrieve selected data from SQL database using vb.net
I already watch the video in the vb.net express to learn about the data binding. But the problem that i face is when i want to retrieve certain data from the database. the video just show how to fill and update. who ever know the code to retrieve the selected row from the SQL database using vb.net 2005 thanks There are a number of ways to do it but a SQL data reader is one way http://www.developerfusion.co.uk/show/4278/2/ You can use a dataadapter and simply change the SQL statement so that it picks up a single record - a dataset can consist of only one record. And you don't have to bind the dataset to controls. Again ...Show All
Visual C++ error C3861: 'sscanf': identifier not found, even with argument-dependent lookup
Hi, GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_ILANGUAGE, szMachNLCode, (sizeof(szMachNLCode)/sizeof(TCHAR))); sscanf (szMachNLCode, "%x", &langcode); on compiling i am getting following error for sscanf () line. error C3861: 'sscanf': identifier not found, even with argument-dependent lookup i tried adding following code to stdafx.h but it didnt work: #define _WIN32_WINNT 0x0500 #include <windows.h> i get above error when compiling with VC6 and .NET 2003 compiler. please help. Thanks, Chanakya did you include stdio.h #include <stdio.h> ...Show All
.NET Development What happens underneath the BulkCopy Object of ADO.NET 2.0
Hi , Does someknow how does new Bulkcopy work in ADO.NET 2.0 What happens underneath because of which the performance gets better with BulkCopy Regards, Anjana There are a number of reasons why bulk-copy is faster. Here is a summary: No per-row statement execution. When you do multiple inserts without bulk-copy, each insert is a statement in itself (regardless of whether it's batched together with other statements). With bulk-copy, we don't incur the cost of executing a statement for each row, the whole copy operation is a single thing. No multiple network round-trips. Once the bulk-insert operation is setup, w ...Show All
.NET Development How to Use FileSystemWatcher in Network Directory
Hi All, I want to use filesystemwatcher for the directory present in the network.How can i do it Is there any way to solve it I thought since its related to networking i can get some valuable information from here. I tried using filesystemwatcher but it was not able to read the directory . Even if i give the ip address of my local machine i'm not able to read it. Is it related to IP address Please Solve my problem I ve written the Code in the below format: fileSystemWatcher1.Path = @"\\192.168.0.104\E\Test\" ; ...Show All
Visual Studio Express Editions First Project
I have been charged with gathering all incoming faxes, converting them to PDF files and thru keywords (Names Departments etc.) sending them to specific personel using Active Directory. I have a program that will convert to PDF, but I need to know how to search and distribute with (I hope) VB. I am brand new to this so any help would be greatly appreciated. After some investigation it would appear that FTS (Full Text Search) on SQL Server 2005 would be the most elegant way to go. Unfortunately, this feature is not avaliable in the express edition. Since we will be getting SQL soon maybe I'll wait until ...Show All
SQL Server Grouping & Concatenation?
Hello, I have a report with a table containing 2 groups (Role and Person, where person is a subgroup of role). I am trying to concatenate the names of a series of persons who are grouped by their role within an organisation so that a report that would usually appear as: ... Board of Directors Director1 DIrector2 Director3 Advisory Board Adv1 Adv2... ... Will appear as: ... Board of Directors Director1, Director2, Director3 Advisory Board Adv1, Adv2... ... This can easily be done in crystal reports by concatenating the person names in the header section of group 2 (persons) and printing the result in the footer section of group 1 (rol ...Show All
