ismar's Q&A profile
Visual C++ "Users" app gets error: WSAEACCES "Administrators" do not
I am attempting to port an application from windows NT to XP Pro.. When the app is ran as an administrator every thing works fine, However when I run as a User I get the error WSAEACCES on the call to sentto(..). Everything I find says the same thing, that I need to call setsockopt (SO_BROADCAST) first, well that does not change anything. I think there is some permission in windows I need to add to the Users group however I can't seem to find it. If any one has any ideas or knows a way around it in the code, I would greatly aprecate some advice. Thanks in advance Nick Hello Re: "Users" app gets error: WSAEACCES "Administrators" do not The right plac ...Show All
.NET Development Launching url by means of Start method
Hi everyone, Running Framework 2.0. I can't work out with this snippet of code. Ultimately it says me: "system could not find the specified file" Dim sURLS As String = String .Empty Dim sRead As New StreamReader(System.Environment.CurrentDirectory & "\" & "URL.txt" ) Dim devolucion As Process = Nothing Dim miProceso As New Process Do While Not sRead.EndOfStream sURLS = sRead.ReadLine miProceso.StartInfo.FileName = "iexplore " & sURLS miProceso.Start() Loop According BOL when you set a value in filename property is the same when you d ...Show All
Windows Forms Turn 1 ID column into two columns from another table.
Here is my example. One table would hold transactions with a product ID. The ID comes from a product table where there are make and model columns. Ex. Transactions Table - Date, number, ..., product ID Product Table - ID, Make, Model Can I set up automatic databinding with this senario. I could easily set up the ID column on the datagridview to show make instead of ID, but then I would have repeats of all the makes depending on what is in the database and I wouldn't be able to select the model. Can I have two columns whos items in a combobox change based on the first column and databind that to an ID The first column would hold distinct makes and the second column would hold models within that make. Then the result would be ...Show All
Windows Forms C# GUI Threading
I'm really new to C# and am looking for some help regarding a threaded app. Basically, one thread handles messages as they arrive. Instead of trying to Invoke a delegate to update the main thread (the one with the GUI), I am trying to find a way to simply write the message to a buffer, and then force the GUI to check the buffer, updating as necessary. How can I go about forcing the main thread to do this I don't have any control over the messaging thread; it's loaded from a library for which I don't have the source. I can control what it does with a message, and that's about it. There are a couple of options available to you. The first option is to use a timer in the main UI. When messages co ...Show All
Windows Forms How can extract an object from form.designer by string name? (for examble a buttton dropped on)
i would estract an object from my form, for example a button by name. I drop a button in a form, named button1: and try: Dim o As Object = CallByName( Me , "Button1" , CallType.Get) but don't work because he said that error message: "Public member 'Button1' on type 'Form1' not found" someone have any solution thank's CommonGenius.com wrote: CallByName only works for public members. By default, controls that are added to a form using the VB form designer are added with Friend visibility. Also, I believe the CallByName method only works for properties and methods. A control reference is a field. sure, i belive too. another importa ...Show All
Visual Studio Tools for Office XLMS doc won't load in 2007
when I save a file in xlms it gives no indication of an error. When I open it from the windows explorer it has an exclamation point on the xlms document and does not load properly. Do anyone know what this means or how to fix it Not sure if it has anything to do with it, but I am using custom properties. Thanks. Hi Jennifer xlms I don't know of any Office file format named xlms. Do you mean xlsm (Excel 2007 worksheet with macros) In any case, this is a forum that concerns programming Office applications using the Visual Studio .NET VSTO technology. End-user questions aren't supported here. You need to try asking this in an Excel newsgroup. Start in this interface then look under Excel for available g ...Show All
Smart Device Development how to debug an application on the device with GPRS connection?
Hi Guys, Could you please let me know, how to debug an application with the GPRS connection on a pocket pc device, Since when you connect with active sync the GPRS connection is lost. i also wanted to know, if we connect to the PC with active sync can we ping to ip address got by the PocketPC device if not how can we share the PC's N/W through the USB interface and be able to ping to the device Thanks a lot, in advance to your response Best Regards Sanjeeth You can debug without AS: http://blogs.msdn.com/vsdteam/archive/2005/04/28/413304.aspx I would advice using Ethernet or Wi-Fi for that. ...Show All
SQL Server Could not establish trust relationship for the SSL/TLS secure channel
Hi, I am working on sql server reporting services 2005 , i got this error while deploying a report Error 1 The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. C:\Temp\NotificationReport\db.rds 0 0 NB: i checked IIS no ssl required on all sites. Any Help Thanks Tarek Ghazali SQL Server MVP I also have this problem. I have my virtual directories under the default website for Windows Server 2003 IIS 6.0. I have installed the certificates and the the report server works in SSL, but not the Report Manager and the default webpage (home.aspx-->page/folders.aspx) states the "could n ...Show All
Silverlight (formerly WPF/E) Can arbitrary bytes be passed as the ImageSource of the ImageBrush?
I'd like to download an image from a server using XML / AJAX. Is there any way I can load these bytes of the image into an array and pass that to the ImageSource of the ImageBrush Thanks. No, at this time there ins't a way to take bytes and set them to be the image source for an Image. I'd suggest using the web server to do the combining and then make the image available. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
SQL Server Copy database from SQL Server Standard to SQL Server Express
Hello, I am currently faced with a problem of copying a database from SQL Server 2000 to SQL Server 2005 Express using the SMO classes. I am using VB.NET and i'm just trying to take an exact copy from the server. Any ideas on how I would do this in code Any links would be great. Thanks. Rob Try this code, it should solve your problem: Dim srv As Server Dim srvConn As ServerConnection srv = New Server("MyServer") srvConn = srv.ConnectionContext srvConn.LoginSecure = True Dim db As Database db = srv.Databases("AdventureWorks") Dim strDBName As String strDBName = "TestDatabase" 'Define a Transfer object and set the required options and properti ...Show All
SQL Server Merge replication using files.
Is it possible to use merge replication without direct connection from suscriber/publisher I'm trying to find a solution to use files for send/receive merge-replication info from/to server. ^_^, Thank You. There is currently no support for Merge replication with files. Are you concerned about the snapshot fules or you want all of the syncs to be using files If the former, you should look at alt_snapshot_folder. If the latter, there is no support as of now. ...Show All
Windows Forms DataGrid Windows forms Insert - delete problem
Iam using Windows forms 1.1 Datagrid to create a online edit of some datatables. I use dataset as a datasource for my grid and have provided insert and delete functions in any row of the grid. The problem i face is after deleting a row. I have a validation routine that validates the rows below the deleted row. If one of row has a problem i am restoring the deleted row in same place. As datagrid doesnt support of roll back in deleted row i have a backup datatable before deletion and restore the record from it. The problem i face is here only. when i restore the record i update it directly in Datasets datatable and call its acceptchanges() method too. so the table has the new record and dataview too gets the new record in the same position w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Determine which controller pressed first
I've looked at the SpaceWars and various other samples but I can't seem to figure out how to accurately tell which controlled did something first. For instance, lets say I have four controllers and the first one to press the A button wins. Since everything happens in a loop, there's no accurate way to tell who exactly pressed the button first. I'd have to check each Players GamePadState one at a time and I can't derive from the GamePad class so that's out. Anyone out there have a solution or a similar problem Maybe I'm thinking too much like a event driven windows programmer to see the solution. Nah, that's no fun man. Why don't you do what games like "SeenIt" do, where if there is a Tie, you ...Show All
Visual Studio 2008 (Pre-release) Custom Controls Toolbox
Hi, In my case the Cider Aug 2006 CTP not add automatically any my custom control on the Toolbox. Using WinForms exists the feature and this improve the custom control's development requirement time. There is a plan to add this feature for the future -- Andrea Gelati WPF WPF/E Control's Developer WPF Control Toolkit Project Administrator on CodePlex.com Personal Blog - http://agelati.spaces.live.com ...Show All
Visual C# windows application
hai all whether the windows application can be used in web application If so explain me in detail. with regards shankar sofist india hey_imsankar@yahoo.co.in no it can't really, you have to make the application into a web application, unless you create some embedded control or something which shows the WinForms app within the WebApplication, but the viewer has to have .NET Framework installed for this to work I believe and is pretty tricky embedding a winform app into a WebApp ...Show All
