X5-Eric's Q&A profile
Visual C++ Can not cancel the creation of a CWinFormsView object?125+
If the PreCreateWindow returns FALSE, then the program asserts and crashes when trying to cast the managed control to ICommandTarget. BOOL CWinFormsView::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) { m_nFlags |= WF_ISWINFORMSVIEWWND; BOOL ok=__super::Create(lpszClassName, lpszWindowName, dwStyle, rect,pParentWnd, nID, pContext); ASSERT(ok); ok=ok && m_control.CreateManagedControl(m_pManagedViewType,WS_VISIBLE, rect, this,nID); ASSERT(ok); ICommandTarget^ pICmdTarget = dynamic_cast<ICommandTarget^>(GetControl()); return ok; ...Show All
Visual Studio 2008 (Pre-release) MsmqIntegrationBinding CorrelationId Transport Filtering
Hi Guys, I need to develop a client application that filters messages from a MSMQ queue by correlation Id., not removing those messages that don't match. Is there a way to do this kind of MSMQ transport filtering by any means with WCF Hello, from what I understood, you want to scan the queue and process only the messages which match certain criteria. WCF isn't really designed for this kind of application. For this purpose one can write a System.Messaging (or native MSMQ API) application which uses a cursor over a queue. The cursor iterates the queue, peeks to every message and process only these which mat ...Show All
Windows Forms Data and multiple threads?
Hi there I'm a bit of a database wimp and need to know the best method (at least the likely best anyway) of doing the following: I have data arriving at the computer from an external source over IP. The data is text delimetered. Records can arrive as slowly as once in 5 seconds and up to 10-20 per second. I need to be constantly monitoring the socket and when packets (records) arrive, spilt it up and put it into a table that is saved to disk. At the same time, the form needs to display a datagridview with the current information as it arrives. The form also needs to be able access the current data and write the data ...Show All
Windows Forms media player
how do i make media player to be my default player i also have real player and everything plays in that Even you are in the wrong forum. Access the preferences screen of Media Player, there should be a tab that's callesd File Association. Re-assign everything back to MP. ...Show All
.NET Development Dynamic compilation of a code with CodeDom
Good afternoon! My appendix will consist from several assemblys. Assembly "A" with help CodeDom compiles VB a code hurriedly and as the reference connects other assembly - "B". Problem: If assembly "A" to connect to project Windows Application compilation passes normally but if this assembly to connect to project Web Application we receive a mistake, at dynamic compilation: Assembly "B" is not found! I have decided to check up where it is, with help My. Application. Info. DestinationPath and has understood that in temporary files, but in this folder there is no my assembly "B& ...Show All
SQL Server HTML rendering with Reporting service
Hi, I am facing problem with HTML rendering with SQL Server 2000 Reporting service. I am retriving records from DB which has HTML tags in it, but when i am viewing the reports it is not rendering HTML elements with the text rather is shows it as normal text as <b> Test the Reports</b> Pls guide me in resolving this problem Thanks in advance Jasvinder Hi Jasvinder - This behavior is by design. There's really not too much you can do except to attempt to "post-process" the report -- In other words, grab the HTML of the report, then re-work it so that the HTML DOES get rendered. I've never seen an ...Show All
SQL Server SSIS Requests...
May be it's too late, but I think this requests could be scheduled at least for a SP1 if it's not possible for the RTM. 1) Execute Task without debugger: it would be very nice to be able to execute a single task without going in debugging mode. Just as you would ask "Start Without Debugging CTRL+F5" but for a single task 2) Customize default properties for task and component: when you drag a task on the package you get a default value for the properties that you could want to change; often I need to change the same property in the same way each time (for example I'd like to set the Batch Size for a OLE DB destination to 1000 instead than 0 ...Show All
SQL Server Looking for information
I'm looking for books or information on command line configuration of settings for things like activating Remote Connections under the Service Area Configuration and setting a port for that connection. What books would be good to get or where can I download papers on this Any help would be appreciated. I'd say the best place to start would be SQL Books Online, http://msdn2.microsoft.com , or you can download them from the Microsoft Download Center, http://www.microsoft.com/downloads . You can run command line configuration through the SACUtility, check out the BOL topic at http://msdn2.microsoft.co ...Show All
Windows Forms Pass value from a WinForm to other WinForm
Hi All, I have a problem how to pass value from one WinForm to other WinForm. I have two WinForms, one WinForm is full of text box and one buttom, once user pass buttom, it will prompt an second WinForm which has a datagrid, user browse and select data in WinForm 2, once user double click a specific value in datagrid, I have write ...Show All
Smart Device Development from pda to oracle DB
i'm passing data from hp PDA that using microsoft application to oracle DB. what supposed script/codes that i can use to solve that. Are you using any database on your PDA What kind of data you need to pass Typically you develop mobile app with SQL Server and use SQL Server's synchronization features to sync mobile database with your server db. Oracle's mobile dB is Oracle 10g Lite with sync capabilities with server dB. You may want to read about their documentation. Manav ...Show All
Windows Forms Adding UserControl to Windows Forms Application
Hi - I have created a small Windows Forms Application test application. I want to add a UserControl to my project that is editable in the Designer. To do this I am right clicking on the project in the Solution Explorer, then selecting Add->AddClass. This brings up a dialog with a tree view with all the class types I can add. I select .Net from the tree control and then the UserControl Icon. When I click Open I recieve a MessageBox that says: "User Controls can only be added to DLLs". Is this true Is there a workaround to this, as I would rather not make a DLL if possible. Thanks in advance - Samy Just f ...Show All
Visual Studio Team System Newbie: Understanding work items
I'm in the process of evaluating TFS and VSTS on an isolated network with an eye towards upgrading our development. We're a very small shop, so we should be able to get along nicely with 5 client licenses and using minimal process (eventually upgrading our process model as we grow). I'm trying to understand something about work items and I can't seem to find the precise scenario I'm wrestling with covered anywhere. First, I want to record enhancement requests. I'm pretty sure based on my understanding that's easily enough done by making a custom work item based on "Bug" with some minor variations on the fields. I prefer to keep bug ...Show All
Smart Device Development Need a couple clarifications please
My company is planning on doing some Pocket PC development in the near future and I have been asked to look into which version of Visual Studio we would need to get. Currently we have either VS 2003 or 2005 Standard in mind. We know 2003 will work for sure but I have a couple questions regarding 2005 that I have not been able to find clear answers on. 1. Does 2005 COMPLETELY with no issues support development for Pocket PC 2003 SE devices using the 1.0 .Net compact framework or do we have to use the 2.0 framework 2. Can the "streamlined" interface of the Standard edition be un-streamlined to make it work like the Pro edition (with obvi ...Show All
SQL Server Connecting to hosted / remote database
Hello, I would like to know whether is it possible to administer a database on a hosted site - i.e inserting some lines, executing a query. I normally access the files via ftp connection. And so far the only way I figured I can mess around with the database is to download it and change it on my desktop PC. Thank You. Toma Pajonk they would need to open a port (which is not advisable) port 1433 by default. the best solution is to create a vpn. ...Show All
Windows Forms .ShowDialog - unusual results
After posting in another forum, I decided this may be best placed in an MS forum. I am developing an application in vb.net, using vs 2003, which has a variety of forms, modules, classes etc etc. One of the more simple tasks I have tried (without any luck) to do, is to open a form as a modal form. That is, to use the .ShowDialog function. Consider this code: Sub Main( ByVal cmdArgs() As String ) Try Cursor.Current = System.Windows.Forms.Cursors.WaitCursor ...Show All
