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

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

PankajJSingh

Member List

Mark Macumber
Daudi
Rajesh batchu
Rischa
Randy Trexler
loplayers
abi
Jagoop
EvilTrev
meho
BryanMiller
Fradam
Markus Fischer
LKeene
Gary Ash
cyberjoe2
IXOYE333
KEnglish
Ian Jagger
Muna
Only Title

PankajJSingh's Q&A profile

  • Visual C++ sort of CListCtrl

    Hi. For example, for(i=0; i<n; i++) { ... XXX.InsertItem(0, A); // CListCtrl XXXClass::XXX XXX.SetItemText(0, 1, B); XXX.SetItemText(0, 2, C); XXX.SetItemText(0, 3, D); ... } I could get the result of list, but it's reversed, i.e. last-in first-out. I want like this: A B C D i=0 i=1 i=2 ... What's wrong Sorry for this simple matter... for(i=0; i<n; i++) { ... XXX.InsertItem(0, A); // CListCtrl XXXClass::XXX You may like this to modify to, for(i=0; i<n; i++) { XXX.InsertItem( LVIF_TEXT|LVIF_STATE, i, "A", 0, LVIS_SELECTED, 0, 0); // Initialize the text of the subitems. XXX.Set ...Show All

  • Visual Studio Tools for Office VSTO Eye for the Non Developer Guy

    If one were to describe the benefits of the differing VSTO projects to a managerial staff that may have no clue to what a VSTO application is verses an old style add-in...is there a good link to provide the uninitiated, the end-user benefits of VSTO created applications John R. Durant - MSFT wrote: OmegaMan (great movie from the 70's by the way), Either its that or the Police song by the same name. I don't know if Sting was influenced by the Movie for the song or not...Thanks for the info. ...Show All

  • .NET Development How do you work with bits in C#?

    Hi There, I have an application where I need to work with bit strings. My existing code is already written in C# so I'd like to continue with it. So far I haven't had too much finding out how to do things. There's a BitArray Class but it's a little obtuse to use, there's the byte type, but again a little obtuse. When I say obtuse, they're a little hard to initialize and you can't easily print a bit string of 0's and 1's. What I'd really like to be able to do is create a bit array or something similar and use that and be able to deal on the individual bit level. Any way I can do this Or some ideas and examples of working with the classes and data types that are available I guess bool really is a bit and I could make a class that uses bools ...Show All

  • SQL Server Nested set show leaves of parent

    Hello, I have the following code which will show all bottom level leaf nodes of the hierachy: SELECT name FROM tree WHERE rgt = lft + 1; I'd like to be able to filter results by a node. For example in a tree such as: Products ReleaseProduct Release1 Release build 1 Release build 2 Release 2 Release 2 build 1 Release 2 build 2 Build Product Build 1 Build 2 If Build 2 is chosen (any node with no children) I'd like to just show the Buuild 2, if ReleaseProduct is chosen Release build 1, Release build 2, Release 2 build 1 and Release 2 build 2 will be shown and if BuildProduct is chosen I'd like to display Build 1, Build 2. I understand the prinicipals but my SQ ...Show All

  • Community Chat Convert Money value to its Textual Representation

    Code Competition I had answered a post Convert to letter format a number value and provided a response that went counter to the logic of the threads up to that point. The two code examples provided to the poster used enums. I posted with a title Enums make me E-Numb and provided a code sample that use no enumerations. One of the other poster's code sample was .Net but based on a previous process he had written in a non .Net language. He commented that he had run my sample and after 100K operations mine was four second faster. He requested that I add some features to the code and repost so he could retest. I accepted his request and that is what this is...a place to post the code away from the original post so it does not become an OTP fro ...Show All

  • Windows Forms ClickOnce Error Message

    Hey, I deployed a project with ClickOnce and installed it successfully on my computer. But when I tried to run it, I got the following error message: Below is a summary of the errors, details of these errors are listed later in the log. * Activation of \\testserver\ClickOnceDeployment\AdminUtility.application resulted in exception. Following failure messages were detected: + Activation failed due to a Windows Side-by-Side error. System Event Log may contain some more information about this failure. + This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1) I checked the event viewer and all it said was that it ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. NoSuitableGraphicsDeviceException was unhandled

    Let me just say at the outset that I know nothing about C# (yet) and am trialing the XNA beta to try and get into it. I do know VB and some C, however. Once I had everything installed, I tried a few example programs including the Spacewar project, but I cannot run any of them. They build fine, but I can't run the .exe, and it crashes and asks if I want to send a report to MS. If I "Start Debugging" instead, I get the error "NoSuitableGraphicsDeviceException was unhandled" on the "this.GameComponents.Add(this.graphics);" line. I have no idea where to even start. Is it my install My PC My hardware The program I'm trying to run Once I know the environment is actually working, I can begin the learning! ...Show All

  • SQL Server Help with Variance in MDX Query

    I have the following MDX query. It calculates my measure (Call Count) by County on two different days. I would like my query to only return counties where the difference between day 1 and day 2 is greater than 10% of day 1. In other words I am looking for a variance of greater than 10% select ({[Date].[Date].&[20060901], [Date].[Date].&[20060908]}, {[Measures].[Call Count]}) on columns , [NPA NXX].[By Zip Code].[County]. Members on rows from [CallStats] Thanks, -Darrell You need to use the filter function to filter your counties. Here's an example query in Adventure Works which does roughly the same thing, ie returns all products where Internet Sales Amount is 10% greater in the ...Show All

  • Visual Studio 2008 (Pre-release) XBAP's and firewalls

    Can someone point me to info on xbap's and firewalls/anti-virus. I tried to set up a friend's computer running Norton firewall and anti-virus and had a lot of problems downloading NET framework 3.0 and running the xbap. Eventually I got the xbap to download but it failed with an exception. Any info Thanks, John Hi John, I'm out of my league, but I wouldn't expect the firewall to cause a problem... Did you try running the XBAP on another computer or with the Norton shut-off / uninstalled ...Show All

  • .NET Development Objects and Structs - whats the efficiency different.

    Hi all, I know alot depends on exactly what properties are contained in the types, but is it more efficient to use structs where nessecary (I'm programming on a mobile device). Thanks You'll probably want to have a look at Choosing Between Classes and Structures . Generally, structs are more inefficient than classes. ...Show All

  • Windows Forms DataGridView contextmenu strip issue

    I have a dataGridView whose columns have a contextmenu strip. When a cell is being edited I don't want to display a context menu on right click. I am using contextMenuStrip_opening event to set the options on contextmenu depending on the row that is clicked. Suggestions will be very much appreciated. for for my DGV contextmenustrip, I use the event: dataGridView1.CellMouseDown+=new DataGridViewCellMouseEventHandler(dataGridView1_CellMouseDown); then in that function I determine if it was a right click and where the click was. So you can easily check to see if that cell is in edit mode and then set the DGV's contextMenuStrip: private void dataGridView1_CellMouseDown(object sender, DataGridView ...Show All

  • Visual Basic Changing app.config file to hold new connectionstring

    I have a setting in 'My Program' as ConnectionString; Type: (Connection String); Scope: Application. all the tableadapters are using the my.settings.connectionsting for connection i want to be able to change the connectionstring during runtime.. i realize that the connection string is read-only so how do i change the value for that setting during run time therefore all my tableadapters will then use the new connection string... will this update/refresh tableadapters as soon as i change the value in the settings or do i have to do anything more can i actually edit the app.config file do i have to restart my application after editing the connection string i am a newbie to this so please excuse my many trivial questions... thanks alot. ...Show All

  • .NET Development TCP client + listener

    I have created a TCP client and listener and they are not working, It keeps saying that the targer machine actively refused the connection. All I wanted to be able to do was send text from a client to a listener..... heres my code any one have any guesses wut I did rong or what I am missing : Imports System.Text Imports System.Net.Sockets Public Class Form1 Private Sub TextBox1_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged Const portNumber As Integer = 8000 Dim tcpListener As New Net.Sockets.TcpListener(portNumber) tcpListener.Start() Dim tcpclient As New TcpClient Dim networkStream As Net.Sockets.NetworkStream = tcpclient ...Show All

  • Visual C# Getting corrupted memory for my class (structure) parameter for pinvoke a C++ DLL.

    Can someone see why am I getting memory corrupted and referenceable when i pass the class structure parament to the C++ pinvoked dll, which will assign value to this structure. I have tried both with or without the "ref" keyword in front of the class structure. Thanks. Here is my C# declaration: public class CUserContextData { public Byte bWinLogOn=0; public Byte bUnifiedID=0; public Byte symarkEnabled=0; [ MarshalAs ( UnmanagedType .ByValTStr, SizeConst = MAX_ADSPATH_CHARS)] public string shell= null ; [ MarshalAs ( UnmanagedType .ByValTStr, SizeConst = MAX_ADSPATH_CHARS)] public string homeDir= null ; [ MarshalAs ( UnmanagedType .ByValTStr, SizeConst = MAX_ADSPATH_C ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Position Sprite in the Center of Screen using XNA

    Sorry newbie question here! ^_^' I started the tutorial in Help and I got my sprite to appear on the screen but it is in the top left corner. How do I make my sprite to appear in the center instead of the top left Any help would be much appreciated. Thanks, Nodoka ------ New question. I got my sprite to appear in the center of the screen. How do I get the sprite to move in a random direction when I compile and run it Here is my code currently: #region Using Statements using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framew ...Show All

©2008 Software Development Network