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

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

DavidR100

Member List

siulm
Vivek Natani
Berky13
RubenPieters
bola shokry
Ke Sun
reichard
Joel Triemstra
davidg12
LenaS
Santhosh Pallikara
SyracuseCheer
matti81
kawano1h
Lambros Vasiliou
loopool
Amjath
Keith Hill
Christian Sparre
Nuno_Salvado
Only Title

DavidR100's Q&A profile

  • Visual C# There is no row at position 447: Cannot fill in a DataTable

    I have a DataTable which is filled with rows from a data stream. I Add a row each time a new complete set of field values becomes available. There are 6 fields in rows: three float, one int, one DateTime and one string (rather short, about 4 bytes). After I streamlined my code to eliminate massive losses of data now the process is working fast. All of a sudden I get an error message: There is no row at position 468. I put a Console.WriteLine statement in the routine which handles filling the rows (individually, one by one). Row 469 was created and then the message appeared. In fact when I repeat the runs it breaks down at slighly different rows at each run. Also I have a button which I press. It creates a socket, send a request ...Show All

  • Windows Forms Dialog buttons cut off when different monitor is used and resolution lowered.

    I've created dialogs with buttons on them (using Visual Studio 2005 designer) on my machine and when I change the resolution to 800x600 all is fine. Everything shows up as it should. However, when I run on a different machine with a different monitor, and I set the resolution to 800x600 part of the right-side of my button is cut off by the dialog. Any ideas why this is happening How do I ensure that the buttons will be displayed correctly on different monitors Thanks, dougzhoez THANK YOU. That is the problem. Is there a way to ensure that the dialog shows up correctly no matter what the setting is ...Show All

  • Windows Forms How to set and check Low Battery Alarm level and settings through software?

    I am trying to develop a battery test. One part of it will set the low battery alarm to 75% and verify that it triggered, then reset it to the original value. I have looked in many places and cannot seem to find it. However, I know windows is doing this somehow through their Power Options GUI in Control Panel. Anyone care to shed some light on this issue There is ULONG BatteryLevel, which is the percentage level for the alert. BatteryLevel is inside struct SYSTEM_POWER_LEVEL. SystemPowerLevel[0] is for critical battery and [1] is for Low battery alarm. SYSTEM_POWER_LEVEL is inside GLOBAL_USER_POWER_POLICY, which is inside GLOBAL_POWER_POLICY. Use GetCurrentPowerPolicies to read current values. U ...Show All

  • Visual C++ How to Launch a DirectDraw game with ShellExecuteEx?

    Hi I am trying to launch Age of Empires 2 from within a quick launcher app (VC++ 2005 Express with SDK) using the following code: SHELLEXECUTEINFO ShExecInfo = {0}; ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS; ShExecInfo.hwnd = NULL; ShExecInfo.lpVerb = "open" ShExecInfo.lpFile = "path to empires2.exe"; ShExecInfo.lpParameters = NULL; ShExecInfo.lpDirectory = NULL; ShExecInfo.nShow = SW_SHOWNORMAL; ShExecInfo.hInstApp = NULL; ShellExecuteEx(&ShExecInfo); The code runs, and the empires2.exe starts, but then it says "cannot initialize graphics system. Make sure your video card and driver are compatible with DirectDraw." Please help m ...Show All

  • Software Development for Windows Vista Install GINA DLL

    Hi, all Didn't find a forum on Windows XP, so my post is here. I have a stange problems with install/uninstall custom GINA. Running under Windows XP SP2: 1. Copy msgina.dll to the smgina.dll; 2. Set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GinaDLL to the smgina.dll and LogonType to the 0; 3. Reboot, logon; 4. Remove HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GinaDLL and set LogonType to the 1. Or remove HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GinaDLL, then set Welcome screen mode in User Accounts. Do not reboot; 5. Suspend/hibernate computer; 6. Return computer from standby; 7. Catch blue screen. Any ideas about reasons Anton ...Show All

  • Visual Basic DirectoryServices (Active Directory)

    I've got an existing program that retrieves a list of computer names on the domain via Active Directory. I need to update the program to retrieve computer descriptions from Active Directory along with computer names. I can't figure this one out and after googling high and low I've found no solutions. Any help would be greatly appreciated. Here is a code snippet demonstrating the retrieval computer names: Dim myActiveDir As New DirectoryServices.DirectoryEntry("LDAP://microsoft") Dim mySearcher As New DirectoryServices.DirectorySearcher(myActiveDir) Dim mySearchResult As DirectoryServices.SearchResult Dim alDomain As New ArrayList mySearcher.Filter = ("(objectClass=computer)") For Each mySearchResult In ...Show All

  • Visual C++ converting an LPPOINT to a POINT

    the title pretty much says it, how do i convert an lppoint to a point i am using arrays of lppoints and points so if there is an easier way for arrays please tell me thanks in advance o, i got confused there, ok then i want to get an array of cursor positions using GetCursorPos(); but the parameter for getcursorpos() is an LPPOINT how would i get those positions into an array of POINTs ...Show All

  • Commerce Server Creating custom datatype in catalog and inventory schema manager

    Hi, I want to create custom dataType for new properties in catalog and inventory schema manager. The new dataType should be extended from Multiplechoise bulitin data type and have preloaded dynamicly data from specyfied column in database. Anyone have an idea how to do that. Thanks in advice for any suggestions. Maciej Koper Hi Maciej, There is no facility to support dynamic lookups out of the box. If you want to change the functionality you could override either the Catalog Web Service or the Catalog Manager code to provide that additional functionality. Cheers, Colin ...Show All

  • .NET Development How do I specify paramaters from my SqlDataAdapter.Update method?

    Hello, I have some code that takes the data from my local machine and then sends it across the network to an SQL server 7.0 backend. Here is my code: myDS.Tables("tblName").Rows.Add(myDataRow) mySQLDataAdapter.Update(myDS, "tblName") The problem that I am facing is when the second line runs, it adds to the data that is already in SQL server 7.0. What I want it to do is update the data on the network where the ID from the local machine is the same as the ID in the data on the network server. Is there a way to specify logic in the SQLDataAdapter.Update as such... mySQLDataAdapter.Update(myDS where id = id, "tblName") Thanks in advance. Hi, the pr ...Show All

  • Visual C++ bytwise comparison of two files

    Hello, I have 2 files that I read in using ifstream into dynamic char arrays. Each file contains a structure of some unknown design. I want to make sure that the two files are identical. This is a cut down version of what I've been trying: ifstream f1("file1.dat", ios::in | ios::binary); char * data1; data1 = new char[sizeOfFile1]; f1.read((char*)data1, sizeof(sizeOfFile1)); f1.close(); ifstream f2("file2.dat", ios::in | ios::binary); char * data2; data2 = new char[sizeOfFile2]; f2.read((char*)data2, sizeof(sizeOfFile2)); f2.close(); int count=0; for(int i=0;i<sizeOfFile1-1;i++){ cout<<data1 <<" "<<data2 <<endl; if(data1 != data2 ){ count++; } } cout<<"Byte ...Show All

  • Visual Studio Tools for Office Uninstalling or upgrading existing outlook add-in

    Every time we want to install a new version (with changes) of outlook add-in; if it is already installed we have to first uninstall the previous version by going to add/remove programs. Is there anyway to create installer file that will update the existing add-in The following documentation does not provide any information on how to modify the custom action so that it actually uninstalls the previous add-in and installs the new one. http://msdn.microsoft.com/library/default.asp url=/library/en-us/odc_vsto2005_ta/html/OfficeVSTOWindowsInstallerWalkthrough.asp Thanks Cindy, here is the link: http://www.codeproject.com/dotnet/dotnetpatching.asp df=100&forumid=209224&exp=0&select=13 ...Show All

  • Visual Basic dataset.readxml from my.resource

    How can I read an xml file from my.resources I have tried creating an creating an xmlReader with xmlReader.create, but I can't seem to point that to a file in my.resourses. I guess that I just don't know enough about xml and stream readers. Thanks Hmm, maybe if I ask it in a different way.... Why doesn't the following work Dim aReader As System.IO.TextReader Dim anXmlReader As Xml.XmlReader Dim aDS As New DataSet() ' I get an error here! I recognize that I am creating a new StreamReader, that is how the help showed ' showed to create a textReader. I assume that StreamReader is a subclass of textReader. aReader = New System.IO.StreamReader( My .Resources.someXMLfile) anXmlReader ...Show All

  • Audio and Video Development XPath Error

    I'm getting an error when using the xpath expression below. <par begin="id('BTN_MENU')[state:actioned()=true()] and id('MENU')[style:x()='-450px']" I want to evaluate the values of two different elements, but cannot get it working. Any help appreciated. Try this: <par begin="(id('BTN_MENU')[state:actioned()=1] and id('MENU')[style:x()='-450px'])" ...Show All

  • Software Development for Windows Vista Can't do the last step of the install for the 2003 R2 Platform SDK (Mar. 2006 version)

    Hello, I have managed to install Visual Studio C++ 2005 Express and Windows server 2003 R2 Platform SDK (March 2006 version). Following the instructions for the install by Brian Johnson ( http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx ), I am at the very last step, which is pasted below. My problem is that, when I try to open the AppSettings.htm file to comment out the indicated lines, I get a "Security Warning: Allowing active content such as script and ActiveX controls can be useful, but active content might also harm your computer. Are you sure you want to let this file run active content " I click the Yes box, and instead of getting a file with code, I get a page that is entitled "Applica ...Show All

  • SQL Server How can we manually change the scales displayed on ProClarity Perspective Views?

    Hi, all here, Thank you very much for your kind attention. I still think here should be an ideal place for me to put my post here for help for ProClarity (with SQL Server 2005 Analysis Services) Would please any expert here give me any guidance and advices for if it is possible for users to change scales displayed on ProClarity Perspective views And if it is possible, how can we change it Thanks a lot in advance for that. With best regards, Yours sincerely, Good luck Helen. Perspective is not a chart. Have a look at colour coding and see what you can do. In this tool you can select leaf level members in a product dimension and colour code them at a highet level, like product categories. It is used , as an exa ...Show All

©2008 Software Development Network