msksurfer's Q&A profile
Software Development for Windows Vista Unable to create folder in C:\Windows\WinSXS in Vista OS
Hi, I was checking compatibility of one of my MFC application in Vista OS. Usually if the MFC shared dlls are not present, i used to copy them in WinSXS under folder with the required folder name like x86_Microsoft.VC80.xxxx. (Installing VC++ Redist also didnt work in my case.) And this would make the application work perfectly. When i tried to do the same thing in Vista OS, it failed to create the folder. I removed the read only attributes and tried again but in vain. The error i am getting is "User didnt have enough permission to perform this task" but I logged in as Administrator. I tried to change the security attibutes of Administrator but could not find the Users under Computer Management. Is there any solution ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Lighting problem
I have some light problem on a X file (asteroid1.x), while it rotate in my sample: it is easy to see that light effect on some triangles change in to much visible step. You can see what I mean looking at this short movie: http://www.tonigreco.it/_xna_/problemaLuce.wmv Here the code that load X file: // Mesh and texture. asteriod = content.Load< Model >( @"Content\Models\asteroid1" ); texture = content.Load< Texture2D >( @"Content\Textures\asteroid1" ); // Setup Meshes Effects. foreach ( ModelMesh modelMesh in asteriod.Meshes) { foreach ( BasicEffect effect in modelMesh.Effects) { effect.Alpha = 1.0f; effect.DiffuseColor = new Vector3 (0.72f, 0.72f, 0.72f ...Show All
.NET Development Problem with select string
Hello, I have set up a c# program that reads data from Navision tables via ODBC - connection. In Navision som fields have blankspaces like Remaing Quantity in the Item Ledger Entry table. This seems to be a problem when I execute my selectionstring. for example: // This selectionstring contains blankspaces (Aterstaende antal) and I get error. command.CommandText = "SELECT Artikeltransaktion.Artikelnr, SUM(Artikeltransaktion.Aterstaende antal) " // Here is the problem + "FROM Artikeltransaktion " + "WHERE (Artikeltransaktion.Lagerstallekod='LID') AND (Artikeltransaktion.Oppen=1) " + "GROUP BY Artikeltransaktion.Artikelnr " + "ORDER BY Artikeltransaktion.Artikelnr" ; // // This string works fine // command. ...Show All
Visual Studio 2008 (Pre-release) CallContext on WCF
In remoting we had the CallContext which was very good and extensible. Where is it in WCF I realised MS have probally renamed it to something totally unrecognisable, so what is it now called Just joking!!! Michael You might want to investigate OperationContext . OperationContext.Current obtains the current operation (call) context for the service method. Dave ...Show All
Visual Studio Snippet indentation
When inserting nested snippets in C#, tab or indentation depth is respected so that when, for example, inserting an "if" snippet inside another "if" snippet the second block is inserted to an increased tab depth e.g. : if ( true ) { if ( true ) { } } In the VS SDK example IronPython language service, if you have a snippet like : if $expression$: # indented line the snippet is always inserted as if the tab depth is 0, or, in other words, with the exact indentation given in the snippet, e.g. : if x: # indented line if x: # indented line If the tab depth had been extended correctly, this would instead be : if x: # indented line if x: # indented line Is there something that n ...Show All
Visual Basic about event
Hi, I am doing a project, but it is not database project, I will communicate with a machine. I will read/write parameter from that machine and to that machine. Now I use textbox for a parameter for writing a new value to the machine, and in the form, I use timer to get parameter from the machine and update textbox..... what I want to realize... it is like database system. when textbox gets focus, I can write new value to machine, and when textbox doesn't have foucs or no keyboard pressed, I can get data from machine and put it into textbox.... and also when I check textchanged event of text box, like following: Private Sub CommandTxt_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Comm ...Show All
Smart Device Development Mapping Virtual COM Port to Mobile USB port
It's possible to create a virtual com port mapped on the device usb port . I wan to print over a usb cable instead of printing with bluetooth. Thanks. That's fine for my own report engine. But what to do if i've a spooled job on a .prn file on mi storage card and want to send to the printer by USB cable (currently i'm doing this with bluetooth). Thanks, Andrea. ...Show All
Software Development for Windows Vista SMS 2003 Admin Console Remote Control on Vista 5308?
I have the SMS 2003 Admin Console (with Service Pack 2 applied) running on Vista build 5308, but I can not remote control a client. I can connect to the site database just fine, see my collections, use the Resource Explorer and even make the initial Remote Tools connection OK via Port 2701. But when I try to actually initiate the remote control, I get an error message that states "Cannot establish a security context with the client." If I try again it prompts me for security credentials but nothing will work. I have my firewall disabled while on the domain, so that isn't an issue. LOL, I know I'm not supposed to be running Vista in production on my primary workstation, but it's running great with this being my ...Show All
Windows Forms How to choose the execution thread for a delegate?
Hello. I wonder how to choose a specific execution thread for a delegate. With "simple" async delegate calls, we just know it will run on some thread of the thread pool, but not on which one. Control.Invoke(...) method allow to get the delegate running on the GUI thread of the control. The BackgroundWorker component matches it, I don't know how, to get back to the "main" thread (in opposition to the worker thread), whithout a reference to a control. Is there any way I can do something similar to the BackgroundWorker component, choosing the executing thread for a delegate without reference to a control Thanks... ;) nobugz wrote: The IDE debugger and the &quo ...Show All
SQL Server Cannot connect to SQL Server
Recently, I installed a fresh copy of Windows Vista Business. Then, I installed SQL Server 2005 Developer Edition. Upon completion I get a message saying that I should update my SQL Server with SQL Server SP1. Good. Go to Microsoft.com, download and installed it. Update succesful. Then I get another message telling me that I need to update to SQL Server 2005 SP2 because that one is also need it for compatibility with Windows Vista. Good. Go again to Microsoft.com and install SP2. Trying to connect to the server is imposible. When I try I get the folowing message: Cannot connect to Val-PC ( the server name ) Login failed for for user 'Val-Pc\Val' (Microsoft SQL Server, Error 18456 ) Can anyone help It would ...Show All
SQL Server Executing a View timesout through Open View
Hello All, I have created a view that will potentially return a huge number of records around 500,000 rows. When i execute this view by clicking Open View from the SQL Management studio i get the following error SQL Execution error Error Source: .Net SqlClient Data Provider Error Message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding However the query executes when paste the generated query of the view in the query designer window. It returns the 500,000 rows. I am wondering if there is some option that i will have to configure to return a large size result set in view designer. I also want to know if this is an inherent problem with view designer. Any he ...Show All
Visual Studio Express Editions Append Table to Access MDB
I try the followin code to add a new table to a Access Mdb, but the last line (when i append the table to the catolog) indicate a error saying that the type is invalid. What do i wrong Dim cn As New ADODB.Connection Dim cat As New ADOX.Catalog Dim tbl As New ADOX.Table Dim col As New ADOX.Column Dim oKey As ADOX.Key cn.Open( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\CSysTmp\NewMDB.mdb" ) cat.ActiveConnection = cn tbl.Name = "Test" tbl.ParentCatalog = cat col = New ADOX.Column col.Name = "Id" col.Type = ADOX.DataTypeEnum.adInteger tbl.Columns.Append(col) col = New ADOX.Column col.Name = "Name" col.Type = ADOX.DataTypeEnum.adVarChar col. ...Show All
.NET Development go to an element and display the content
I have the following xml file < xml version="1.0" encoding="ISO-8859-1" > <!-- edited with XML Spy v2.5 NT - http://www.xmlspy.com --> < xml-stylesheet href="testing_xsl.xsl" type="text/xsl" > <languages> <language language="English"> <categorie categorie="Colours"> <word English="red" Spanish="rojo"/> <word English="blue" Spanish="azul"/> <word English="green" Spanish="verde"/> <word English="black" Spanish="negro"/> </categorie> <categorie categorie="Food"> <word English="red" Spanish="rojo& ...Show All
Visual C++ H LogonUser
I am running a exe on windows 2000 which have LogonUser function. LogonUser fails because the Process that runs it does not have SE_TCB_NAME privilege. How do I set this privilege Regards Pankaj thanks (pintu and SvenC) SvenC "how could i perform the task you told by programming". Regards Pankaj ...Show All
Visual Studio 2008 (Pre-release) Cider support for local assembly references?
Am I doing something wrong Or do i possibly have an bad interaction between Cider and ReSharper (my guess). every time i make a reference to the local namespace in the same assembly... e.g. < Page x:Class = " MyNameSpace .TestPage " xmlns = http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x = http://schemas.microsoft.com/winfx/2006/xaml xmlns:local = " clr-namespace:MyNameSpace " Title = " TestPage " > < Page.Resources > < local:MyConverter x:Key = " myConverter " /> I end up getting all sorts of errors, even though it all compiles fine. In just the snippet i've pasted here, I get three errors: Assembly '' was not found. Th ...Show All
