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

Software Development Network >> Mark Hayes's Q&A profile

Mark Hayes

Member List

Breckish
Newbie Kam
Andy Ho
monkeynova
Marcin Kruszynski
fcjh
nik.martin
Luis Esteban Valencia Muñoz
Shan Ganesh
muelle60
b6s
WalangAlam
Somu Thomas
Srinivasa Chary
Robert Davis
Prateek_cds
ajj3085
LamptonWorm
Ovidiu Padurean
Jeff1
Only Title

Mark Hayes's Q&A profile

  • Software Development for Windows Vista Can I make a file accessible to write under IE protected mode by setting the file to low integrity level

    We have a IE add-on component that needs to write some data to a log file under C:\\ProgramData\\MyFolder folder. We hope it can work under IE protected mode too. But now it only works when IE is not in the protected mode. I understand that only some special folders ( \Users\$USER$\AppData\Local\Microsoft\Windows\Temporary Internet Files, \Users\$USER$\AppData\Local\Microsoft\Windows\History) are accessible for IE protected mode for security. After reading the article belows http://msdn.microsoft.com/library/default.asp url=/library/en-us/IETechCol/dnwebgen/ProtectedMode.asp I tried to lower the resource (the file and its parents folders) integrity level as low with the following codes. And SetNamedSecurityInfo call return S_OK. Bu ...Show All

  • Windows Forms DataGridView date issue

    hi all... I have a DatagridView populated by a database. One of the colums holds datetime values, but it seems that the DataGrid stores those values as txt. So, when i click the DGV header to order by the date column, it doens't consider the month (being dd-mm-yyyy), so it orders considering only the day value 'dd'. How do I format the dgv column to read the dates properly so that i can order the values by date thx in advance dsani's option didn't work, i it should be something else here's how i populate the datagrid cnn.Open(); strSql = "SELECT * from clients" ; SqlCommand command = new SqlCommand (strSql, cnn); SqlDataReader DataReader; DataReader = command.ExecuteReader(); ...Show All

  • SQL Server Paging data on SQL Server side using derived tables

    I am using derived tables to Page data on the SQL Server side. I used this link as my mentor for doing paging on the SQL Serverhttp://msdn2.microsoft.com/en-us/library/ms979197.aspx I wanted to use USER PAGING, thus I used the following code: CREATE PROCEDURE UserPaging ( @currentPage int = 1, @pageSize int =10 ) AS DECLARE @Out int, @rowsToRetrieve int, @SQLSTRING nvarchar(1000) SET @rowsToRetrieve = (@pageSize * @currentPage) SET NOCOUNT ON SET @SQLSTRING = N'select CustomerID,CompanyName,ContactName,ContactTitle from ( SELECT TOP '+ CAST(@pageSize as varchar(10)) + 'CustomerId,CompanyName,ContactName,ContactTitle from ( SELECT TOP ' + CAST(@rowsToRetrieve as varchar(10)) + 'CustomerID,CompanyName,ContactName,ContactTitl ...Show All

  • Software Development for Windows Vista Way to get property from an persisted workflow instance

    Dear all, How can I retrieve Workflow Properties from an workflow instance (either loaded and persisted) Please help. Thanks. Andy Ho Bill, Thanks again for your reply. For example, when I start the state machine workflow, I passed the claim amount as EventArgs to the Workflow. Then the workflow will be persisted, tracked and idled. At one state, the Manager need to approve on the claim amount, so I want to design an interface which shows the manager all the outstanding claims id (and their claim amounts). But at the moment, I don't know how to retreive the claim amount (or some other properties) from the workflow but before the workflow completed (as I can use the e.OutputParamet ...Show All

  • SQL Server Snapshot replication on-demand

    Hi, I have got a snapshot replication and have got distributor, publisher and subscriber on different servers all having sql server 2005. I am looking for a piece of code that i can execute in order to initialize snapshot with new data and push data to subscriber on demand. I assume there are TSQL calling replication sproc but i m not sure which proc should be used. any help would be highly appriciated. Thanks, Furrukh Baig there are two "jobs" required to do this one is for snapshot generation the other is for synchronization. run "select * from sysjobs" in the msdb database if you find what you're looking for do as greg suggest. you must run the snapshot generation jobs ...Show All

  • Smart Device Development Q: How to use bitmap resource from extension dll for CCommandBar?

    Hi all, I am creating an extension MFC dll and try to export a dialog from this dll. In my exported dialog, I had used a CCommandBar object and initialize it's toolbar with a bitmap from this extension dll. When I use this dialog in other MFC application, the toolbar could not display the bitmap buttons. How could I let the CCommandBar in my exported dialog to use the bitmap in my extension dll Thanks in advanced. Best regards, Justin ...Show All

  • Visual Studio 2008 (Pre-release) "remote side security requirement was not fulfilled..."

    I am new to WCF and want to learn about setting up security between server and client. I have read Keith Brown's article in the August MSDN magazine, which explains things clearly but I need more sample code, showing particularly how to configure endpoints, bindings and behaviors to set up message-based and transport-based security via the app.config file. I have come across a couple of blog entries with sample code, but they are from earlier times and the APIs have changed sufficiently that they don't build any more.   I am now using RC1, the latest. (Trying to figure this out from just reading the docs is HARD!) I don't think the error has to do with protection level, if you didn't change the ...Show All

  • Visual C++ How do I compile?

    I want to compile a .cpp file with visual C++ 2005 express edition. how My code is: //this program takes two numbers and adds them together #include <iosource.h> void main(){ //define variables float num1; float num2; float total; //get the variables from the user cout << "Enter a number: " cin >> num1 cout << "Enter another number: " cin >> num2 //add the numbers together total = num1 + num2 //display result cout << "The sum of the numbers is: " << total << endl } Use Build + Build to compile and link your program. If you didn't get any errors, you can start debugging it with De ...Show All

  • SQL Server Cannot connect to SQL Server 2005 Express with Management Studio Express

    On my home machine without permanent network connections enabled, I cannot get the Management Studio connect to the database server. Always get this error: Cannot connect ot MPLIAM\SQLEXPRESS Additional Information: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, erro: 26 - Error Locating Server/Instance Specified)(Microsoft SQL Server) I have used the SQL Surface Area Configuration Tool to reset the defaults to allow remote connections, stopped and restarted the server, but still get the same message. Please help ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. pop up box? in game

    Hi newbie problem, i am trying to create a few options for the player to choose from like: 10 x 10 = 100 10x10 = 1000 10x10 = 10 i was going to do this as images as i cannot think of a better way of showing on screen is there an easier way then if the person clicks on a certain versinity like x = >10 it will display a message if wrong box selected explaining the answer how can i do this can anyone help thanks Here are a couple: http://www.nuclex.org/news/2007/01/15/nuclex-fonts-1-2-0 http://www.nuclex.org/news/2007/01/14/ceguisharp ...Show All

  • Windows Forms How to know ColumnResize in DataGridView

    DataGrid.HitTestInfo gives the ColumnResize and RowResize information but this information is not exposed by the DataGridView.HitTestInfo. Does anyone know the reason for it and any way to access this information Hi Akbar, Let me give some background to it. I do not have any event handler on the datagrid. I just have the point where user has clicked on the DataGridView. In Datagrid if I get the point I can find resize information from the Datagrid HitTest Info but now it is made as internal. Is there any way to know about the column/row resize with just the datagridview hit point information. Thanks, Nitin Sharma ...Show All

  • Windows Forms Steam, Runtime error

    --------------------------- Microsoft Visual C++ Runtime Library --------------------------- Runtime Error! Program: C:\Program Files\Steam\steam.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. --------------------------- OK --------------------------- Can anyone explain this to me and maybe give me a solution please Thanks Ken Are you serious about that being for roxio. Typical. they actually are the biggest fools. Newell has something big that could change gaming forever but he can't fix these simple errors. Well i'll just have to persist. Thanks for your help. Ken ...Show All

  • Visual Studio Express Editions WebDav errors

    I don't know if anybody knows anything about WebDav projects or not but I am having trouble with an unsupported media type 415 error that I cannot figure out. I have written the code in c# and it works exactly as pradicted but the c++ one gives me a 415 unsuported error. I'll post both and see if anybody can spot the problem. Thanks c# working code; using System; using System.Net; namespace ExchangeSDK.Snippets.CSharp { class CreatingFoldersWebDAV { [ STAThread ] static void Main( string [] args) { // Variables. System.Net. HttpWebRequest Request; System.Net. WebResponse Response; System.Net. CredentialCache MyCredentialCache; string strFolderURI = "http://10.160.68.20/ ...Show All

  • SQL Server grouping rows by customer

    my source flat file has many rows per customer, but I need to transfer it to database with only one row per customer and accumulated sales (and probably do other calculations and lookups). I understand how to do stuff with derived columns, but how can I read source file first, calculate, group and then save to database As I understand, the script offers only processing row by row: Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer) Thanks Vlad The Aggregate transformation does more than Group By. You don't want to do this in script. You can do SUM, AVG, MIN, MAX with the Aggregrate Transformation. If you need to then do something else combine the Derived Column Transformation ...Show All

  • SQL Server MDX help required

    Hi, I have a requirement for which i need to write an MDX. The scenario is, i have a fact table with dimensions. The FactStudent consists of keys from dimensions like location, ranks dimension and period dimension. i want to know the students who have got same rank for an year and previous year (to check consistency in performance). how should be the MDX for getting this info.please help. Thanks & regards, Vivek S Some reading for you http://www.databasejournal.com/features/mssql/article.php/10894_2238011_1 Bit outdated, but you should be able to use the basics with AS2005 as well. Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All

©2008 Software Development Network