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

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

jimbad

Member List

SLG29
SteveBouffard
robinsenior
gvphubli
Christian N
Colleen TechNot
TomWP
tommaso_
yizhixiaozhu
Lance Hunt
rj_khatri
YN
Zhiqiang Feng
Bobbyboy
herbjörn
Fretje
CrazyBinary82
mxale
Guldmann
HugoC
Only Title

jimbad's Q&A profile

  • .NET Development SENS Events in .NET 2.0

    I have discovered how to catch SENS events using .NET 1.1, and recently found out that .NET 2.0 will raise similar SENS events.  Unfortunately, these events that 2.0 raises do not provide as much information as what I can get from SENS directly. I will be providing links to both my local documentation, as well as the online WinFX documentation on the http://winfx.msdn.microsoft.com/library/  website in regards to the following questions. With the SystemEvents class in the Microsoft.Win32 namespace, longhorn: http://winfx.msdn.microsoft.com/library/en-us/cpref/winfx/ref/ns/microsoft.win32/c/systemevents/systemevents.asp frame=true l ...Show All

  • .NET Development Problems reading array in struct

    Hi, I'm trying to marshal the DS_SELECTION_LIST struct ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/ad/ad/ds_selection_list.asp ) to C#. It works, but only the first element is retrieved. I believe this is because the marshaler can not determine the array size. However, the field cItems in the struct determines the array size. But I can not use the SizeParamIndex with UnmanagedType.ByValArray. So I tried the UnmanagedType.LPArray but then I receive the exception: System.TypeLoadException: Cannot marshal field 'aDsSelection' of type 'ADHelper.DS_SELECTION_LIST': Invalid managed/unmanaged type combination (Arrays field ...Show All

  • Visual C# Implement "file download" in C#

    Hi... I am writing an application where I have a button. When the user clicks the button, data is read from a database and a text report is generated. Additionally, I want to have a file download dialog box appear to allow the user to save the report to his hard disk. I tried using the following:    strFileName = Request.QueryString("file");       Response.ContentType = "application/octet-stream";    Response.ContentType = "application/x-download";    Response.AddHeader("Content-Disposition", "filename=" + strFileName);    Response.WriteFile(Server ...Show All

  • Visual Studio Team System Visual Studio 2005 Team Suite Trial crashes with Reports. P0-S0 Bug!

    Hello all, I've posted a while back about a concern I had with VSTS and Reports. VSTS was crashing when switching datasets in the dataset dropdownbox. I've been told this would be fixed and we are now using Visual Studio 2005 Team Suite Trial and the crashes still occurs. These are the product we are currently using: -TFS BETA 3 refresh -SQL 2005 Standard Edition -Visual Studio 2005 Team Suite Trial These are the Repro steps: I've create a new Business Intelligence Projects-->Report Server Project I've installed/unzipped the existing reports that were in the MsfAgile_new.zip file from the TFS BETA 3 refresh CD (ISO image) I've added the ...Show All

  • Visual Studio Express Editions plotting graphs

    I'm not able to use afxdisp.h as it gives lots of errors with windows standard.. & thus cant use COleSafeArray for creating array to plot graphs. & not able to use mschart can someone please help me out.. how to plot XY grahps.. using simple form application in vc++ thanks & regards -- vishal Are you using VC++ express edition If so you cannot use VC++ Express with COleSafeArray, since that is part of MFC. And MFC is not available in C++ Express. Unless you can find some way of emulating COleSafeArray, you'll have to buy the standard edition or higher. ...Show All

  • Visual Studio MSBuild "Configuration" and "OutDir" Properties

    Hi! We have a preliminary MSBuild script that calls a solution to compile a ASP.NET 2.0 project like so: <MSBuild Projects="WebApp1.sln" Properties="Configuration=Release;OutDir=../webapp1_deploy/"/> We're pretty new to MSBuild so bear with us, but how does MSBuild know to interpret the "Properties" From what we can gather, - Configuration=Release tells the solution file to use 'Release.AspNetCompiler.Debug="false"; ' and - OutDir=../webapp1_deploy/ tells the solution file to set 'Release.AspNetCompiler.TargetPath="../webapp1_deploy/" ' Is there a listing of possib ...Show All

  • SQL Server Data Source / ODBC error

    Hi all, My replication of those SQL 2000 servers gave errors: Data source (11): General Network Error. Check your network documentation... and ODBC (08S01): Communication link failure. The replication was across the WAN. I don't know where to start to troubleshoot this problem. Please help! Thanks in advance. John Communication link failure means some network or communication problem between the Publisher/Distributor and Subscriber. Check the connection between them. Try connecting to the other servers from each of the servers and ensure that you are able to connect and then retry the Sync. Also note for any firewalls ...Show All

  • Visual C# "taskbar notification"

    I'd like to use a "taskbar notification" in one of my apps. What I mean is that I'd like to have one of those little message boxes that look like tooltips (yellow background) slide up from the taskbar, stay up for a few seconds, then slide back down. I've seen them referred to as taskbar notifications, but they probably have a different name in the VC#/.NET. If anyone knows what they are called and how to use them, I'd appreciate knowing about it. Thanks, Jay Hello Jay. You cam use NotifyIcon control for this purpose. Just drag that from the Toolbox window to ur form. Setup the property. ...Show All

  • Windows Forms listbox bound to a datatable

    I have a "mover" form (two listboxes - lstCodes (list of possible values), and lstSelected (list of selected values)) When I choose something in lstCodes, I lookup the value in a datatable dtCategoryLookup, then I populate lstSelected's datasource with a new row containing the id and description of the lookup. lstSelected is to a datatable dtSelected. When I run the code below, the only thing added to lstSelected is the string "System.Data.DataRowView" DataRow[] dr = dtCategoryLookup.Select("id='"+lstCodes.SelectedValue.ToString().Trim()+"'"); DataRow oRow = dtSelected.NewRow(); oRow["id"]=( string )dr[0]["id"]; oRow["cDescription" ...Show All

  • .NET Development Strange connection string persistence issue

    I’m connecting to a MySQL database using a third party component (MySQLDirect).   The issue I’m having does not seem to be a bug in the third party component as no other users are reporting issues with it and they seem unable to help.   I would really appreciate if someone could give me some inspiration on how else I can think about tracking this issue down.   The weird issue is:   I have my MySQL database connection string in the app.config file.   I’m using the MySQLDirect components in a component designer using VB.Net 2005.   When I change the database name in the config file to another database, t ...Show All

  • SQL Server autonomous transactions

    Is there any equivalent to Oracle's autonomous transaction in sqlserver. No. There is no way to do this in SQL Server right now. You can write extended SPs or CLR SPs (SQL 2005) that performs a different connection to the database. But this approach has it's own limitations and scalability problems. One workaround that will work in SQL2000/2005 depending on your requirements is to use a table variable within a transaction to dump the information. Table variables do not participate in user transactions so you can later retrieve the rows and dump them into an error log table for example after the transaction h ...Show All

  • .NET Development Getting client IP

    When doing remoting (console application), is there a way to get the client IP address I want to block IP if they try to brute force the login. Sub Main() Dim chan As TcpChannel chan = New TcpChannel(8085) ChannelServices.RegisterChannel(chan) RemotingConfiguration.RegisterWellKnownServiceType( GetType (Server), "RemotingServer", WellKnownObjectMode.Singleton) Console.WriteLine("Server Activated") Console.ReadLine() End Sub Public Class Server Inherits MarshalByRefObject Implements Common.IServer ... End Class I was searching the web to find the answer to my problem and read the Stephen Toub's article ...Show All

  • SQL Server Unable to connect to Analysis Services as a client

    Hi, I got SQL SERVER 2005 SP1 installed on a server and is running fine. I've installed BI studio on a client computer and I can access the database engine. On the client computer, while deloying my cube I get the following error : the project could not be deployed on the server "server_name\instance_name" due to connectivity problems. Verify that the server is running I've checked the project properties and in the deployment section I have the right server : "server_name\instance_name" and the right database : "database_name". I can access the server since i've created the datasource using the sqlclient provi ...Show All

  • Visual C++ Need Hierarchy chart for VC++ 2005

    Hi, Can anybody tell me where can I find Hierarchy chart for VC++ 2005 Thanx ManuLi Hi, Thanks for your response. As I am working in MFC, I am looking out for MFC. If I could also get ATL etc. it will be good for my knowledge. Thanx ...Show All

  • Visual Studio 2008 (Pre-release) How to get Count in GroupBy

    I tried to translate the very common sql query Select Category, count(*) as NumberOfProducts from Products group by Category into linq syntax. I was able to write it like this: var orderGroups = from p in products group p by p.Category into g select new { Category = g.Key, NumberOfProducts = g.Count() }; Question: is there a O(1) way, to get the NumberOfProducts without using the Count()-Function running presumably O(n) Thanks! Depending on the underlying server, which in all of our cases at the moment, is SQL 2005 - Counting the number of rows in a group is actually a O(1) operation. It has a fixed cost because ...Show All

©2008 Software Development Network