Dave LaFlamme's Q&A profile
Visual C# need return values from Threads
Hi at all, I will "Ping" different Hosts to make sure that they are online. I start for each host a own thread, because some Pings need more time than other Pings and after one second, all Hosts from my list must be pinged again. But if I start a ping, I have no control about the results Here my method. for ( int i = 0; i < Hosts.lenght; i++) { t = new Thread ( new ParameterizedThreadStart ( Pinger .startPing)); PingParams pp = new PingParams (); pp.Buffer = 32; pp.Timeout = 12000; pp.URL = Hosts ; t.Start(pp); } I think I made a general error, right The ...Show All
Visual Studio Express Editions finding lesson resource file for absolute begginer video
I am trying to locate the Resource File for lesson 2. It says to find it where I downloaded the video from however I cannot locate it anywhere. Any help would be appreciated. Are you talking about the video's from "LearnVisualStudioNow" The free one's you can download from the MSDN VB Express site If you downloaded the videos, the code file should be in the same loacation you saved the video to. Hope it helps. ...Show All
Windows Forms Do the controls that Visual Studio comes with suck, or am I being unfair?
Hi everyone, I'm wondering what the general feeling is towards the default windows forms (and webforms) controls is. You see, I've heard a lot of people say that the control set that comes as standard is very "rich". The thing is, I'm not convinced that it is really that rich at all. Now the reason I say this may well be my own fault,&n ...Show All
Visual Studio Just Completed a Conversion From an Imake-based Build System Over to MSBuild
Some stats up front, the old system was comprised of 37 Imakefiles with 2333 lines altogether. The msbuild system has roughly the same number of MSBuild project files (.csproj and a single .targets) with a total of 2022 lines. The cool thing is that even though none of these are C# projects I can use a .csproj file and trick VS 2005 into building the MSBuild projects for me. WRT build times, MSBuild appears to be a bit slower but then again it is still in beta. The build system builds: yacc files, objective C, C, C++ and managed C++ source files. Overall the port has gone really well and I have to say that c ...Show All
Smart Device Development Path arguements in the "Additional Dependencies" linker field
Hi, I've recently converted my eVC 4.0 project files to VS 2005 and each of them have for their Additional Dependencies something like: lib\somelib.lib lib\some_other_lib.lib This is the way they were specified in the original eVC project, but now I get the linker error MS_LINK : fatal error LNK1181: cannot open input file '.\lib\somelib.lib' Anybody know why this is the case with VS 2005 MSBuild isn't used to build native C++ projects. I'm moving this post over to the native smart device development forum and someone there should be able to assist you. Thanks, Neil ...Show All
Visual C# Limiting Bandwidth Per Application or Per IP
Does anyone know if it is possible to limit bandwidth somehow by using the Net sockets namespace what I mean is, setting an download/upload limitation per executable of a speicific process, Any code example you may direct me to will be appreciated, thanks beforehand. A common question for new TCP/IP users. From a physical perspective you have zero control over bandwidth utilization. Electrons travel at a consistent speed and the trigger is pulled when you send a packet. From a logical perspective, you do have a few options 1) Reduce the packet priority or 2) Don't pull the trigger as of ...Show All
SQL Server Cannot create publication after SP1 upgrade
After upgrading SQL Server 2005 with the recent service pack, I am unable to create a publication. When I right-click on [INSTANCE]/Replication/Local Publications and select "New Publication...," the mouse cursor turns into an hourglass, but the wizard never shows up, nor is any error displayed. There is a logged error that's been showing up that may or may not be related. The error message is "Replication-(null): agent (null) scheduled for retry. Could not clean up the distribution history tables." Any ideas on how we can restore replication functionality on our SQL Server instance Can ...Show All
Visual Studio 2008 (Pre-release) NetNamedPipeBinding slower with "oneway=true"?
Hi I took David Betz's samples ( http://davidbetz.net/winfx/2006/01/wcf-relative-binding-speeds.aspx ) and modified them to use oneway methods. The results I got were similiar (I used a slower computer), but for some reason the application managed to send more netTcp message than NetNamedPipeBinding messages. Why is that Is there some kind of optimization in NetTcpBinding for oneway methods I redid the test using the latest release. With the security turned off, the named pipes channel is faster than the tcp channel (by a little), but with security turned on and one-way methods the tcp still per ...Show All
Visual Basic Change DB connection
I'm developing a windows application based on an Access database. I used the wizard to create the table adapters, relations and so on and all works fine. But using the wizard the connection to the database is hide, the system does the connection by itself. It supposes that the db is stored always in the same location at the same path. I need to use the application changing as needed the database (same structure different data obviously). My goal is to have a menu item like "Change db" where I can browse the file system and choose the db. Can I change the connection of the dataset at runtime How can I do Dado ...Show All
Visual C++ Parallel port low-level access
Hi guys, I need to play with the data pins of LPT1. Correct me if I'm wrong, but I believe that the best way to do this is with DeviceIoControl. I have found a snipet of code in which the dwIoControlCode parameter of DeviceIoControl is IOCTL_PP_WRITE_DATA, but this value does not seem to be defined in standard VC6 includes, nor in the 2003 Platform SDK. Searches on MSDN, MSN and Google return no helpfull hits. Could it be defined in the DDK If so, do I need to get the whole DDK to get this value Has anyone ever heard of the IOCTL_PP_WRITE_DATA const Thanks for any feedback on this :-) ...Show All
Visual C# Migration from .net to vs2005
hello, Im writting test tools for different hardwares. I started with C# .net and everything seems to work normally. Then the company wants to migrate everything to 2005. So i opened my projects in 2005 and convert them. first of all i noticed that everything run slower (does 2005 mean better ). I have some cross threading issue but i turned the warning off with the system controls so it works like .net. And third thing which is the worst is that the program is not working with some hardware. I think the code is too slow for the hardware to respond correctly back. Is there any way to speed up the code. Im using VS2005 Professional edition. ...Show All
SQL Server SQL Server 2000 connection
Hi, I'm trying to connect to an SQL server 2000 database table from my PDA using VB.NET through a bluetooth connection. I keep getting an error telling me that I cannot connect. I have tried everything that I can think of to fix it. Do I need a copy of SQL Server CE on the PDA, even though I'm only viewing data from my PC's database on my PDA hi u still struggling with the problem ...i need some help from you...i you willing to help me... My e-mail id is lucky2unknown@yahoo.co.in. thanks ...Show All
Visual Basic Sattelite Assemblys
Hi everybody, My application should run with 2 languages. While developing I used german as the " developers langauge " now I need to add french. Well I read some articles about this issue and made a sattelite solution with en other resource file. I knwo there is a tool that can load this "myApplication.resources.dll" file to edit the strings. So I could give the file to a " not developer " and he could just translate my application. I allready worked with this tool but just can't remember the name. I hope you guys know what I mean. Thanks ! Maybe WinRes.exe ht ...Show All
Game Technologies: DirectX, XNA, XACT, etc. beach bar (sims type game)
Hi all, For a university project I've decided to design a beach bar game that has a isometric sims type feel to it. Below is a list of ideas/proposals I've managed to come up with. If anyone has any ideas on how to improve or elaborate on any of the point listed, please drop a message, all feedback is appreciate, thanks! BEACH BAR GAME: Theme Set in tropical paradise beach resort, user competes with computer (or another networked pc) to see who can dominate beach resort. Play against computer or vs. second player over Wan/Lan Set amount of cash to play with. Successful content milestones creating revenue for more expansion options Beach ...Show All
.NET Development Error in JIT Compiler
hi I developed an application in Vb.net and i copied the exe file and pasted it in the desktop and executed the exe an error is generated "JIT Debugging Component Registration is incorrect" can any one help me how to over come this error muthu ...Show All
