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

Software Development Network >> Karthy's Q&A profile

Karthy

Member List

BrunoAMSilva
Frikkie1
Vladimir Bougay
Shady9399
digitalslavery
Matty4242
logtorahul
hmanner
moff
NyaRuRu
Catalin Stavaru
NewC#
ozhonetech
WV John
keithpsft
Mahyar154572
Madix_t
djt69
neogortex
stallion_alpa
Only Title

Karthy's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. general use of XNA vertex types?

    I am trying to create some methods to manipulate various parts of the XNA vertex structs. I want to be able to pass all the different vertex types as arguments to these methods. Because they are structs they don't derive from a base class other than ValueType. If I use ValueType as the parameter I don't have access to the propertys of the vertex. Is this a case where refelection would be usefull Can anyone help me find a way to write a method that can access the position property of any type of vertex. I hope I have been clear enough. Thanks. You can do something like that : /// <summary> /// <para> Custom vertex typesfor ground. </para> /// </summary> ...Show All

  • .NET Development how to impersonate a local user in C#

    a shared folder was created on a server. and a local account also created on the server.i assigned this local account to this shared folder. i want to access this folder from a client. from a client, i try to impersonate the local account, but it fails. i used the logonuser() function which receive domain name, username and password. in this case, what is the value of domain name ex: machine name= devsrv,username=ysa, password=123, folder name=images i pass the following to logonuser() : domain="", username="devsrv \ ysa",password="123" but it fails. How can i impersonate the user many thanks, i tried it before, it didn't work with loca ...Show All

  • .NET Development GMT-8 to GMT+0 (UK) with consideration for british summer time?

    I'm using a server where it's time is GMT-8. Im using DateTime so how do i convert it to GMT+0 taking into consideration British summer time as im based inthe UK. Thanks for your time. Paul. ahmedilyas wrote: Thanks Peter. But I cannot see the Convert method in the TimeZone, one reason why I mentioned perhaps using the ToLocalTime() Am I missing something Sorry, my quoted "convert" wasn't meant to suggest using a method named "Convert". Yes, gernally ToLocalTime() is what you use tp convert to a local time. ...Show All

  • Visual FoxPro cryptography failure

    I use _cryptapi class of the _CRYPT class library to encrypt limited amount of information: ids and passwords. They are in a table and the table feeds treeview items on demand. Before appearing in treeview the field values are automatically decrypted. Everything has been working fine until I noticed a problem yesterday. I have done most of development on C: drive but recently began moving the whole project to a G: drive since I set a new OS up on that partition. It is a bootable partition. If the encryption done on C: partition it can only be decrypted on that same partition. On partition G: everything is garbled. If I encrypted an item on G: partition I can decrypt it only here, it will be garbled if I run the application on C: I ch ...Show All

  • SQL Server Limiting Results from MDX query

    Is there any way to specify that I only want the last 16 rows of an MDX query Thanks. What I actually need is to have my results only return values that fall within a certain date range. It's kinda complicated. First I need a cumulative running total of hours charged, then after that I need only the last 16 weeks of data. I was thinking of something like this, but it's not working. WITH MEMBER [Measures].[CumulativeTimeCharged] AS 'SUM({NULL:[Date].[Week].CurrentMember},[Time Charged])' SET [SixteenWeeks] AS 'Filter( [Date].[Day].Members, [Date].[Day] >= STRTOMEMBER(@graphStartDate, CONSTRAINED) AND [Date].[Day] <= STRTOMEMBER(@ToDate, CONSTRAINED))' SELECT NON EMPTY { [Measures].[CumulativeTi ...Show All

  • Visual Studio Express Editions Help with SaveFileDialog and OpenFileDialog please!

    Hello. Av got SaveFileDialog and OpenFileDialog in my next project but am stuck. Av not used SaveFileDialog and OpenFileDialog before. I want to be able to open a files in a RichTextBox and save files from a RichTextBox, Just like you can open and save files with Windows NotePad. How do I do this And How do I get the buttons to work In a MessageBox This is my code for the SaveFileDialog that I have so far: Private Sub OpenToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click OpenFileDialog1 = New OpenFileDialog OpenFileDialog1.Filter = "Text files (*.txt)|*.txt|Rich Text Files (*.rtf)|*.rtf|Visual Basic Files ...Show All

  • Visual C++ wspiapi.h error, while compiling PHP in WIN32

    Hi, im trying to compile a PHP souce with win32 but i gives me always this error :s Installed: Microsoft Platform SDK 2003 Sp1 VS6 C++ When trying to build i found this error: Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. php_cli.c c:\programas\microsoft platform sdk\include\wspiapi.h(197) : error C2027: use of undefined type 'addrinfo' c:\programas\microsoft platform sdk\include\wspiapi.h(60) : see declarat ion of 'addrinfo' c:\programas\microsoft platform sdk\include\wspiapi.h(213) : error C2037: left o f 'ai_family' specifies undefined struct/union 'addrinfo' c:\programas\microsoft platform sdk\include\wspiapi.h(214) : error C2037: left o f 'a ...Show All

  • Visual Studio 2008 (Pre-release) Usename/Password sample, how can I set the username and password?

    HI, all I was working on the following sample which lets you use https transport with Username/Password validation. WCFSamples\TechnologySamples\Basic\Binding\WS\TransportWithMessageCredentialSecurity\ I understand that you are supposed to use domain\user for the username and the domain password for the password, but I can not figure out in the service code where the authentication is taking place. What I would really like to know is, how can I set the username/password in code Say, what if I wanted to set the username and password for the database that the service is going to access Thanks for your time in advance. You can use Membership Provider however that is a bit heavy. We put in Custom U/P Validator just for this r ...Show All

  • Visual C++ Is it possible to get the error message (information) in catch(...) block?

    Hi, I have wrote an simple program to test catch(...) statement using VS 2003. But how can I get the error message(information) in the catch(...) block I have to show a more precise message to see what error happened from user response ... I've tried the GetLastError() function in <windows.h>, but It seems not work properly ... Thanks A Lot, #include <iostream> #include <windows.h> using namespace std; int main() { int* p = 0; DWORD errNo = 0; try { *p = 13; // causes an access violation exception; } catch(...) { errNo = GetLastError(); // the errNo is still 0 ... cout << "in catch(…) block, errNo=" << errNo << endl; } return 0; } ...Show All

  • .NET Development Consume Web Services

    Hi, I am new to the Xml web services.I created one web service on my machine and i tried to use it in another application in same machine. How can i invoke that method in my new application. Thanks sshaju Hi, when i gave the path of that web service to the web reference i am getting error message like There was an error downloading 'http://localhost:3080/WebSite41/Service.asmx'. Unable to connect to the remote server No connection could be made because the target machine actively refused it thanks ...Show All

  • Visual Studio Team System Team Build result not showing in the Builds Report

    i have stopped getting new entries in my reports, even though they appear in the list of builds. I've only added a task to create a directory & make a dummy exec call to do a "dir"... Build still succeeds... OK, one more question. Only the succeeded builds show up. Is there a way to show all - failed & succeeded - builds in a report ...Show All

  • Visual Studio Team System Using Team Foundation Server with Adobe DreamWeaver

    Can someone please let me know if it is possible to use Team Foundation Server with the Adobe Dreamweaver IDE I know there are plugins for Eclipse. I was wondering if there were any for this product. Thanks in advance. Hi Michal Yes I belive it does there is an option for Visual Source Safe when you setup a remote site. I do not see one for Team Foundation server. I am a little confused on the MSSCCI provider. Any help or references would be great. - Aaron ...Show All

  • .NET Development deserializing without loading assembly

    Hello! I'm working on plugin framework, where each plugin resides in its own AppDomain. Plugins are configurable. Configuration variables may be different for each plugin, but should be accessible from main application. I guess discovering plugin's config variables via Reflection would cause loading plugin's assembly into main AppDomain, which is what I want to avoid. My question is: is it possible to serialize object defined in assembly "A" loaded into some AppDomain and send it to another AppDomain (as byte[], string or XmlWhatever), and then deserialize it in that AppDomain without loading assembly "A" into it In my current implementation plugins store their configuration variables in Dictionary, thus making configuration via PropertyG ...Show All

  • Visual Basic Drop Down Item Mouse Hover

    I am using a context menu in a text box, and have a menu item called 'Quick BOM' - when the user hovers the mouse over this, a drop down menu for 'Quick BOM' opens that is dynamically created from an SQL query that populates this according to the part number in the text box. This all works fine. The next function I want to add is for an event to be called when the user hovers the mouse over the new drop down menu that will allow me to do further analysis of this part number (such as recall a description and place in a label field). There is a DropDownItemClicked event, but what would be most useful is a 'DropDownItemMouseHover' type event. Any suggestions on how to create such an event - the menu contents will change ...Show All

  • Visual Studio 2008 (Pre-release) Can you use WSHttpBinding with a WCF hosted on IIS

    I am looking at the example of how to host WCF service on IIS I dont see any WSHttpBidning or BasicHttpBinding, which kind of threw me off for a while The example looks a lot more like ASP .Net, than the WCF service I previously compiled Can you use WSHttpBinding with a WCF hosted on IIS By default, does the WCF Service hosted in IIS use Basic or WS bindings Since I dont see any bindings, how do I know if I am really running a .Net or a WCF I am not sure which sample you are referring to... most of our samples are IIS-hosted. Have a look at http://msdn2.microsoft.com/en-us/library/ms751519.aspx You specify the bindings in the config file. ...Show All

©2008 Software Development Network