Software Development Network Logo
  • Smart Devicet
  • Visual C#
  • Audio and Video
  • Visual Studio
  • .NET Development
  • SQL Server
  • SharePoint Products
  • Visual Basic
  • VS Team System
  • Visual FoxPro
  • Windows Vista
  • Game Technologies
  • Microsoft ISV
  • Visual C++
  • IE Development

Software Development Network >> leonidas than's Q&A profile

leonidas than

Member List

ABS123
Jason Callas
thomasd1234
tokie
tr123
Demokratizator
job44927
shakalama
SXMdev
Shirvo
dagfari
georgeob
Here2Play
bes7252
Laxmi.
sGurpreet
QuantumMischief
IvanOrdonez
domochan
Zero_
Only Title

leonidas than's Q&A profile

  • Software Development for Windows Vista Can't stop or start service from client app ("access is denied")

    Hi, Quick question for all you Vista gurus out there. We have a service (running as SYSTEM) and we need to be able to stop and start it from our client application, which is running as a standard user. Is this possible Our app was designed originally to run as administrator, but in order to get Vista certification we can't have it demand administrator access ( ) so I'm trying to get it to run with the "asInvoker" access instead. But when I do that it can't access the service via the ServiceController. When we call serviceController.Stop() we get "InvalidOperationException: cannot open service on computer '.' --> Win32Exception: access is denied". The "Stop()" method is calling the "GetServiceHand ...Show All

  • Windows Forms Converting .Config files to .Deploy files using Mage.exe at command line

    How can i generate .deploy files using Mage.exe at commandline. I am facing problems with .Config files download at client systems, as IE do not allow to download .Config files for security reasons. If i do it manually, ie. using DOS ren command, it throws errors. Thanks. hi kcongdon, I think you are adding the .Deploy extension before running Mage command. You need to run the mage commands first, then add .Deploy extension to all the files you have except .manifest and .application files. Add the argument mapFileExtensions = "true" to the deployment tag in .application file. Sign the .application again and Finally, run the URL.   Regards Anwar Hussain   ...Show All

  • Visual Studio Tools for Office Use Excel Functions....

    Hi, Is it possible to utilize the slope and power functions from excel without actually opening excel and putting the data in a spreadsheet Thanks, Tom Hi Tom The answer to the first part of your question is yes; to the second part, no. Application.WorksheetFunction.[FunctionName(Args)] To get the average of a set of numbers: Application.WorksheetFunction.Average(10, 20, 30) But as the Application object implies, Excel does have to be installed and running. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Default shader implementation of fixed function pipeline

    Is there a default implementation of the fixed function pipeline included with GSE somewhere Its easy to write as far as shaders go, but it seem like something that should be included. The new xna game project template could/should allow selection between basic reflectance models or something. If this isn't included (I wasn't able to find it), I'll post a suggestion. ...Show All

  • Microsoft ISV Community Center Forums How to write a 'Find function' code in VBA for Excel

    Hi, I wrote this code in hope that it would look for the text string 'c6' which is found in one of the cells in range A1:C6. In the end I want it to assign the cell's address to a variable but one thing first. Function finn(x) 'x = Range(A1:C6) Dim y, q y = x q = Application.WorksheetFunction.Find(c6, y) MsgBox q End Function But it won't work! Anyone that knows how to write this properly Grateful for help on this \Jonas You could use a foreach construct eg dim cel as Range foreach cel in Range(A1:C6) if x = "c6" then do whatever end if next cel that should find it for you ***The syntax isn't perfect, its only a rough guide ...Show All

  • .NET Development Can I open an Access database from vb .net if the mdb file is opened.

    if I try to use the following connectstring "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\cse1\src\test.mdb;Mode=Share Deny None;User Id=admin;Password=;" I get the following error "The Microsoft Jet database engine cannot open the file 'test.mdb'. It is already opened exclusively by another user, or you need permission to view its data." I was assuming that mode-Share Deny None would open the database in read-only mode, since I have to just display data and not do any updates. thanks. Hi I seem to have the same problem as yours. I am using MS Access and ASP.NET (C#) in project, when I test my application with two users executing same query from two different computers, I get the following error. ...Show All

  • SQL Server SQL Server performance being a problem.

    I'm porting over a C# web application from MySQL to SQL Server, and so far I've gotten it up and running, but the performance is just terrible! I'm using the following script to connect to the database... <source> string TheConnectionString = "Server=PETER\\SQLEXPRESS;Database=Frostwinds;Trusted_Connection=Yes;"; MySQLConnection = new SqlConnection(TheConnectionString); MySQLConnection.Open();</source> .. and takes seconds to complete. Any ideas why performance is soo bad Ok, honestly, this is very VERY frustrating. When ran in the VS debugger on the same user account as SQL server instance, it completes in a reasonable time frame (about 80-100ms), however, once put on ...Show All

  • Visual Basic How do you list the fields of a database in a combobox?

    Hi, I was wondering what would be the easiest way to list all the fields that are in a database with a combobox I'm using VB .net 2005. The GetSchema methods allow you to return any db schema information including field names from a table....you can also use a data reader and pull column names from the reader or if you intend on using a dataset you can also get column names from the table in the dataset. pseudo code: Dim dt As New DataTable For Each c As DataColumn In dt . Columns Debug . Print ( c . ColumnName ) Next ...Show All

  • SQL Server Initializing a Merge Subscription Without a Snapshot - doesn't operate correctly

    Hi! I do the backup from the publisher, next I restore it at the subscriber using *pure* database. next I attempt to create subscription using this db. of course, I use SubscriptionSyncType .None for SyncType propery of the subscription. But, 1. nevertheless the merge agent downloads whole snapshot! both data (bcp files) and the schema. 2. I get the *strange* error. below thelines from the log: Applying the snapshot to the Subscriber A dynamic snapshot will be applied from 'C:\DOCUME~1\...\LOCALS~1\Temp\DB$MAIN_DB1_Main_testReplFromBackup\' Preparing table '__UserSyncOptions' for merge replication Applied script '__UserSyncOptions_2.cft' {call sp_MSsetconflicttable (N'__UserSyncOptions', N'MSmerge_con ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA Capabilities Viewer

    If you come from DirectX to XNA you may know the CapsViewer that is part of the SDK. As the XNA framework is based on DirectX the caps are valid for XNA too. Naturally the DirectX version uses the DirectX names for everything. As many things like the surface formats are renamed for the XNA framework it could be hard to use the DirectX Caps Viewer for XNA. Therefore I have written a small viewer which shows the capabilities of your graphics adapter(s) using XNA identifiers. Download I will provide the source later (needs a little cleanup first). ...Show All

  • .NET Development Declarative Security & Serialization in. NET 2.0

    Hi, I am considering using Declarative Security on some classses that may need to be serialized in the future. I came across an article (http://support.microsoft.com/ kbid=326971) that basically says that you can't serialize classes that use declarative security in 1.0 & 1.1. Does anybody know if this is also true for 2.0 Thanks a lot! I've tried to compile the code provided in the Microsoft's article as not working in 1.0/1.1 and it works in 2.0. So, I'm hoping there're no additional issues.   However if anybody is aware of any problems with this in 2.0 please post a response.  Thanks again! ...Show All

  • .NET Development Conexant CX20551-22 driver for Vista x64?

    Hi I have a Toshiba P100-463 a search for driver for my soundcard. I tried many drivers (AT Soundbridge, Realtek AC97) but no driver functioned. i need help!! ps: Sorry for my englisch ^^   Schieby ...Show All

  • Visual Studio Express Editions How can I use crystal reports in Visual Studio 2005 Express Edition

    I'm using Microsoft Visual C# express edition 2005. I want to use crystal reports in my application. I've searched extensively over the internet but every where I find the same solution of using crystal reports in .net applications i.e of using crystal reports object and windows form viewer. But in the express edition 2005 these are not avaiable. Please help me in this problem. What can I do for crystal report object and windows form viewer object because they are not available in this version. Please help me out in this problem. Hi, This thread is on the topic: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=168953&SiteID=1 Thanks ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. VertexDeclaration and Mesh

    Hello, I'm rendering a .x file with a simple diffuse lighting shader. The model is just a sphere with a red material. If I don't set a vertex declaration, there's no vertex declaration before Mesh.DrawSubset but the declaration right after DrawSubset contains a bunch of VertexElements (Position, Normal, Color, TextureCoordinate, Tangent, Binormal). If I set the declaration to be just position and normal, it is overridden by Mesh.DrawSubset to contain the above declaration. Is Mesh.DrawSubset supposed to override any previous VertexDeclaration I also noticed that the Mesh has 65 VertexElements in its Declaration. I exported the .x file using Maya 7 and the June 2006 SDK exporter, and MDX 1.1. Also, the .x file doesn't have any VertexFor ...Show All

  • .NET Development CoCreateInstance returns REGDB_E_CLASSNOTREG (IMAPI)

    Hi, i'm trying to accessing IMAPI from a Managed C++ Windows Form Control Library the problem is that when i call CoCreateInstance i get in return REGDB_E_CLASSNOTREG. I Really dont understand why since the equivalent code from a .NET imapi wrapper that works is identical. notice also that the same C++ code here works on another machine. i assume also that the class is correctly registered since the C# code works. thanks to anyone who try to help My C++/CLI code: [code] CLSIDFromString(L"{520CCA62-51A5-11D3-9144-00104BA11C5E}", &CLSID_MSDiscMasterObj); CLSIDFromString(L"{520CCA62-51A5-11D3-9144-00104BA11C5E}", &IID_IDiscMaster); CoInitialize( NULL ); hr = CoCreateInstance(CLSID_MSDi ...Show All

©2008 Software Development Network