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

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

nbrege

Member List

Mark Macumber
wwlliiaamm
Ohio Mike
antxxxx
CramsterRk
Belly
Hassan Ayoub
JosepMola
sanjeevm
fergar
Warren LaFrance Jr
Blair Allen Stark
AugCampos
ERF
Jared Y
Fradam
Dipendra
pat_seo
Amos Soma
Jassim Rahma
Only Title

nbrege's Q&A profile

  • Windows Forms Changing window size dynamically

    Hi! I have a question about a window form in visual c++: I have an application which takes as parameters two integers, the width and the hight of a form to be created; moreover, the form contains a panel, which has to be resized too, to fit the hight and the width of that form. The problem is that even using commands like: this->Size = System::Drawing::Size(width,height); this->panel1->Size = System::Drawing::Size(width,height); (located in the constructor, after InitializeComponent() command) the window still has the same dimensions as shown in the visual c++ design window (I mean "form1.h[Design]"). Perhaps there is some option to be set Or maybe something to be changed in the toolbox Thank you! ...Show All

  • Visual C++ LNK2001: using unmanangedC++ in manC++

    Hi, i'm writing a new user-interface for a small software-company. The old interface should be replaced by the new one, the "inner core" should stay. The old program was written in unmanaged C++, but now I'm writing the user-interface in C#, so I have to use class wrappers. While building the managed C++-project (in a solution with the unman. C++-projects) there a some errors. For example: Error error LNK2001: unresolved external symbol ___argv nafxcwd.lib and Error error LNK2001: unresolved external symbol ___argc nafxcwd.lib Another one: Error error LNK2001: unresolved external symbol __pgmptr db.lib [db is one of the old unmanaged C++-projects] The settings are the following: Linker->Input->Add. Dep ...Show All

  • Visual C# What is the purpose of a private constructor?

    What is the purpose of a private constructor For which purpose we use it i think to Prevent the creation of instance for a class use the private constructor, but can any body explain it in better way Good Explanation.   But Private class are specially used to prevent instance of a class publuc sealed class MySingleton { static MySingleton instance = null; private MySingleton() { } public static MySingletopn ClassInstance {    get    if(instance == null)    {        instance = new MySingletion();    }    return instance;  } } ...Show All

  • Software Development for Windows Vista using correlation token to decide which activity to be executed

    Say you have a parallel activity, with two eventSink activities on either branch. Is it possible to have both eventSink activities “listening” to the same event, and use correlation token to decide which activity to be executed Mikael Yes - but you have to have both activities have their "events" fire in order to pass the parallel activity. The Listen Activity is what you want to use if you want one or the other to fire. ...Show All

  • Visual Studio Generating API documentation in visual studio 2005 environment

    I wonder does visual studio 2005 provide any extensive features to generate API documentation from the classes we design and coded so it makes it easier for us to stream line communcation among multiple developers. kindly let me know if there is such a tool or feature available. if not, do tell me of any other viable solutions out there that could automate generation of API. Thanks a million I have problems using the tools. it seems that it is a tedious process for me to figure out how the sandcastle commands works with a given .xml file. Could someone help me simplify the steps if you have used it before thanks ...Show All

  • SQL Server Blank page when exported to PDF

    Hi all, I have this report which has one table and 2 matixes one below the other. The 2 matrixes are very big matrixes (i mean they are wide enough to spill over to the next page). I have "PageBreakatStart" true for the 2 matixes. Here is my problem. when i export this report to PDF, i get a blank page after the table. If i get rid of "PageBreakatStart", there is no blank page but matrix1 start right after the table which i don't want. can somebody tell me how to eliminate that blank page Hope my explanation makes sense. ...Show All

  • Microsoft ISV Community Center Forums ADO Recordsets

    I have a routine in Excel, which pulls data in from a SQL Server database into two ADO Recordsets using two seperate queries. These recordsets contain only 1 field, being customer ID, each with in excess of 65,000 records. I need to compare these two recordsets to establish how many customer IDs are present in one, but not the other and vice versa. Is there some clever way of looping I could use to achieve this The only other thing I can think of is a local query within my module on the two datasets, but is this possible Cheers for any help! Keith Hi man, No worries about the stored procedures, your quite right, you don't know who's watching. I don't get much oppertunity to write sto ...Show All

  • SQL Server SQLNCLI vs SQLSRV32 / SQLBindCol / SQL_WCHAR to SQL_C_CHAR stopped working?

    I'm trying to retrieve native character data (SQL_WCHAR) through ODBC into an SQL_C_CHAR buffer using SQLBindCol and SQLFetch. The database is SQL Server 2005 Developer Edition. If I use DRIVER={SQL Server}, i.e., use SQLSRV32, everything gets converted properly. If I use DRIVER={SQL Native Client}, i.e., use SQLCNLI, I apparently get garbage. This is true for ntext, nchar and nvarchar. I also have problems with xml, but I haven't gotten far enough to isolate what's going on with it. Thanks for the response. Taking your example, I discovered the problem is related to nvarchar(max). All my testing included that type and skewed my conclusions. (My browser keeps generating errors, so I'm not sure I can mark this thread as an ...Show All

  • Visual Studio 2008 (Pre-release) How to pre-fetching object graphs using VB Syntax?

    I see posts and other examples in C# for pre-fectching object graphs. I do not see any VB examples. Can someone let me know how to pre-fetch using VB 9.0 C# syntax - e.g. var q = (for c in db.Customers where c.City = "London" select c).Including(c => c.Orders) What is the VB 9.0 equivalent The May 2006 version of VB does not have lambda support so this functionality is not expressible in VB at present. The VB team is considering various options for such functionality. Thanks. Dinesh ...Show All

  • .NET Development DataColumn.Expression Property

    Below is an example from the .NET Class Lib. My question is about the lines of code using expression = "   " They always reference another column in the table. How do you reference another variable in your code. For example: I want to call my function mySUM(x,y) that sums two numbers instead of using the line below that I marked. DataTable table = new DataTable ();     // Create the first column.     DataColumn priceColumn = new DataColumn();     priceColumn.DataType = System.Type.GetType("System.Decimal");     priceColumn.ColumnName = "price";     priceColumn.DefaultValue = 50;          // Create the second, calculate ...Show All

  • Visual Basic A few n00b questions

    I have a few questions to ask, so i'll ask them all here. :P I'm building a program that will get a string like (010305060405 e.t.c.). They are co-ordinates in the form of XXYYXXYY e.t.c. how can i split them to 4 characters and then their respective XX and YY co-ordinates to be added to an array I've researched string.split and couldn't find anything that helped me. Also, what would be the best way of showing images for these values in a grid I want to show them as images in a grid that could be up to 99 x 99 cells (maximum, bare basic is something like 50 x 50 or 60 x 40 or 70 x 30 [default sizes]). And how would i go about doing that And would it be possible to see if a usr has clicked on a cell and to then perform an event, like ...Show All

  • Community Chat Windows Code Named Vienna

    Can Anyone tell me how compatible it is going to be with previous versions of Windows. I think you mean "successor". Windows Vista's predecessor would be Windows XP. I am not on the Windows team, but I can tell you it is VERY early in the planning stages for Vienna and any rumors you here are probably just that. It's probably not even worth speculation at this time. Just enjoy Windows Vista. ...Show All

  • Windows Forms Using the button control

    Hi I know this is a extremely simple question, but could you please help me anyway - I am a programmer newbee so I don't have that much experience...but I am a hard working leaner. I have a form (formA) with a buttoncontrol on it (btnOrder) and I want this btnOrder to open another form (frmOrder) when clicked. I know I have to write an eventhandler but no matter what I do, it won't work. Could you please give me tip - I'd be ever so gratefull Kind regards Tina Hi JDee Thanks a bunch for your efforts, unfortunately it didn't help much - I can't get it to work as planned. What I tried is this code in a button on FormA Public Class Form1 Private Sub Button1_Cl ...Show All

  • Visual Studio Team System Global Exception Handler for a Test Project?

    I have a test project that exercises a legacy COM server using a layer of Interop assemblies. There are thousands of test cases. The COM server throws a COMException whenever an error occurs (with only a return code and a one-line message), but makes available an extended set of (server-side) stack trace information via a separate method call. I'd like to add that additional information to the test results of a failing test case. In my main application I would put a try/catch block around the call, catch COMException and re-raise my own "ServerException", which would make available all of the additional stack trace info. Is there a way to apply this same mechanism globally for all test cases, without having to add the exact sa ...Show All

  • Visual C# convert from vb to c#

    Hi all, I had the vb code as follow: objdata.Tables( "record" ).Rows(v1).Item( "name" )=txt1.Text Can someone help me to convert this to C# code I had tried this objdata.Tables["record"].Rows[v1 ].Item[ "name" ]=txt1.Text; but was given an error Error 4 'System.Data.DataRow' does not contain a definition for 'Item' Thanks Hi, bslim In C#, there is no DataRowCollection[int num].Item expression, you'd use ItemArray (object [] type) instead. objdata.Tables["record"].Rows[v1 ].ItemArray = objectArray; ( objectArray is object [] type with the value of txt1.Text and assuming that v1 is an int). OR objdata.Tables["re ...Show All

©2008 Software Development Network