webbda's Q&A profile
.NET Development question about threading!!
The "ThreadStart" delagate doesnot allow method that takes arguments. so how to pass some parameters when creating new thread. ...Show All
SQL Server need Update of Select using TOP 1
I need to update a table as follows: Update item1, item2, item3, item4 in a table where column1="email_address" and column2 is ordered acending so the most recent entry for a specific user is updated. column2 is a time stamp. Pseudo code something like this: UPDATE Table1 SET item1, item2, item3, item4 WHERE Table1 is TOP 1 ORDERED BY column2 ASC column1="email_address" So i want to update only the most recent entry of a customer with a specific email address. I can't get the SQL command together that will do that. I aint that bright so specific syntax always helps. Thanks, Bill Are you using SQL Server 2005 Then you should have a look on: Limiting Updated Data by Using TOP If you ...Show All
Windows Forms DataGrid
Dear all, I'm using VS2003 framework 1.1 , DB oracle,connection using System.Data.OracleClient. I'm working on Client/Server Application so the query is done in server side and send the result using binarywriter in the client side receive the result using binaryreader now i want to fill the result in DataGrid because i dont have DataGridView and also i dont have DataTable any help Thanx this is my code in client side where is my mistake !! note : I don't have DataGridView !! is it only in VS2005 or ..... DataSet ds = new DataSet(); DataTable dt; public void RunClient() { try { do { try { cases = log.reader.ReadString(); switch (cases) { ...Show All
SQL Server Installed SQLServer 2005 TrialEdition
Hi Fellows, I am really in a fix.I have downloaded the trial version from MIcrosoft site and run setup with named instance. But I cannot find my management console link anywhere. Can anyone help me here . My site is : Windows XP Professional SP2 Installed : SQLServer 2005 180Day Trial Pack downloaded from Microsoft Network. I ran setup from : server directory and also from tools directory. In my programes menu I can only see Configuration Toolsunder which there are three options : 1) SQL Server Configuration Tool 2) SQL Server Surface Configuration Tool and 3) SQL Server Error and Usage Reporting Is it SQL Server 2005 Enterprise edition XP SP2 does not support Enterpr ...Show All
Windows Forms Error launching Clickonce app from intranet
I have an app which is deployed on an intranet site. When I try to launch the <app>.application file, I get the error below. BUT, if I do a RUNAS and run under a admin user of the webserver, the app will launch. Running framework 2.0 Windows Server 2003 Here is the error: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES ...Show All
SQL Server transaction log size growing very large
hi all, my tlogs at the subscriber are growing very large irregardless of my recovery mode. any help using snapshot-push replication thanks, joey If you want data to be bulk-loaded in small batches while the snapshot is being applied to the subscriber, you can: 1) Specify the unofficial /DisableResumableSnapshot parameter on the distribution agent command line, this will prevent each bcp file from being applied in an atomic transaction 2) Specify a smaller batch size via the /BcpBatchSize parameter Alternately, you can try to get the benefit of minimal logging by taking advantage of partition switching support as follows: 1) Deliver snapshot to an empty staging table 2) Switch the staging tabl ...Show All
Windows Forms how do i add a read me text file at the end of installation of windows forms msi project
I can add the read me dialog at the end, but i don t know how to display the rtf file. Thanks. hay this wont work since the Finished dialog should be the last UI or else it will give an error while installing.... what i want is.... i need to display the readme file as well as i need to start an application.... is there any way so that i can remove the finished UI.... or else tell me the way to add 2 check boxes to the Finished UI so that i can call readme and start the application... if this is not possible plz let me kow is there any way that i can override the Finished UI and call my own form... ...Show All
SQL Server Microsoft.SQLServer.ManagedDTS.dll reference error in VB.Net 2002
I am using VB.NET 2002 and we have set up a test environment running SQL Server 2005. I am trying to add a reference to Microsoft.SQLServer.ManagedDTS.dll which is required to run a DTS/SSIS package from VB.NET. However the dll does not show in my add reference listing so when I select BROWSE and select the actual DLL I get a rather long error message telling me that only 'dll' and COM components can be referenced. The exact message is: A reference to 'C:\Programs Files\Microsoft SQL Server\90\SDK\Assemblies\Microsoft.SQLServer.ManagedDTS.dll' could not be added. This is not a valid assembly or COM component. Only assemblies with extension 'dll' and COM components can be referenced. Please make sure that the file is accessible, ...Show All
Visual C++ C++/CLI managed code calling methods on unmanaged C++ classes call incorrect functions
Hi, We are doing a transition project where we are wrapping unmanaged C++ code with C++/CLI managed classes. The various methods and properties on a given managed wrapper class are mostly just pass-through calls to the wrapped C++ class. Mostly this works fine. Sometimes, however, the call from the managed code ends up in the wrong C++ function. IOW: void ManagedMethod1( void ) { m_pUnmanagedObject->Func1(); } actually calls pUnmanagedObject->Func20(). So far, it seems that every time this happens, the called method on the UNmanaged C++ class is declared "virtual"; it also seems that the incorrect method that is actually called is also declared virtual. I have tried in one or two situations to change the leg ...Show All
Windows Forms Event name when form is brought back into focus
Form has been minimised, i then use alt +tab to bring it back into focus. What event name is this. There doesnt appear to be an event name focus. sorry if this is really obvious, is early :) Does anything happen before this event I listen to this event, have a breakpoint as soon as it is called, yet the breakpoint is never reached, an exception happens. whenever the application loses focus then gains it again, this occurs. It says : Cannot access a disposed object named GroupBox. But from what i can tell, the UI on the form doesnt contain a groupbox and shouldnt contain one. ...Show All
Windows Forms question on the publish wizard
hi, i have a small application in vb.net with access mdb. i want to make exe file that will have the mdb file in it. i try the publish wizard, but i didn't find a way how to make him copy the mdb file to the exe files ( i want that when the user first run the startup file it will copy the mdb file to his computer to the root i choose, so it will work fine with the application) hope somebody can help,, mikalush If you've added the file to your project, you can set the Build Action, I think, to Data File... I'm not sure "Build Action" is the right property, it might be one of the reference ones though. If you do that, then ClickOnce will pick up the file and deploy it for you. It ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GDI+ question
If this is the wrong forum for a GDI+ question, please move it where it should be, thanks! I am leaning to use GDI+ in a simple C++/CLI windows application, and I can draw lines and boxes to my hearts content in a window, but as soon as I move the window off the sceen/minimize it, etc, the picture that I have drawn disappears. I have a feeling there is a simple reason for this involving binding the image appropriately to the window, but I can't figure it out. All I do is make a button that runs the code below when it is clicked: Graphics^ FormGraphic; FormGraphic=this->CreateGraphics(); for (int i=100;i<=280;i+=20) { for (int j=100; j<=280;j+=20) { if (((i/20)-4+(j/20)-4)%2==0) DrawingBrush = gcnew Solid ...Show All
Smart Device Development Migrating Evc 4 project To VS 2005 Generate error C2440
Hi, I am Migrating Evc 4 project To VS 2005 ,but it Generates error C2440: The Debug info as follow: .\MyView.cpp(51) : error C2440: 'static_cast' : cannot convert from 'void (__cdecl CMyView::* )(void)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)' None of the functions with this name in scope match the target type the IDE pointer to this line: ON_MESSAGE(WM_KDV_HOTLINK, OnHotLinkKDVExplain) the following argument is in the MyView,cpp: afx_msg void OnHotLinkKDVExplain(); #define WM_KDV_HOTLINK WM_USER+101 above is define in a header file. My project is : Single Document others using default. and Vs 2005 professional version 8.0. ...Show All
Visual Basic txt files
How can I access text files in VS2005 and display them in Arrays Any help or websites containing a "How to" would be greatly appreciated. Thanks! Also, more information on split() method of the string class Cheryl, Anderson, 90.7 Richard, Martin, 84.5 Bethany, Porter, 94.3 Joe, Smith, 79.5 Ruth, Kinney, 82.9 Harod, Arthur, 74.9 Erin, Marx, 69.4 The grading scale is. (92,88, 82, 78, 70, 60, 0) These are the lowest scores possible to get the following letter grades. Possible grades are as follows(A, AB, B, BC, C, D, F). I hope this is what you are asking for. The files are already located in my bin file as I put them in there. (The grading scale and p ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Cant Get sound on my Compaq Presario V6000
Ok. This sounds like a newbie problem, however, I am currently having difficulty with my laptop. It wont play sounds for the life of me!!!!! I feel so angry about it, and I hate it, however, I dont know what to do, and I cant get this sound card top work. Help would be apprieciative. Thanking you all in advance. Ok first off you need to visit the Compaq website and ensure that you have the latest sound drivers for your model. Copy and paste the link below into a browser. http://h10025.www1.hp.com/ewfrf/wc/swPfinder query=v6000&tool=softwareCategory&lc=en&cc=uk&dlc=en Next you need to ensure that you haven't set the sound to be muted. For this you need to go to control panel, sound and audio devices. Check that the soun ...Show All
