jrboddie's Q&A profile
Visual C++ suggestion for vs8 compiler/linker speed improvement
Hi, This is intended for the dev studio compiler team. while using filemon to trace an evasive bug in vs8 i saw these lines while linking appear for each system library: (i was loggin just failures in filemon) 10:37:38 devenv.exe:812 QUERY INFORMATION C:\wk\hr\500\src\HRadmin\user32.lib NOT FOUND Attributes: Error 10:37:38 devenv.exe:812 QUERY INFORMATION C:\Program Files\Microsoft Visual Studio 8\VC\lib\user32.lib NOT FOUND Attributes: Error 10:37:38 devenv.exe:812 DIRECTORY C:\Program Files\Microsoft Visual Studio 8\VC\lib\ NO SUCH FILE FileBothDirectoryInformation: user32.lib 10:37:38 devenv.exe:812 QUERY INFORMATION C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib\user32.lib NOT FOUND Attributes: Erro ...Show All
Software Development for Windows Vista How to access parameter in Form ?????
Hi all, First, i send a parameter(UserInfo: user) to workflow. then, change it in workflow. How to get parameter in btnGet_Click method (not use WorkflowCompletedEventArgs, coz workflow is not end) Form.cs /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public UserInfo user { name; age; email; } private void btnSend_Click(object sender, EventArgs e) { UserInfo user = new user("Mars.Wind", 27," Kenkowind@hotmail.com "); Dictionary<string, object> parameters = new Dictionary<string, object>(); parameters.Add("UserInfo", user); Type type = typeof(Wf.Workflow); Work ...Show All
Windows Forms sample code for programmincally install the "correct version" of .net framework?
Hi, I wrote a very simple window form app, all it has is a label and couple buttons. When I send to exe file to another machine, it pops the famous error message: The application failed to initialize properly (0xc0000135). Click on OK to terminiate the application. Then I learned, the target machine needs to have .net framework install and the version of the framework must match where my app was built. My question: Does anyone have sample code for my program to determine if the target machine has the correct version of .net framework installed, and if not then my program would automatically download from msdn and install for user...etc etc etc Or if there are better ways to handle it (such maybe using the deploy option from vs. ...Show All
Visual C# How to read current active IE window's html content
Hi there!, I really hope someone can help me with this issue... it is really cracking my brain up:S What I want to be able to is to load the html content of the current active IE window by a simple IE Frame or console application. Not using the webbrowser component. That is possible but I just don't know how to do it. Maby with the HtmlDocument I have googled and googled.. I found this example http://www.codeproject.com/vb/net/ByPassAutomation.asp which is VB, but other than that the example does NOT work.. well I have IE 7.0 so maby it's because of the tabs.. can anyone please help me Regards, Qawi Hi ahmedilyas, No it's not the webbrowser component in C#:-) It is the open website in Internet Explorer 7. ...Show All
Visual C++ error LNK2001
Hi, (I saw the post on same subject but it seems to be a little different. so I'll use some word from that post!) There is a project earlier written in VC++ 6.0. I opened the same project in VS. NET 2005 and I am trying to compile. The code compiles properly (with couple of warnings) but while linking I am getting unresolved external symbol errors like this: The linker seems to have problem with seeing .obj from files in program (which are in the debug directory). It doesn't seem that the /Zl switch or the /NODEFAULTLIB are on. 1>Linking... 1>Utm.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zone.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zones.obj ...Show All
.NET Development First time using serial port: help for receiving data and manage serial port bahaviour
Hi everybody! First I apologize for my english, then I apologize if I make stupid questions, but it's few days I started using Visual Basic. I'm trying to make an application using serial port: I need to send from an external device data and text to PC and I have to distinguish between data and text: if I send a Byte 30h to the PC, how can I tell to my application if it's data (30h) or text (30h = "0") I was thinking to using CTS, DTS, CD, etc. etc. pins to tell PC if it's data or text and I've seen in this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=627321&SiteID=1 these pins have to be enabled; does enabling one of these pins auto-enables the handshake for serial port How can I clean the ReceivedData buffer ...Show All
Visual Basic connect to backup SQL Server if primary SQL is down
I want to my application to connect to synchronized backup SQL Server if primary SQL Server is down or network have problem. I use VB5 and RDO to make connection to SQL server, Does anybody know how to implement it thanks. well you could try to connect to the first SQL, if it times out or server does not exist, then it will throw a SQL Exception (check the error code given to determine the type of error) and then try to connect to the other SQL Server. psuedo: try connect to SQL 1 catch sqlexception e if e.errorcode = <SomeErrorCodeServerDoesNotExist> then connect to SQL 2 end if end try however this could be a bad way of doing ...Show All
Smart Device Development StackOverFlow Exception
Hi all, I am developing an Pocket PC application in vs2005 in vb.net with requent load of xml files.when i run the application, sometimes it shows STACKOVERFLOW EXCEPTION and quits from the application.My question is 1)Is it pocketpc [Hardware] related problem b'cos the same application runs fine in the other pocket pc. Best Regards, MMBVN If you firing event from the same event that absolutely can cause this problem. To avoid the problem - don't do it. If you can't avoid it then your application will crash. If your current design won’t allow you to stop doing that then you’d need to redesign the application so it can be avoided. ...Show All
Software Development for Windows Vista Custom Workflow
Can we create our own custom workflows Can we load the custom activities to the workflow at runtime How data access can be done for workflows using sql server How can we store the workflows to database How can we access the workflow from the database Please help. Karthick. Karthick1020 wrote: Can we create our own custom workflows Yes, you can do this by extending the SequentialWorkflowActivity or the StateMachineWorkflow or you can create your own with custom execution semantics. Karthick1020 wrote: Can we load the custom activities to the workflow at runtime Assuming you mean add new activities at runtime, the answer is yes. This i ...Show All
SQL Server smtp test
hi, would you know how to know if a connection can be established to an smtp server without even issuing any smtp command i want to be able to do this using ssis, script component. thanks. I've taken a look at the System.Net.Mail.SMTPClient class that l used in my example that loonysan pointed to above. There's no method in there that checks connectivity hence using a TRY/CATCH as loonysan suggested might be the best way! -Jamie ...Show All
Visual C# Copy and paste data between 2 notepads in C#
Hi All, I need to open 2 notepads programatically. If I copy data from one notepad, and try to paste it in the next notepad, it should not get pasted. Can anyone suggest me a solution for carrying out the above one. I'm working in an e-publishing concern. Here we process a lot of 3b2 files. When we start a 3B2 application, scripts are generated. These scripts generate data. This data is copied from one file to another file. But the data should be unique for each file. Since people are copying and pasting this data, we encounter certain problems. So to overcome this problem, we need to find a solution. Can u suggest some other solution for this problem Thanks! ...Show All
SQL Server more membership in "master.sys.login_token" than "net group"
Hi. I'm investigating whether I can lock down a feature exclusively to only those who belong to a certain domain group. From what I understand, the master.sys.login_token view holds information on all the groups I'm a part of. However, I'm looking at the output from SELECT * FROM master.sys.login_token and see a number of groups that I can't verify I have access to. I have even run the DOS command " net group <domaingroup> /dom " and don't see myself listed in its output. Is this normal Is the output a culmination of everyone logged in at the time @@version = 9.00.2047.00 Thanks for your quick response.... I guess what's shocking me more than anything is the fact that sys.lo ...Show All
Windows Networking Development how to download multiple files by socket with FTP in .net
I am trying to make software like FTP client. on vb.net I Connect with Ftp server and able to download single file at a time by sending command PASV and RETR <filename.ext> while Retriving file i cannot send any command except ABOR. and can't send PASV and RETR again to retrive another file. What should I do .net jonkies Can any one give me logic for it thankx in advance. Please post future .Net questions to the .Net Networking forum. The System.Net namespace includes two classes that already implement the FTP protocol for you. Please see FtpWebRequest and WebClient classes. ...Show All
Visual C# Immediate window in C# VS2005 - how to loop through collection
I've got an error during loading data into DataTable - "Constraint violation...Relax constraints.". I need to loop in immediate window to find DataRow that HasError. I tried: foreach(DataRow dr in dtab) if(dr.HasErrors) Console.WriteLine(dr["ID"]); but it failed: Invalid expression term 'foreach'. Is there any way to achive it Billberry don't loop through the rows of the table looking for the errors - loop through the error rows only Get the error rows. DataRow [] theRows = dt.GetErrors(); //need someplace to store the error dt.Columns.Add( "ErrorDesc" , Type .GetType( "System.String" )); if (dt.HasErrors) { / ...Show All
.NET Development How to consume webservices if you dont know where they are.
Hello, this is my situation. I have a page, where I need to load a list of products in a dropdownlist. That list of products may come from differente webservices, for now, lets suppose that all the webservices have a method called SelectProducts() and that it returns a dataset. The problem is that I may have many providers of the webservice so I got a table with this information user, pass, domain, endpoint, typeofauthentication. I dont have too much experience with webservices, I have created and consumed webservices but I have to add the reference in VisualStudio 2005. The idea I have is that I must create the webservice locally and then change the webservice.uri property and thats it but I dont know if its so simpl ...Show All
