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

Software Development Network >> Kasper B's Q&A profile

Kasper B

Member List

El Pea
seham
Mark Freeman
haiqiao
HemantKumar
Ronnie Vernon
OlivierJ
Nikolai Bochkarev
joedalsin
mdyoung
Gaja
Aaron R
isiran
Yi Liang
pflangan
George Longmire
Martin Dolphin
Asaf Barak
JRQ
Bill Zunis
Only Title

Kasper B's Q&A profile

  • .NET Development can't launch the MFC application on AMD64 operating system.

    Hi,        I have ported an application from 32 to 64 bit and trying to run on AMD64 OS but it prompts a follwing system error.   " Application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. " system error code for this message is 14001. Also, Windows event viewer displays the following message  "Dependent Assembly Microsoft.Windows.Common-Controls could not be found and Last Error was The referenced assembly is not installed on your system." Is it the problem with 64SDK version or 64bit WinXP version.Currently, I h ...Show All

  • Visual C# width % and px

    I have my datagrid (ewb app) with 1 column not visible, then a column, then other columns of width=10px,10px,20px,20px. Datagrid is in <div style="OVERFLOW-Y: auto; WIDTH: 100%; HEIGHT: 100%;"> which is in a table... I want size 2nd column to fill remaining part. How Thx Your table need to have a width of 100%, the rest will follow. <table width="100%" border="1"> <tr> <td width="30px">a</td> <td>a</td> <td width="30px">a</td> <td width="30px">a</td> <td width="30px">a</td> </tr& ...Show All

  • Visual C# Dictionaries and the objects they contain!

    I was just wondering, is there some way to synchronize the modification of objects that are in dictionaries (or any other IEnumerable interface for that matter), if they are modified without referring to the dictionary I find that this code snippet doesnt work (I might be too naive): foobar bar = new foobar(); bar.setText("hollathere"); Dictionary <string, foobar> someDict = new Dictionary<string, foobar>(); someDict.Add("handle", bar); Now if I modify bar directly, without going through the dictionary, the changes aren't reflected in the dictionary. Same is the case the other way round. bar.setText("blahblahblah"); ...Show All

  • Windows Forms Visual studio Start page

    Hi, When I start visual studio, the start page opens as usual. When I select the internet resources tabs, it displays: 'This feature requires that you have previously connected to the internet or are currently online' I am online. How can I access the internet resources I don't have cable, so I don't think that's the problem. ...Show All

  • Windows Forms Setting header style of columns in datagrid

    Hi All I want to get header style of header of column in DataGrid (WIN Form), and use this style in every row in some specific column I used this code below. It already change the colours of every row in one column, but cells from this columns seems to be flat, and it is not exaclty the same as in original header of column. public class DataGridColoredTextBoxColumn : DataGridTextBoxColumn { private int _column; public DataGridColoredTextBoxColumn( int column) { _column = column; } protected override void Paint(System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.Cu ...Show All

  • Visual C# Drop down list does not display any items

    I have about six drop down lists and would like to use a common custom method. When I run the first set of code below in each drop down list’s init the dropdownlist is populated as expected. When I run the code as shown in the second set of code below (calling the custom module), it executes but the dropdownlist data does not display on the form. When I run in debug the list stays populated until the page load fires and then the dropdownlist is empty on the page. Why doesn’t the data stay loaded in the dropdownlist Any help you can give is appreciated. FIRST SET OF CODE: protected void lstboxPortfoli ...Show All

  • Visual C++ Convert std::string* to BSTR*

    Hello! I  am using VC++ .NET to convert std::string* to BSTR*. Could any of provide a sample/pseudo code as to how this could be done! :-) Thanks a much! Karthik BSTR Convert( const std:: string & s) { return CComBSTR(s.c_str()).Detach(); }   ...Show All

  • Visual C++ Places Bar on CFileDialog

    Hello all, I'm using a custom save dialog inherited from the CFileDialog. The problem is that the Places Bar is hidden, and I can't show it. Can anyone help me please !! Are you using MFC 4.2 with VC6 If this is the case the following link is the answer: http://msdn.microsoft.com/msdnmag/issues/0800/c/ ...Show All

  • Windows Live Developer Forums blog photo

    hi, new to msn spaces. does the msn spaces api allows blogging photos regards, rnv The MetaWeblog API doesn't allow blogging photos. We are currently investigating options for allowing programmatic access to photos in a future release. ...Show All

  • Visual C++ How to get rid of the funny scroll bar or expand it in a Dialog?

    I add items to the comboBox by _ASSERT( CB_ERR != SendDlgItemMessage(hwndDlg, IDC_LIST_CONTEXTS, CB_INSERTSTRING, 0, (LPARAM)_T( "None" )) ); In C#, the comboBox automatically drops down to a certain size before it has that scroll bar. Here in my C++ Dialog, the comboBox when you click on the down arrow, it drops down another row with a tinny up and down button(underneah the comboBox's big down arrow button) for me to scroll through my small list of just 3 items. Can any one tell me how to fix this problem Thanks. It's a weird quirk of the dialog resource editor. Sorry, this is going to be quite tough to explain w ...Show All

  • SQL Server If in current month

    I need to do this but can't find the syntax: IIf(Fields!EnteredDate.Value is in current month , Cint(Fields!PC.Value), CInt(0)) solved my second question: =IIF(Month(Fields!EnteredDate.Value) & Year(Fields!EnteredDate.Value) <> Month(Today) & Year(Today),Cint(Fields!PDC.Value),0) ...Show All

  • .NET Development DataSet

    i have a dataset filled with mdb, wich contains ID, Name, Date und salary. so here is my problem: 1. how can I sum all those salaries together 2. how can i sum salaries according to Date for example sum salaries only for June. is there any way to get Salary column into an array for calculation the answer will not be saved in database. can somebody help me please. thnx in advance You should be able to do all of those things using the System.Data.DataTable.Compute() method. This way, you could actually do your calculations on the table itself rather than copying d ...Show All

  • Visual Studio 2008 (Pre-release) Inheritance problem?

    I'm having a problem creating a ServiceHost using two servicecontracts which inherit from the same parent servicecontract. When I try to create the host the following error occurs: ArgumentException: An item with the same key has already been added. My guess is that the creation thinks that both IServiceContract's are two different contracts, which they are not. Is there any solution to this or something I do wrong Creating one contract for both contracts is no option (duo to more inheritance). Call to create the serviceHost: Uri uri = new Uri ( "net.tcp://localhost:8100/LocationService" ); ServiceHost PostalCodeHost = new ServiceHost ...Show All

  • Visual Studio Breakpoint will not be hit. No executable code......

    I have seen some very odd behaviour with the debugger in a large native C++ application we are developing in .net studio 2003. We added a new GUI which is an instance of an ILOG charts GUI and suddenly we could not set breakpoints anywhere in our code. On further investigation, if we maintain all the same project settings (linker/debugger etc) but comment out the instantiation of this new class the breakpoints work fine. If we put the new class in and comment out other areas of the GUI which instance different ILOG VIEWS classes the debug breakpoints work fine. If we have the application built with all the code together, then the debugger tu ...Show All

  • Visual Studio Tools for Office c# automation - copy excel table to a powerpoint slide

    Does anyone know how to copy an excel table to a powerpoint slide So far I'm able to open both applications and create the table in excel. I just can't copy that table over to the powerpoint slide. My last attempt was this: xlSheet.get_Range("A1","D1").Copy(shapes.AddTable(numRows, numCol, left, top, width, height)); Thanks for any help you can give! I'm still trying to find a solution for this. The .copy method has one paramater, a destination object. So right away I thought that since I wanted to copy it to a powerpoint slide, the slide would be the "destination object". It compiles but then gives me ...Show All

©2008 Software Development Network