visual-studio-2008-sp1

How to auto start window service

孤人 提交于 2019-12-12 08:53:14
问题 I have a window service which i developed in c# (vs2008). please tell me what should i do to make it auto start after installation and also auto start on every time when system gets restarted. EDIT: I am using setup & deployment project to install it. Thanks 回答1: Follow the instructions given here to add an installer to your Service application. Pay particular attention to step 5, where you set the StartType property. To start the service after installation, see Automatically start a Windows

Unable to get milliseconds from GetSystemTime()

我怕爱的太早我们不能终老 提交于 2019-12-11 03:13:13
问题 I am trying to print out seconds and milliseconds resolution timing and i am using GetSystemTime() . This is my code: GetSystemTime(&datetime); RETAILMSG(1,(_T("Time After Data Sent to USB: %d:%d\r\n"), datetime.wSecond, datetime.wMilliseconds)); I print to the platform builder debug output using RETAILMSG() , but i am only able to print up to seconds resolution, so i will see something like 48:0 where the milliseconds is blank. I am not sure why this is happening as i receive no complaints.

Handling 10 Clients with a Single UDP Server using Winsock

别等时光非礼了梦想. 提交于 2019-12-11 02:15:52
问题 I have already established a Server-Client Application using UDP Sockets, but my Server is not capable of handling more than one Client at a time. Now I want to modify my applicaton in such a way that there are 10 Clients each running on different machines and my Server running on a separate machine. I want my Server to be able to communicate with each of the 10 Clients running on 10 different machines. I also don't want to miss the data coming from any of the Client. What is the best

boost::thread build error (unable to link lib && unresolved external)

余生颓废 提交于 2019-12-09 16:48:37
问题 I'm trying to follow a simple tutorial of Boost::Thread (ver 1.4-3) in VS 2008: #include <boost/thread/thread.hpp> void Func() { // Do something } void main() { boost::thread _thrd(&Func); _thrd.join(); .... } During compilation it produces this error: Error 1 fatal error LNK1104: cannot open file 'libboost_thread-vc90-mt-gd-1_43.lib' CConsole which I have to resolve by adding #define BOOST_ALL_NO_LIB . However, it gives me another error: Error 3 fatal error LNK1120: 2 unresolved externals C:

How to open .hxs Help files with DExplore.exe?

此生再无相见时 提交于 2019-12-08 04:03:20
问题 I tried to open .hxs file with (with "hxs "extension with right click) with "dexplore.exe" from: C:\Programme\Gemeinsame Dateien\Microsoft Shared\Help 9 but noting happens, I have Visual Studio 2008 SDK Version 1.0, and VS2008 installed on my system. Any idea what to do in order to see .hxs Help files ? Br, Milan 回答1: .Hxs files must be merged into the collection and then you can open it via dexplore.exe. It is not .CHM so you cannot directly open it in dexplore.exe. But thirdparty viewers

Is there a “back” button/hotkey for navigation in Visual Studio 2008?

旧时模样 提交于 2019-12-04 23:23:03
I jumped to a line in a code file in Visual Studio using "Go to definition". I am now lost in the file and I want to go back to the line I was at before. How do I do it? You can hit Ctrl - (Ctrl and the minus sign) I believe. Also, Ctrl Shift minus navigates forward. Depending on your mouse software, you should be able to map those keyboard shortcuts to your mouse's back/forward buttons. You can typically do this with gaming mice, and there's probably third-party gaming software that lets you do it also. Mapping "Find all references" to a button is great too. You can also use you mouse back

boost::thread build error (unable to link lib && unresolved external)

送分小仙女□ 提交于 2019-12-04 04:32:47
I'm trying to follow a simple tutorial of Boost::Thread (ver 1.4-3) in VS 2008: #include <boost/thread/thread.hpp> void Func() { // Do something } void main() { boost::thread _thrd(&Func); _thrd.join(); .... } During compilation it produces this error: Error 1 fatal error LNK1104: cannot open file 'libboost_thread-vc90-mt-gd-1_43.lib' CConsole which I have to resolve by adding #define BOOST_ALL_NO_LIB . However, it gives me another error: Error 3 fatal error LNK1120: 2 unresolved externals C:\xx\Documents\Visual Studio 2008\Projects\CConsole\Debug\CConsole.exe Error 1 error LNK2019: unresolved

how can i visible an invisible control with jquery (hide and show not work)

怎甘沉沦 提交于 2019-12-03 15:43:36
问题 How can I change the visibility of a control with jQuery? I have a control that its visible property to false...(not css) When I used show() function for it nothing happened, it seems that hide() and show() methods are for css set of a control , not visible property... Thanks for your answers, Best regards 回答1: You can't do this with jQuery, visible="false" in asp.net means the control isn't rendered into the page . If you want the control to go to the client, you need to do style="display:

how can i visible an invisible control with jquery (hide and show not work)

僤鯓⒐⒋嵵緔 提交于 2019-12-03 05:20:00
How can I change the visibility of a control with jQuery? I have a control that its visible property to false...(not css) When I used show() function for it nothing happened, it seems that hide() and show() methods are for css set of a control , not visible property... Thanks for your answers, Best regards Nick Craver You can't do this with jQuery, visible="false" in asp.net means the control isn't rendered into the page . If you want the control to go to the client, you need to do style="display: none;" so it's actually in the HTML, otherwise there's literally nothing for the client to show,

Fiddler not sniffing SOAP traffic from ASP.NET website

时光毁灭记忆、已成空白 提交于 2019-12-03 01:55:03
问题 So far I've been successfully using fiddler to sniff web service traffic from both test fixtures, console apps and web projects. Today I noticed I am not able anymore to sniff that kind of traffic if I am running my web application (it's a ASP.NET website, hosted locally on IIS). I see all the local traffic but the web service traffic is just gone (the service is being hit as I do see the response debugging into the code). I am still able to successfully sniff soap requests and responses from