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

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

deklund

Member List

bvanderw
HenryM679
rockworld
fabianus
Osiris43
DanglingChap
tonn
Will Merydith
vranjit138
znrigtoiwqo
MaqboolHussain
Joshua Nobes
Vaneet375270
Chandra4332
detzX
Ramesh_Kumar_02a072
Khenat.Ram
Rush hour
David S. Anderson
Ananda Ganesh
Only Title

deklund's Q&A profile

  • Smart Device Development Why no managed C++?

    I am wondering what is the specific reason why there is no support for managed C++ (CLR projects) in smart device development Is it because this area is not very popular and since most .Net programmers use C# and VB, MS figured the resources are better spent elsewhere Or is there some other, technical reason I have done plenty of Win32 and MFC development and I have no problem using Win32 (or should I say, the Windows API) for lower-level stuff (inter-process and thread synchronization and communication, system and hardware access, etc.) but MFC was really only good for GUI stuff and now that we have .Net, which can do that and so much more, I just don't want to have to go back. And I'm really not looking forward to learning C# - not that ...Show All

  • Visual C# Create Derived instance of Base instance

    Hello,   I was wondering if it is possible to have a base class and create a new reference to it which is a derived class. Here is a little example of what i mean: class Program { static void Main( string [] args) { BaseClass b = new BaseClass (); b.num = 5; DerivedClass d = new DerivedClass (b,true); Console .WriteLine( "derived :" + d.num); //The output is: derived: 5 b.num = 6; Console .WriteLine( "derived :" + d.num); //The output should be: derived: 6 Console .ReadLine(); } } class BaseClass { public int num = 0; } class DerivedClass : BaseClass { public DerivedClass( BaseClass bClass, bool access) { if (access == true) { ...Show All

  • SQL Server send mail using variables from select statement

    I'm getting the error "No recepient is specified". I have set up a dataflow from a select statement into a record set, then have that dataflow point to a ForEach group with a mail task in it. I have set up variables for the username and subjectline. So in the mail task I have no value in the To: line because I specify an "http://www.sqlis.com/59.aspx">http://www.sqlis.com/59.aspx exactly. I couldn't figure out how to included screen shots. Any ideas Okay, found it. I have to set DelayValidation to True . Since the To line is set through ...Show All

  • Windows Forms Changing DataMember shown in DataGridView

    Hi, I have 3 tables and on the click of a button I want to switch the table shown as a DataMember in the DataGridView to that of another. I realise you can change the DataMember by using DataGridView::DataMember = "" but this doesn't update the columns shown; I want the DGV to change the columns shown to those in the 2nd DataMember, and show certain records from that member. How does one do this I know you can clear columns and add them, but I don't know how to populate them with the data - I figure there must be some way just to switch the DataMember and grab all the columns and data from that, rather than adding columns manually. Thanks in advance, IxxI You can also filter data with the hel ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Runtime footprint on 360

    How much RAM is left to play with on the 360 once the launcher and runtime has loaded That would only let me know the available managed heap space - I'm assuming there is an unmanaged heap knocking around as well. An official breakdown of memory allocation would be useful as well - for instance, do the managed and unmanaged heaps fight for space, or do they have their space already allocated. And what goes into each heap when stuff is created - for instance with vertex/index buffers, textures, sounds.  ...Show All

  • Windows Forms Problem with ClickOnce and mandatory profile

    Hi, I'm having problem running a ClickOnce application using mandatory user profile. I'm getting these error messages: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : http://192.168.0.2/ClickViewPlayerLite/ClickViewPlayerLite_1_0_0_2.application videoid=668 ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of http://192.168.0.2/ClickViewPlayerLite/ClickViewPlayerLite_1_0_0_2.application videoid= ...Show All

  • Windows Forms Adjust a Document to print in a WebBrowser Control

    Hi all!! I'm printing a document showed in a WebBrowser Control with ShowPrintDialog... It works perfectly (well almost)... When I see the printed document I notice that some parts of my document does'nt appear... I want to adjust the printing to include totally the document... Any Advice Thank you...!! ...Show All

  • Visual Studio 2008 (Pre-release) SOA - Prototype

    Hello, Is there a solid implementation of a SOA application using WCF. I have seen a bunch of demos that say they're SOA but they more like Client/Server remoting. Thanks Houman SOA is a paradigm for implementing programs. WCF supports service orientation the way it is architected. A client server application can be service-oriented or not. It depends on if it follows the 4 tenets of service orientation. With .Net Remoting, your share type not schemas - both sides is CLR and both sides need knowledge of the type - this is a violation of a key tenet of service orientation. With WCF, on the other hand, the two sides share schema and contract and not types. I think this article might help clar ...Show All

  • Software Development for Windows Vista WF Designer: Glyph provider is not being used by my viewer

    Hi all, I have a web page that displays the workflow image for a given workflow instance id. I based this code on the WorkflowMonitor in the June CTP SDK. To avoid CAS issues, my workflowViewer saves the workflow image as a stream which is returned to the web page for rendering (as opposed to hosting a designer surface directly in a web page). This is working fine, however I am unable to hook in the glyph provider to mark Closed and Executing activities, as is done in the SDK. Here's the relevant code extract: --- IDesignerGlyphProviderService glyphService = (IDesignerGlyphProviderService)designSurface.GetService(typeof(IDesignerGlyphProviderService)); WorkflowMonitorDesignerGlyphProvider glyphProvider = new WorkflowMoni ...Show All

  • Visual Studio 2008 (Pre-release) dataContractSerializer with msmqIntegration?

    I have basetype datacontract with knowntype attributes of subclass type marked. it has no problem work with netTCP, namePipe,msmqBinding, but it gives error with msmqIntegrationBinding. Is it dataContractSerializer can't be appied to msmqIntegration due to the interop reason if so, how to pass around subclass types with msmqIntegrationBinding, any example thanks Thank you so much, Leszek. it works like a magic. you are a hero. :) Just wonder if it can also configured through .config. if so, could you show me a sample too. because it will enable us to load the dynamic type in runtime. Thanks again for your help oaix ...Show All

  • Windows Forms menu item and AddHandler?

    Ok, new problem. I can not find where I did this before. Dyamically adding menu items: string sql = "Select * From myTable"; OleDbConnection conn = getDb(); conn.Open(); OleDbCommand myCommand = new OleDbCommand(sql, conn); OleDbDataReader myReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection); while (myReader.Read()) { mnuView.MenuItems.Add(myReader[0].ToString()); } myReader.Close(); I need to add a handler to each menu item for a click event. Check/uncheck and other actions I already have written. It's like right on the tip of my mind, but just can't see it... must be late. Thanks, Zath Two ways to do it. You can use a traditional eve ...Show All

  • Visual C++ Writing Scalable IOCP Socket Apps

    Ok, so I have done a fair amount of research, and I dont "get it". I understand IOCP is a huge and powerful concept, and relatively new. Anyway, I am having a LOT of problems while setting it up, and not sure if what I'm doing is what its supposed to be doing. Before you direct me to a link just yet, I'll show you were I have looked: http://msdn.microsoft.com/msdnmag/issues/1000/winsock/ http://win32.mvps.org/network/sockhim.html And an ungodly amount of time in the MSDN winsock functions/structs/etc. The problem with the first 2, is they give a good dive into it, but the example source code doesnt really show the steps of doing it. The 1st link doesnt go a ...Show All

  • .NET Development Query all Table Names in Access Database

    I would like to write a function which queries a list of all tables within a certain Access Database using the OleDB classes. This is what I'm trying so far (I found the big SQL select string online somewhere): Dim AccessDBConnection As New OleDb.OleDbConnection( "Provider= Microsoft.Jet.OLEDB.4.0;Data Source=c:\Northwind.mdb" ) AccessDBConnection.Open() Dim AccessDBAdapter As New OleDb.OleDbDataAdapter( "SELECT [Name] FROM MSysObjects WHERE Type=1 And Left([Name],1)<>'~' And Left([Name],4) <> 'MSys' Order By [Name]" , AccessDBConnection) Dim AccessDataSet As New DataSet() ' AccessDBAdapter.Fill(AccessDataSet) --- Unfortunately, I get this run-time error messa ...Show All

  • Visual Studio 2008 (Pre-release) Building expressions at runtime

    Hi all :) I've started experimenting with the whole expression tree stuff and it looks really interesting. I'm thinking of a way to let a user specify certain operations ( +, -, / , * for example) and build a function out of it which can be saved and used later on. I know I can do something like this: ParameterExpression p0 = Expression .Parameter( typeof ( float ), "x" ); ParameterExpression p1 = Expression .Parameter( typeof ( float ), "y" ); var e = Expression .Lambda< Func < float , float , float >>( Expression .Subtract(p0,p1), new ParameterExpression [] { p0, p1 }); Console .WriteLine(e.Compile()(3,4)); And this will print -1 as output. But how can I generalize this I wou ...Show All

  • Software Development for Windows Vista Cancelling Workflows Spawned From InvokeWorkflowActivity

    It seems like there must be some way to cancel workflows spawned from an InvokeWorkflowActivity. I currently have two sequential workflows set up such that one workflow performs a set of intialization activities and then at some point, in a ReplicatorActivity, I execute an InvokeWorkflowActivity for a given number of times. The InvokeWorkflowActivity operates asynchronously such that as soon as it executes, it completes (does not wait for spawned workflow to complete). Once the ReplicatorActivity finishes, I have a WhileActivity with a HandleExternalEventActivity which receieves notifications from the spawned workflows that they've completed. In some scenarios, though, let's say only one of the spawned workflows needs to comple ...Show All

©2008 Software Development Network