Software Development Network Logo
  • Game Technologies
  • Visual J#
  • VS Express Editions
  • Microsoft ISV
  • Visual Studio
  • SQL Server
  • Visual C++
  • Architecture
  • .NET Development
  • Visual FoxPro
  • Visual C#
  • Windows Forms
  • Smart Device
  • Windows Live
  • VS Team System

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

Brent_Yager

Member List

PGTexley
Jerry8989
billlocke
KodHedZ
Abijiths
OfficeDeveloper
Kavitha Bhasker
JBHP
thomas_schmidt
Eric Lohse
Gwenael
lukem_95
ErikM
Erik Reiter
SqlTom
fmiranda
Manoj G
BPM_CTO
Pablitott
weiclee
Only Title

Brent_Yager's Q&A profile

  • Visual C++ Question about C++ char Pointer

      When I use VC++ 6.0(with SP5.0) like this:   char temp[2];   memset(temp,0,sizeof(temp));   strcpy(temp,"This is a test\0");   MessageBox(0,temp,temp,MB_OK);   The result in temp[2] is "This is a test".There is only two bytes of memory,why can copy more than 2 bytes char Very thank you Chris.But both strcpy() and memcpy() have this problem,and I copy other char* after this operate,it have no problem,maybe my test app is tiny ...Show All

  • Windows Forms Can I tell if the header row in a bound grid is clicked

    I have a bound datagrid coded such that when a user clicks a row, I keep track of the rows clicked, mark them as selected, which sets the background color to red.  So, user clicks row 1, it turns red.  Now user clicks row 5, rows 0 and 5 are red.  Click 8, rows 0, 5, 8 are red.  now user clicks row 5 again,  ...Show All

  • .NET Development How to access outlook via a web service using C#?

    Hello all! I'm trying to use Ms Outlook 2003 features by a ASP.NET web service using VC#. But it gives an unauthrized exception when i try to creat an outlook object over the web service. But i still can do other simple things like show a string add numbers and all. Access is given to all by enabling the annonymous access in IIS server. The codes are given below. In the program, public class Service1 : System.Web.Services.WebService { private Outlook.Application oApp; private Outlook.NameSpace oNS; private Outlook.AppointmentItem oAppt; private string s=""; public Service1() { ...Show All

  • Visual C++ Error messages in the task list (similarly to VS 2003)

    When I build the project in VS 2003 all build error messages appear as a the task list in the tabbed window in the lower area of the IDE. It is very convenient to browse them from this window. However, this doesn't occur in VS 2005 (there is only regular build output like in VC++ 6). How can I enable it ...Show All

  • Windows Forms Is memory released with out un-registering event handlers?

    Hi, I have a C# windows form with several controls. I have several handlers registered for several events. The code looks similar to: myBT.Click += new System.EventHandler(...) 1. When the form is disposed or closed, is the form memory released for the handler without calling myBT.Click -= myHandler 2. Will my controls be distroyed eventhough I did not unregister my handl ...Show All

  • Smart Device Development copy files to pda

    How can i copy files to pocket pc using comand line on desktop OK, you're right I found another answer on a ASP forum and all's right now ! I've done a C# DLL "UserControl .Net" wich is load from #1 to #2 via ASP technologies and ActiveX. This DLL is able to communicate with RAPI.dll installed with AS on #2. Thanks for your answer ...Show All

  • Windows Forms How to create completly new DataGridViewCell

    I want to create a new Custom DataGridViewCell/Column. There a many examples which inherits from the given Controls ( DataGridViewTextBoxColumn, DataGridViewTextBoxCell , ..), but this is not what i need. I want to show some informations (text/picture) on this new Control, i think a panel with labels is good for this. The values had not been saved from this control this is only for display. I don't no where to start. Sorry for my bad english phil Thanks a lot, But in fact I need to have more than one textbox or label in my cell. I try to create a small panel with 3 or ...Show All

  • SQL Server WHERE includes all letters

    Hi I would like to perform a procedure which takes a string of numbers and searches for strings in a table which include all the given numbers in any particular order. problem is i can only return strings which include 'any' of the letters in the search string and not 'all'. this is how i perform it so far: @IncludeNumbers VARCHAR(50) AS BEGIN SELECT Phone AS [Telephone Number] FROM tbl_Person AS p WHERE (p.Phone LIKE '%[' + @IncludeNumbers + ']%') END (ive removed some unecessary bits but this shows the basics) As you can see currently it will return any phone numbers which contain any numbers given in the includeNumbers st ...Show All

  • .NET Development Storing Data in XML

    i am a newbie to XML please tell me how can be a xmldata protected if it is with the application on a local machine..........how can i store in a way that user cant view it directly.............. Hi, If you are using .NET Framework v2.0, then take a look at the following article: http://www.devx.com/dotnet/Article/21564 Otherwise, you can still treat the entire XML as an encrypted string. For string enrcyption take a look here: http://www.devarticles.com/c/a/VB.Net/String-Encryption-With-Visual-Basic-.NET/ Regards, Vikram ...Show All

  • Software Development for Windows Vista Windows Vista Beta 2..glass problems

    hello folks, I was wondering if you guys were experiencing a problem similar to mine. I cannot seem to get the glass effect working on beta 2. I have the nvidia Geforce Go FX5200 video card in my laptop. I've tried every single driver including the new forceware as well as the laptop2video tuned drivers, but neither of them work. I can't seem to pin point the problem. I was able to get the glass effect on the previous Vista builds with the LDDM (nvidia alpha drivers) but nothing seems to work on beta 2. Any help would be appreciated. Thanks! Cheers ...Show All

  • Smart Device Development Cannot start debugger

    Hello, I have been using VS.NET developing Pocket PC applications for over two years now, but all of the sudden I can no longer interactively debug apps running on the emulator.  Everything seems to start up fine - Emulator starts up, initializes, .NET CF installs, app under development installs, then... nothing (Output window in VS says "Launching Application").  I can start the application on the emulator by navigating to it using the File Explorer, but cannot debug.  How can I get my ability to debug back Thanks, Hi Mitchell, Are you using Visual Studio 2003 and NETCF v1.1 SP3 to deb ...Show All

  • .NET Development data adapter problem

    Hi everyone, I have a problem that I have tried correct some days, but I still cannot found why it is not correct. string sqlCommand = ToString(adapter.SelectCommand); adapter.SelectCommand.CommandText = sqlCommand; int rowCount = adapter.Fill(dataset); protected virtual string GetSQL(string name) { return resourceHandler.GetStringFromTextResource("sql." + name + ".sql"); } /// <summary> /// Output the sql command with the parameter provided. /// </summary> /// <param name="command">the command to output to string</param> /// <returns> ...Show All

  • SQL Server User Hierarchies and key

    In looking over the "Project Real" project, I see there are many User Hierarchies and not all of them end with the dimension key. Has anyone come across information regarding why they did this or something explaining when it is important to end with the key or not. Given your scenario, you should create at least two (and possibly three, depending on what you mean by "Bill format" and "Billed operation") dimensions: Customer - Customer (key) - Title - Job - State - City Bill - Bill format - Billed operation - Bill (key) .. and there is no problem in creating two user defined hierarchies from the a ...Show All

  • Visual Studio 2008 (Pre-release) How can I run a SVC based service with a trusted account

    How can I configure (convince) a SVC based service (i.e. hosted in IIS) to run with a trusted service account In ASMX I would use the <! --identity impersonate="true" userName="neptune" password="password"-- > configuration, however, it has no effect with SVC hosted services and I have not yet found a way of simulating the impersonate option in WCF. Hey there. I apologize for the delay in getting a response back to you. If you're simply trying to run each request in the context of a trusted user identity, the best way to do that it to create an IIS Application Pool that runs as your trusted ident ...Show All

  • Visual Basic How to get a string between 2 arguments.

    im searching a textbox for a string using 2 arguments. i will be getting more then one of each. the arguments are [ and ]. for example: the quick brown [fox] jumps over the lazy [dog]. i want to be able to get [fox] and [dog] using the arguments. i do not want to use arrays because it will be to slow. so my output will be [fox] and then it will be [dog]. i searched the net for something like this but nothing helped. thanks. Maybe I'm misunderstanding this; but I think that the only way some sort of array could be avoided would be if you could store the values you want outside of the textbox as they are entered. ...Show All

©2008 Software Development Network