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

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

RobertP2

Member List

lapo3399
_Werner
Harmen Mesker
Andrew7Webb
Jack0000
m.zirino
NixonX
hsacks
Riaanvs
popokay
cosmicX
Vasco Marques
Isha
eric8910
DaGeRe
Thomas_Taylor
Thomas Logan - MSFT
Claudio Lassala MVP
Rowland
Dave Matsumoto
Only Title

RobertP2's Q&A profile

  • Software Development for Windows Vista WorkflowWebHostingModule - drawbacks

    Using the WorkflowWebHostingModule seems to have some drawbacks. For example, in order to add say SqlTrackingService in code, you have to first stop the runtime, add the serive, then restart it... Thoughts JB WorkflowRuntime workflowRuntime = WorkflowWebRequestContext .Current.WorkflowRuntime; workflowRuntime. StopRuntime (); workflowRuntime.AddService( new SqlTrackingService (connectionStringTracking)); workflowRuntime.AddService( new SqlWorkflowPersistenceService (connectionStringPersistence)); workflowRuntime. StartRuntime (); Hi Jon, ...Show All

  • SQL Server sp_send_dbmail won't work using @query get information from temporary table

    Hi, I am trying to send an email using sp_send_dbmail with @query geting information from a temporary table and I got a error message "Invalid object name #testTable". If I run the query alone (select * from #test), it works. If I remove the @query and @attach_query_result_as_file part, the code works too. Is it a bug in SQL 2005 Have any idea Here is my code. create table #Test ( Drive char ( 1 ), MB_Free int ) insert into #Test exec xp_fixeddrives exec msdb . dbo . sp_send_dbmail @profile_name = profile name' , @recipients = 'test@email.com' , @query = 'Select * from #Te ...Show All

  • Windows Forms Help dealing with nulls

    I was interested in the proper way to deal with null objects.  I have a Contact Class that contains an Email Collection class. In certain circumstances the email collection will contain no emails. When i do something like: lvContact.SubItems.Add(contact.Emails[0].EmailAddress); This will throw an aurgument out of range exception since there is no objects in the collection. I changed the ...Show All

  • Visual Studio vs 2005 beta 2 setup fails

    When I try to setup vs 2005 beta 2, it says that it failed to setup visual studio itself after it gets to the end screen. The installation seems normal untill then because the vs 2005 even gets a checkmark next to it when on the install screen. The progress bar never moves when it is on vs 2005 though. I will post the error log when I can find it. Hello, I am getting the same kind of error  when installing Visual Studio 2005 Beta2. The comments before the "return value 3" are: MSI (s) (20:D8) [11:12:03:571]: Assembly Error:Function not defined in specified DLL. MSI (s) (20:D8) [11:12:03:571]: Note: 1: ...Show All

  • Visual Studio Language Service handling TODO comment task items

    C#, VB.NET etc generate Task items from TODO, etc in comments. Is there an easy way to do this in the Managed Language Service Afterall, if you've got a Colorizer then it should automatically be able to identify comments and search them for the relevant tokens. It also has an TaskProvider - though this seems to be tailored towards Errors.  Would appreciate any suggestions, or advice on how to proceed. Thanks Mark. Could one of you please post your solution code for this, I've been unable to find a solution for this same issue myself. I've managed to add tasks to the Tasklist in the FDoIde but I hav ...Show All

  • SQL Server Connection

    Hi all, I was on SQL 2000 and now changed over to SQL 2005 Ex Ed. When I run my application I get the following error Mssg @ Conn.Open An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional information: System error. Code: Imports System.Data.SqlClient Public Conn As SqlConnection = New SqlConnection Dim da As New SqlDataAdapter Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Conn.ConnectionString = "Data Source=(local);" & _ "Initial Catalog=Rsch1;" & _ "Integrated Security=SSPI" Conn.Open() ...Show All

  • Visual C++ ostream::seekp not working.

    After I converted the following from VC 6.0 to VS 2005, the seekp() call stopped working. Can anyone confirm that this is a bug, or have I configured something incorrectly std::osftream myStream; myStream.open( " myFile ", std::ios_base::out | std::ios_base::app ); myStream << < xml version=\"1.0\" >\n<LogFile>\n"; myStream << "</LogFile>"; . . . myStream.seekp( -10, std::ios::end ); myStream << someText; myStream << "</LogFile>"; The clear() has no affect. According to ...Show All

  • Visual C++ managed jagged array - returning from method

    I have an interface defined in C# with a method that returns int[][]. So far, I have not found away to implement this method in managed c++. I can declare the method: int Class1::GetJaggedArray() __gc[] __gc[] { return NULL; } But I have yet to find away to declare, allocate and return a managed jagged array. I get Class1.cpp(102) : error C2691: 'int __gc[]' : invalid type for __gc array element Likewise, my C# interface declares a method that takes an int[][]. However, I can't even declare a method such as void Class1::SetJaggedArray(int foo __gc[] __gc[]) { } This gives the same error C2691 I ...Show All

  • Windows Forms User control problem in ASP.NET using C#

    Hi, I created a user control that lists some links from the database (this is a RadioButtonList control). When the user clicks a button, i want to read the value part of the selection (using SelectedValue property) and then redirect the user to a page. The problem is, my user control is displaying the links from the database on my page fine but wh ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. building game as a project for college

    hello sir,    i want to know about the roadmap that i should follow while developing the game.i've learnt about the DXgeometric pipeline and light's & materials & also about the meshes.now i don't know how to create scenes for my game and how to perform animation in it.    game description:         a mission game ,with city ,in which the objective of the player will be to destroy the four main head quarters(buildings) of some organization using car. could u plz help me out.    if you need a 3D modeling program do a search for gmax you can create aircraft ...Show All

  • Visual Studio Tools for Office Problem using Chart Export with VB .NET on MS Office 2003 on XP

    For the last 2 days solid I have been chasing a problem. I've found it impossible to use the Chart Export facility in a Excel VB.NET from the Microsoft.Office.Interop.Excel references. The system is as follows:- VB.NET 2003 Version 7.1.3088 .NET Framework 1.1 Version 1.1.4322 SP1 Microsoft XP Pro, Version 2002 SP2. My cut down code to show the problem is as follows, and is called simply by clicking a button on a Form with nothing else on it:- Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim objexcel As Microsoft.office.interop.excel.Application Dim objchart ...Show All

  • Visual C# How to pass reference parameter to unmanaged dll

    Hi I have a function in unmanaged(VC++) dll which is accepting a refernce parameter void check(UInt32& c) { c=20; } I want to call this function from my managed code(C#) so i used the following code class Program { [DllImport("samp.dll")] public static extern void check(ref UInt32 c); static void Main(string[] args) { UInt32 s = 0; check(ref s); Console.WriteLine(s.ToString ()); Console.ReadLine(); } } but it shows me the error"Unable to find an entry point named 'check' in DLL 'samp.dll'." is there any way to call a unmanaged dll's function(which has reference parameter) from managed code without using DLL import if ...Show All

  • Visual Basic Newbie Radiobutton Question

    Hi, After much hunting I can't seem to find out how to do this. I want to check the state of 5 radio buttons. Here's what i want in pseudo code: for each xRadio in Group_of_RadioButtons     If radiobutton(x).checked = false then       msgbox("Some Message")     Else       radiobutton(x).value = "some text"     end if Next   So my questions are these: 1. How do you iterate through a group of radiobuttons (for each Radio in GroupBox.Controls doesn't work - not a control) 2. How do you assign an arbitrary string value to th ...Show All

  • SQL Server Character to date conversion

    I am trying to write and insert statement that takes up a date value, such as, Insert into tablename(date_column) values (date('some date', format)); I however do not know how exactly to convert a character string to transact sql date. can someone please lead me in correct direction Some documentation could also help. Thanks --Shilpa There is a copy of books online (not unsurprisingly) online: http://msdn2.microsoft.com/en-us/ms130214(sql.90).aspx You can also download it online. They update it quarterly, and this download is from April: http://www.microsoft.com/downloads/details.aspx FamilyID=be6a ...Show All

  • Visual Studio can't install VS2005 - "not a valid win32 application"

    I'm trying to install visual studio on desktop with an AMD64 processor (but using 32-bit XP Pro), and when I try to install Visual Studio 2005, I get a "not a valid win32 application" in a dialog box. I get the error "D:\ is not a valid win32 application" when I try to use autoplay, and "D:\setup.exe is not a valid win32 application" when I try to run setup directly from the disc. Any ideas yup, Im having the same problem. Any luck finding a solution I would greatly like to find out how to get this installed on my AMD64 processor machine ...Show All

©2008 Software Development Network