Greg Schechter - MSFT's Q&A profile
Software Development for Windows Vista WorkflowWebRequestContext.Current always returns null
Hi, Why does WorkflowWebRequestContext.Current always return null, and when I create a new instance of WorkflowRuntime i get the error saying that you cannot create more than one instance per appDomain Check to make sure you have this line in your web.config < httpModules > < add type = " System.Workflow.Runtime.Hosting.WorkflowWebHostingModule, System.Workflow.Runtime, Version=3.0.00000.0, Culture=neutral, PublicK ...Show All
Software Development for Windows Vista Replicator and correlation
Has anyone successfully used the replicator with a sequence of invoke method/event sink activities I've tried adapting various samples but can't get this to work. I have created a ChildInitialize method to access the invoke and event activities and set their properties but the property I can't set is the CorrelationReference as this need to be set to be an ActivityBind. If anyone has a sample of this then it would be most gratefully received. M ...Show All
SQL Server Unable to load client print control
When you display a SQL Reporting Services report to the screen in the header there is a Printer Icon displayed. When we click this icon we get an error message "Unable to load client print control ". Does anyone know what we need to load or what we need to do to resolve this so that we can print the report directly to teh printer, rather than having ot prinnt the web page, which also prints all the Web headre information ...Show All
.NET Development Type conversion error
I have multiple projects that depend on SSPI.h (taken from MSDN code samples). However, during the conversion to the .NET 2.0 Framework, this file is generating a type conversion error and I am not sure how to fix it. This is the error where _ _const_Char_ptr is typedefined as System::Char* error C2440: '=' : cannot convert from '__const_Char_ptr' to 'wchar_t __pin *' This is the code snippit: &nbs ...Show All
SQL Server adding an image to a database table
Hi, I am using SQL Server 2005. I have a table in my database which has two columns : ImageId (Type: nvarchar (50)) Image (Type: image) I need to store images in this table. How can I do this Example using VB 6.0, SQL Server 2005 and SQLNCLI as the provider. Private Sub Main() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim mystream As New ADODB.Stream cn.CursorLocation = adUseClient cn.Open "Pro ...Show All
Visual Studio Express Editions Compiling Error
Ok, I'm an aspiring C++ programmer. I've read up on it, and finally downloaded Visual C++ 2005 Express Edition so I could actually do something with my knowledge. But it's not compliling...and this is the way I was shown how to do "helloworld": #include <iostream> using namespace std; int main() { cout << "Hello World\n"; return 0; } I get this error message: fatal error C1010: unexpected end of file while lo ...Show All
SQL Server Help on replication from SQL 2005 to DB2/AS400
I was trying to set up a replication process to move data from SQL 2005 to DB2/AS400. To get it started, I have create a simplest table (say, PERSON) on SQL 2005 server, and the same table (PERSON) on DB2/AS400. I have only one column SSN (of type int). I have journaled the table on DB2 end. I was able to have successfully configured publisher (on SQL 2005) and subscriber (i.e. a pushed subscription). I used transactional replication. And I ...Show All
Visual C++ A problem with ATL::CTime.GetLocalTm()
I have a projiect in vs2003.net,which use ATL::CTime.GetLocalTm()function with default parameter. But in vs2005 the function was defined without any default parameter. And the MSDN tells that we can use it with a NULL paramenter,so I do this.But there comes a breaking when I debug the project after I building it. Then I step into the ATL source code to see the definition of GetLocalTm,and I found that there is a macro definition o ...Show All
Visual C# Are strings any easier in the new C#?
I stopped using C# about a year ago. I hated the complexity of using strings. Gone were the days of MyString = "Hello"; I had to now make an object. String manipulation, which was once easy using MID, RTRIM, REPLACE, etc., now is tedious. Anyway, I was wondering if the newest version of C# has made it any easier Um, you couldnt do - string s = "Hello"; what was so hard a ...Show All
Visual Studio Express Editions creating dynamic menu
Hi all; I would like to create a dynamic multi-level menu, and after I choose a choice it returns the path from the beginning, (as desktop toolbar in windows), like this: <img src=" http://abdnour.4t.com/images/Mnu1.bmp "> after creating the menu, and clicking on 'file2', it will return "C:\folder2\file2"; Please notice the provided picture or link. Can any one help. What part d ...Show All
.NET Development filter xml element value or dump to dataset to filter?
I have an xml file as the following: <company> <id>000</id> <address>foo</address> etc. </company> I need to search this file and get all values within the company element where the id equals a variable. I tried using (XmlTextReader.ReadString() = variable) which worked but it was too slow to be feasible. Is there a better way or should I just dump this file into a dataset and filter i ...Show All
Visual Studio 2008 (Pre-release) Generics & WCF
public class PersonService : IService < Person > { #region IService<Person> Members public Person GetById( int id) { Person p = new Person (); p.FirstName = "MyFirstName" ; p.LastName = "MyLastName" ; return p ; } #endregion } [ DataContract ] public class Person { string firstName; string lastName; [ DataMember ...Show All
Visual Basic using winInet.dll to open a certificate from a htttp server
Hi, I am trying to access to a Certificate with winInet.dll but it does not work. I have this code in a excel file with a Macro, if you put a button on the worksheet and run Connect(), you will see that the Excel will close itself. Can anybody help me Option Explicit Private Const INTERNET_OPEN_TYPE_PRECONFIG = 0 Private Const INTERNET_OPEN_TYPE_DIRECT = 1 Private Const INTERNET_OPEN_TYPE_PROXY = 3 Private Const INTERNET_SERVICE_HTTP = 3 P ...Show All
Visual Basic VB.NET: Connecting pivot table to a chart space data source
Hello! I have this problem... I need to synchronize a pivot table data source to a chart space data source. I already did this in VB 6 but I don't know how to do it in VB.NET. Maybe u have a sample code... Thank u very much! ...Show All
Visual Studio data fields in header and footer
Hi all Can someone tell me how to get data fields in the header and/or footer of my reports It appears I can only display these fields in the body as the ReportViewer gives me an error when trying to put them in the header. TIA Hi, Michael, You cannot do that directly. However, you can do it indirectly . Check out the following link provided by Rajeev and see if it can help. http://groups.google.c ...Show All
