Eyalrev's Q&A profile
Visual Studio 2008 (Pre-release) Application authentication on ServiceHost
Hi, I am programming a distributed application using WCF. The system consists of one console application implementing the Service Host and some client applications connecting to this ServiceHost and its services. For binding netNamedPipes is used. Does someone know, if the ServiceHost can find out the process name of client apps that are sending messages and using the services This is similiar to the server wanting to get the IP address of the client. This is mentioned here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=727886&SiteID=1 Probably the best way of doing that would be to just add a header to the envelope with the information you need, either with a contract or a Messa ...Show All
SQL Server Creating Job to do Daily Backup
I have a client that is using the free MSDE database engine. There is no graphical interface that I know of to manage the day-to-day tasks. I need to do a daily backup to a disk file. I want to start the backup at 7:40pm. My client then will copy that disk file to tape duing his system-wide backup at midnight. I setup a batch file and executed it in osql but the job is not working. No disk file has been created in the last 3 weeks. I don't have a clue what I am missing. Can someone please look at this and tell me how to fix it Thanks in Advance! Debbie Erickson USE master EXEC msdb..sp_delete_jobserver @job_name='PetDB Backup', @server_name='Server06' GO USE master EXEC msdb..sp_delete_jobschedule @job_name='PetDB Backup', ...Show All
Visual C++ VC2005 : Disable c++ exception in Dll application
Hy, I create a simple Dll application that use stl. I try to disable exception to optimize my application. First, I disable exception in project properties and I define "#define _HAS_EXCEPTIONS 0 " in my prefix include. But it doesn't link, I have this error : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::exception::_Raise(void)const " (__imp_ _Raise@exception@std@@QBEXXZ) referenced in function "protected: static void __cdecl std::vector<int,class std::allocator<int> >::_Xlen(void)" ( _Xlen@ $vector@HV $allocator@H@std@@@std@@KAXXZ) 1>Exception.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::exce ...Show All
.NET Development Add Business Object to ArrayList
I have an Order than can multiple sub orders.....I want to save my sub orders to an arraylist....i have a class called sub orders that has all the data pertaining to that sub order....How do i add an entire class to an arraylist so that if i have multiple sub orders they will be based in as SubOrders[0], SubOrders[1], and so on... can someone point me in the right direction...My goal is to have my suborders stored in an array list... Instead of ArrayList, why don't you use List<T> It's typed. Something like... public class Order { private List<SubOrder> _subOrders; public List<SubOrder> SubOrders { get { return _subOrders; } set { _subOrders = value; } } } ...Show All
.NET Development How can I access local machine Port Number.
Hi All, How can I access the local machine port number through programmatically. Thanks for your help. as stated, you need some "operation" to do in order to access/use the port you are wanting to use, via the sockets classes or some other class which requires the usage of ports on the system. ...Show All
Smart Device Development Tree view double click event ?
Hello ,, I have a tree view displaying some files , and i want to open the file after double clicking the item but I can't found any double click event .. What's the solution for this problem Thank you, I use the NodeMouseDoubleClick event for that. http://msdn2.microsoft.com/en-us/library/system.windows.forms.treeview.nodemousedoubleclick.aspx ...Show All
Visual Studio 2008 (Pre-release) How can i hook windows messages in WPF?
I want to use WM_COPYDATA to send some data to my WPF application. How can i do this or is there another way for sending data to WPF application Should have thought of that. Thanks of the support. ...Show All
SQL Server Is there anyway to do SUM on join table?
I would like to start using SQL Server CE rather than SQLite for an application I am developing, due to it's replication support for SQL Server however there appears to be a gaping hole in it that means I can't even consider it. Specifically to do with aggregates against detail tables. Is there any way to do the equivalent of the following in SQL using SQL Server CE SELECT [Customer_Id], [Customer_name], COALESCE([OT].[Count_Orders],0) [CountOrders], COALESCE([OT].[Sum_Value],0) [OrderValue] FROM [Customers] LEFT OUTER JOIN (SELECT .[Customer_Id], COUNT(*) [Count_Orders], SUM( .[Order_Value]) [Sum_Value] FROM [Orders] GROUP BY .[Customer_Id]) [OT] ON [OT].[Customer_Id] = [Customers].[Customer_Id]); Any help would be most welcome Adrian ...Show All
Internet Explorer Development IE7 and changing an image in a different frame
We have a series of GIS mapping applications that run using ESRI's ArcIMS software with a javascript based html viewer. We use a series of frames on a single page to display the base map, legend, table of contents, and an overview map. The applications have been running for about 4 years without any major browser issues. However, the document object coding that we use to update and switch the overview images does not work in IE7: < SCRIPT LANGUAGE =JAVASCRIPT > < !-- ... parent.OverviewFrame.document.images['ovImage'].src = 'image.gif'; ... //--></SCRIPT> Anybody know how to get this working again Thanks! Pasayten I just copie ...Show All
Windows Forms Event Handling
I am creating an app that will allow the user to select tables from a SQL database for export. So I decided to create a Query Builder. I created a form with a dataset that contains two datatables,"SQL_TABLES" and "SQL_COLUMNS". Each table is associated with a table adapter. The command text for the "SQL_Tables" adapter is "sp_tables", and the command text for the "SQL_Columns" adapter is "sp_columns " with a parameter table_name. I supply the table_name parameter from the selected row from the "SQL TABLES" data table. On the form I have added two binding sources for the data tables. Along with this, I have added a binding navigator for the "SQL_Tables" binding ...Show All
SQL Server Is it Possible When the time of Implement SSIS Package show Windows and ASk SERVER NAME ,DB NaME ,PAsword
Hi, now i am currently using SSIS Package using BUI, The Source and Destination File we Given Manullay Connect the Server name ,And Table . Instead of given Manual . How to create Global Variable Connection Manager. Suppose Today i am Working Developement Server. Latter i will be changed Production Server Database. At That time we have to Going to Modify all the Connection .Instead of This How to Create the Connection Manager Gloabe Variable . and How to Use .Please Any one give Sample For Connection Manager variable for Different Server. Thanks & Regards, Jeyakumar.M chennai Just be sure you want userid's mentioned in a plain-text xml file. Personally, where possible, I would suggest windows authe ...Show All
Software Development for Windows Vista Need to port a 32-bit XP driver to Vista 64
I have a simple PCI communications driver for an internally designed PCI network communications card that uses its own protocol. This driver works fine under Windows XP 32-bit. I would like to port this driver to Vista Enterprise RC2 64-bit. Another department within the company I work for developed the driver, but is unable to support this effort for our program at this time, so I'm trying to come up to speed on how to accomplish this. The other department used a tool called DriverWorks Studio (Numega) by Compuware to develop the driver for this card. I know nothing about driver development, but just need to port the driver to Vista 64 for testing and validation. I've read that Vista 64 is going to require drivers to be signed, but does t ...Show All
Visual Studio Team System Calling a web test from another web test
I have generated couple of web tests using Visual Studio 2005. I want to call a web test from another web test where some parameters can be sent to the calling web test. Can anyone let me know how can this be accomplished. You can call one web test from another provided that both are coded web tests and you follow these rules: The calling web test should create an instance of the web test to be called in the constructor of the calling web test. The request enumerator of the calling web test should call the GetRequestEnumerator() method of the called web test, then call the MoveNext() method of that RequestEnumerator until it returns null, and yield return the request returned by the called web ...Show All
Visual Studio Team System C#
hi forum how to solve this problem Inconsistent accessibility: field type 'DataGrid_Hyperlink.DataGridLinkLabelColumn.LinkLabelLinkClickedEventHandler' is less accessible than field 'DataGrid_Hyperlink.DataGridLinkLabelColumn.LinkClicked' thanking u in advance the only time i have seen messages like this are when i've changed the modifier from public to private or protected, therefore "trying" to hide the inherited method. ...Show All
Visual Basic Passing a Structure
I am attempting to pass a structure from one DLL to another. The Structures are identically define in each DLL (Cut-and-Paste), but compiler complains it cannot convert types. I've tried the usual 'fixes' -- moving code around, changing ByVal to ByRef, etc., etc., etc. No Help. Any ideas ERROR: Value of type 'LPM.Menu.User_Data' cannot be converted to 'SS.clsUpdates.User_Data' <CODE> ' ' In One DLL ' Public Class Menu #Region "Structures" Public Structure User_Data Dim ID As Integer Dim Role As String Dim Preferences As String End Structure #End Region #Region "Variables" Public UserData As User_Data #End Region #Region "Update" Priv ...Show All
