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

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

jaegd

Member List

kiril.stanoev
Cavida
Johan_T
Kondas
markgoldin
Ron Rice
Predator14567
claesbrandt
baga
Chandra4332
PSernz
tarun_nagpal
dtlinker
zerovelocity
ron nash
Computer-Desk
djshades2004
Ganeshkumar S
heyram
Dom_donald
Only Title

jaegd's Q&A profile

  • Visual C++ How to handle menu item clicked event in ATL control?

    Hi , I was working on an ATL control. There is a dynamic popup menu in the control , items for menu is saved in txt file. Below is code for demo: CMenu menuPopup; menuPopup.CreatePopupMenu(); menuPopup.AppendMenu(MF_STRING,100,"item1"); menuPopup.AppendMenu(MF_STRING,101,"item2"); menuPopup.AppendMenu(MF_STRING,102,"item3"); menuPopup.AppendMenu(MF_STRING,103,"item4"); menuPopup.TrackPopupMenu(..... But I don't konw how to handle item clicked event for the menu Thanks Robert menuPopup.TrackPopupMenu(..... TrackPopupMenu has parameter, which is handle to window, processing command messages from this menu. You need to handl ...Show All

  • Visual Studio SubreportProcessing not firing, does it have to be an executable project?

    Summary: SubreportProcessing is not firing when the project output type is not executable. Hi , I am using LocalReport in my application. All the reports are located is inside a library and also all of them are embeded inside the assembly, so far everythings worked fine until I tried to use a subreport. I notice for some reason the SubreportProcessing event does not get fired, in order to test the application, I copied exactly the same files into an executable test project, and I noticed everything work properly there. Can you tell me what is the problem   And if my guess is correct, problem is related to the project output type, how can I achieve this without chaning the project output type Many Thank ...Show All

  • Visual Studio How to disable the Parameter prompt for Crystal Report using VB.Net

    I'm having a problem whereby I can't disable the parameter prompting in VB.Net with the following codes:- Dim crPDV As ParameterDiscreteValue Dim crPFD As ParameterFieldDefinitions Dim crPFL As ParameterFieldDefinition Dim crPV As ParameterValues crPFD = CR.DataDefinition.ParameterFields crPFL = crPFD.Item("paramterName") crPV = crPFL.CurrentValues crPDV = New CrystalDecisions.Shared.ParameterDiscreteValue crPDV.Value = valueToPass crPV.Add(crPDV) crPFL.ApplyCurrentValues(crPV) CrystalReportViewer1.ReportSource = Application.StartupPath & "\TheReport.rpt" CrystalReportViewer1.Show() Any error with the above codes OR do i need to add any additional code(s) that able for me to pass the parameter value direc ...Show All

  • SQL Server NS with Remote DB Server?

    Hi everybody, In good old times with a one server everything worked fine. Now I have 2 servers: web server + DB server. I have deployed NS Instance to the Web server with DBs created on the DB server. Installs nice and easy. However, my Subscription management App (ASP.Net based) crashes with message: Login failed for user ''. The user is not associated with a trusted SQL Server connection . [NSException: Notification Services failed to get the metadata for the specified instance. Instance Name: NSInstance SqlServerError: Source: .Net SqlClient Data Provider Number: 18452 State: 1 Class: 14 Server: DBSERVER\DB Message: Login failed for user ''. The user is not associated with a trusted SQL Server connection. Procedu ...Show All

  • Visual C# Restrict the size of a string

    This is more then likley going to be an easy fix, but at the moment I can not think straight. What I am tring to do is restrict the size of a string. I am in the process of migrating some data from one sql system to another and need to truncate some text in the process. I need to convert a text field to a varchar(7989), to do this I need to make sure that the data from the text filed is striped so that only the first 7989n characters are returned. I have a data reader that I am going through and am adding it to a genieric collection that I am then going to process and re insert into the new system... all I need is a way to restrict the text returned from the data reader... all the rest is fine. not at all :-) I take this as a ...Show All

  • Visual Studio 2008 (Pre-release) Orcas December CTP Moved to First Week of January

    From Charlie Calvert via the OakLeaf blog: "The January CTP (formerly known as the December CTP) should be out shortly after the new year. We are sorry about the delay; it is due in part to the huge December 14 storm that knocked out the power for over a million residents here in the Seattle area." According to Charlie's updated " Community Convergence XV " post, the January 2007 CTP will drop "the first week of January." --rj Perhaps I'm missing something here...but the January CTP of Orcas will _STILL_ not have any LINQ to SQL features in it, which means those of us who have been building lots of code up on LINQ to SQL and the ADO.NET vNext Entity Framewo ...Show All

  • Visual C++ error LNK2001

    Hi, (I saw the post on same subject but it seems to be a little different. so I'll use some word from that post!) There is a project earlier written in VC++ 6.0.  I opened the same project in VS. NET 2005 and I am trying to compile.  The code compiles properly (with couple of warnings) but while linking I am getting unresolved external symbol errors like this: The linker seems to have problem with seeing .obj from files in program (which are in the debug directory). It doesn't seem that the /Zl switch or the /NODEFAULTLIB  are on. 1>Linking... 1>Utm.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zone.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zones.obj ...Show All

  • Windows Forms How do I update the changes from my DataGridView into my SQL table?

    Hi all, having a hard time to understand the relation among Dataset, tables, Dataviews,etc... I am trying to update my SQL table after I do some modifications in my DataviewGrid(or table ). See code below: ... string strConn = "Data Source=(local);user id=sa;password=xxx;Initial Catalog=UpgradeClient;"; da = new SqlDataAdapter("SELECT * FROM STBData", strConn); table = new DataTable("STBData"); da.FillSchema(table, SchemaType.Source); dataGridView1.DataSource = table.DefaultView; da.Fill(table); ... private void btnUpgrade_Click(object sender, EventArgs e) { string strAccountId, strSTBid, strSTBType = ""; Int32 selectedRowCount = dataGridView1.Rows.GetRowCount(DataGridViewEl ...Show All

  • SQL Server displaying % in value

    Hi I am calculating percentage using expression. I want to display % at the end of the result. If I use P1 or P0 somehow it multiplies the result with 100 I guess. Here is what my calculated value is 15.384515 and I want to display 15.38% Using P1 or P0 I am getting 1,538.5% How can I get the desired result Any help would be appreciated. Regards Amit Hi niallhannon, I also have a similar problem in formatiing the data after rendering to excel. The Field value is a percentage. If there isn't any value zeros are getting displayed. So if i use a format expression #,# (not to display anything in the cell),the percentage field is getting disturbed and is not getting di ...Show All

  • SQL Server ParallelPeriod, Subcubes, and SP2

    We're defining some KPIs that include trend expressions which use the ParallelPeriod function to calculate the change in a KPI value since a past time period. For example, we calculate the change in the KPI value When we use an MDX SELECT with a WHERE clause that specifies a time slice, the expression evaluates correctly. However, when we use CREATE SUBCUBE to do the filter, or use BI Studio (which creates a subcube), the result is incorrect. In particular, the there's an IsEmpty check for the parallel period of the KPI value, so we're not doing bogus math when there's no data for the previous period. With the WHERE clause, that works fine, but with the subcube, the ParallelPeriod always evaluates to empty. As a point of comparison, I t ...Show All

  • Visual Studio Detect change to project properties

    Hi all, Hopefully a quick and easy question. I have a little add-in that I use to detect certain events in Visual Studio 2005. I now want to be able to detect when a project's properties have been changed (ie build path, application type, references). Does anyone know of such an event and how to hook into it. Thanks, Mark. You can detect reference changes casting EnvDTE.Project.Object to VSLangProj.VSProject and then using VSProject.Events.ReferencesEvents, but AFAIK there is no way to detect property changed events, maybe using some service from the SDK ...Show All

  • .NET Development SNMP how can i?

    hello. how can i use winsnmp32.dll in c# project.any sample code in order to use that dll in C# you will have to use interop capabilities provided in C# and you will hvae to port the structures used and declare the methods on ur own and will be a hefty process . how ever you can use the sockets in c# and easily do ur work as compared to that interop procedure . Following is the link that will give you a kick start and i hope it wiull be helpful PLease check this out it can help you to get started http://www.java2s.com/Code/CSharp/Network/SimpleSNMP.htm ...Show All

  • .NET Development Rong in calculation !!

    Hi I got a funy problem I could not solve look at following code and run : Dim S As Single = 2345.235 Dim D As Double = 3456.456 MsgBox(2345.235 * 3456.456) MsgBox(CType(S, Double) * D) Dim Dt As New DataTable Dt.Columns.Add("s", GetType(Single)) Dt.Columns.Add("d", GetType(Decimal)) Dt.Columns.Add("r", GetType(Decimal), "s * d") Dim R As DataRow = Dt.NewRow R!s = 2345.235 R!d = 3456 Dt.Rows.Add(R) MsgBox(2345.235 * 3456) MsgBox(R!r) after running u will find out : 8106201.5871600006 8106201.9584589843 8105132.16 8105132D as u can see non of each groups are same!!!! so , I ...Show All

  • .NET Development Service Pack for .NET Framework 2

    Does any of the Microsoft guys know when approximately should we wait for the Service Pack 1 for the .NET Framework 2 I'm specifically interested to override this problem: http://support.microsoft.com/kb/917952 Thanks As far as things needing to be patched for .NET Framework 2... I have .NET 1.1 and .NET 2.0 installed on PCs running XP Pro, IIS v5.1. I get a dialog box with the following error message (I have noticed this on two different machines, both at home and work), right before shutdown (screen has already gone from blue to black): aspnet_state.exe. Application Error. The instruction at 0x6a2a2fec referenced memory at 0x0000000c could not be "read". Click "OK" to end program. Cli ...Show All

  • Software Development for Windows Vista Can't copy files from my Pocket PC to Windows Vista

    Okay, for some reason, I can't copy files from my pocket pc to Windows Vista. It basically just hangs when I try to copy a file. I can copy files TO the device just fine, but I can't copy from the device. Does anyone know what might be going on here There is a Plug & Play Service that is set to auto, but there isn't a PNP for other devices service. If the Plug & Play service were not enabled, I wouldn't be able to copy to the device either. I'm not sure what security setting you might be refering to. The Plug & Play service is set to auto and runs as Local System. ...Show All

©2008 Software Development Network