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

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

samarrin

Member List

Eric Martin
brianmultilanguage
Konstantin Meleshenko MSFT
HarryChou
Derrix Sture-Tucker
DuncanEdwards
Nflowerpower
Claudio Livio
efonsecab
jbacigal
kirikiri
Dwayne Walters
sekhar_nitt
phestermcs
Ankush
Monscheuer
j0ey
wvbotha
Sebastian Werner (de)
Steven Ramacher
Only Title

samarrin's Q&A profile

  • .NET Development unzipping files in a ZIP file

    I need to read in a ZIP file (WinZIP file) and write out the files contained to a folder, can I use System.IO.Compression I've looked at the deflate stream method, and this looks easy enough to decompress to memory, but how do I write out the files from this point thanks Not sure if the compression namespace supports ZIP Compression or not, but you could try this out: http://www.icsharpcode.net/OpenSource/SharpZipLib/ I've been using it since the 1.1 framework and it works rather well. Thanks Wayne ...Show All

  • Visual Studio Define a menu command

    What is the menuGroup value to use when i define a DynamicStatusMenuCommand This code in GetMenuCommand() doesn't work: menuCommand = new DynamicStatusMenuCommand ( new EventHandler ( OnStatusExportDiagramAsBitmap ), new EventHandler ( OnExportDiagramAsBitmap ), new CommandID ( new Guid ( Constants .MyModelCommandSetId), cmdIDExportDiagramAsBitmap ) ); commandList.Add( menuCommand ); Thank you, Ooops, it's work. I forgot the famous ProvideMenuResource parameter. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. vc++ 2005 express want to build dxsdk sample usp10.h missing

    Hi, its me another time So I installed vc++ 2005 express and did set up the include/lib file directories for the sdk and tried to build a sample of the newest dxsdk (december 2005). But now I get the message Compiling... dxstdafx.cpp c:\programmieren\dxsamples\configsystem\common\dxutgui.h(12) : fatal error C1083: Cannot open include file: 'usp10.h': No such file or directory Build log was saved at "file://c:\programmieren\dxsamples\ConfigSystem\Debug\BuildLog.htm" ConfigSystem - 1 error(s), 0 warning(s) I did not even try to change the settings because there simply is no usp10.h file in the sdk dir ...Show All

  • Visual Studio VS2005b2 automatic attribute code generation

    Hi there! I'm writing my own C# component to be used with the Windows Forms Designer. This component has a DesignerSerializer attached. Within my CodeDomSerializer I would like to generate additional attributes that get noted infront of some form controls. Like this: [My.ActionSourceAttribute("APP17", "New.Action", "")] private System.Windows.Forms.Button button1; I really could manage all that to get the attribute generated at the right place. My problem is that after inserting the attribute by using DTE, it's no longer possible to add new controls in the Designer. To be more precise: One still can add a control using the Designer b ...Show All

  • Visual Studio Express Editions Reconfiguring dataset with Access database

    I have a database created with Access. My question is if I make changes to the database within Access what is the proper method of reconfiguring the dataset in the VB editor so that the changes are seen. As an example I created a Users table in Access and then added this datasource to my VB project. I then went back and added a column to the table. What is the proper method of resetting the dataset in the VB editor. Thanks. Because of these issues... I never use these features in VS2005. I read a table in and I use enumerated offsets... the enumeration might look like this: Public Enum DataR ...Show All

  • SQL Server Add a variable from custom component

    Hi I am writing a custom transformation component that utilises a user variable. Before using the variable at run time I am checking that the variable exists, but it would be nice to be able to add it if it does not. I cannot find any documentation on the subject, though I can see that the Variables class is derived from a ReadOnlyCollectionBase. Is there a way to add a user variable with package scope from a custom component, either at run time or design time Thanks . . . Ed ...Show All

  • Smart Device Development Can not create Smart Device project in VS 2005

    Hello I've been coding for PocketPC/Smartphone using eVC 4.0 and prev. for several years.  Now, I've installed Visual Studio 2005 and Windows Mobile 5.0 SDKs. The problem is: 1.  When trying to create a new Smart Device project I get the following error message: "Error retrieving information from user datastore". 2.  When trying to open a sample PocketPC or Smartphone project from Samples/CPP/Win32 the error message says: "The project could not be opened becaouse it refers to a device platform that does not exist in your data store". 3.  When selecting "Tools/Connect to Device" on the VS 2005 menu, first it shows error me ...Show All

  • SQL Server Incremental loading

    Hi Friends please let me know how can we incrementally load a destination table with source table. bearing in mind that we need to track that there are no duplicates in the destination table. I need to load only changed or new data in the final load. Please give me some examples also. I am tryin this from last 2 days as I am totally new to SSIS. Hi, First off: do you have a column on your source data that indicates that a row is new or changed If you do, then you can select from your source based on that column, using parameterised queries. This might be the case with, for example, an orders_table where the data on the row change ...Show All

  • .NET Development word 97' to word 2003 document conversion to produce xml readable document

    Hi, I'm a java developer facing a migration that oblige me to use the WordprocessingML technology to write word documents from already existing 97 word templates. When I save these documents as .xml, they are not exactly readables so I won't be able to do any kind of variable substitution in my java process. Does anyone know a solution for this issue Thanks in advance. What readability you mean If your file is XML file you should be able to read it with XmlTextReader. Do you mean human readable ...Show All

  • Visual C++ How to save (DC member) to bitmapfile? Please Help!

    Hi again! I want to save memBitmap to a bitmap File. what should I do this my code: CPaintDC dc(this) ; CDC memDC ; CBitmap memBitmap ; CBitmap* oldBitmap ; memDC.CreateCompatibleDC(&dc) ; memBitmap.CreateCompatibleBitmap(&dc,(2+myRect.Width()),(2+3*myRect.Height())) ; oldBitmap = (CBitmap *)memDC.SelectObject(& memBitmap ) ; if (memDC.GetSafeHdc() != NULL) { memDC.BitBlt(1,1,(2+myRect.Width()),(2+3*myRect.Height()) ,&dc,(3+myRect.left) ,(3+myRect.top) ,SRCCOPY ); } memDC.SelectObject(oldBitmap) ; thank for Answer. Searching the web will give you a quicker answer than waiting for someo ...Show All

  • .NET Development Main function in web service project

    I have written an XML database which I wish to access via a web service. I have compiled the application to a dll and referenced it in a web service. I try to instantiate the database class by creating a main function I have =============================== private static xmlDatabase DB; public static void main() {     DB = new xmlDatabase(); } [WebMethod] public void Inquire(string searchParam) {     DB.Inquire(searchParam); } =============================== I get the error "Object reference not set to an instance of an object." Which means the main function is not being called and DB is not being instantiat ...Show All

  • Windows Forms How to show a different text for bool

    Hi, is there a simple way to display a different text on a bool-bound text. Assume I have an app with a label showing some bool value from an SQL-Table. This shows True or False - what I want is to show (for an example) Yes / No, or 1 / 0 on "Out off office" / "In the office". Another "problem" is that I sometimes want to bind reverse. So for an example I want to hide a button if some expression is true. The other way is simple - I bind the Visible attribute to the bool - but what if this is different. Or what if I want to enable when a textfield has a certain value In ASP.NET I would write something like Attr="<%# Eval("F ...Show All

  • .NET Development Problems calling oracle stored procedures in .NET 2.0

    Calling oracle procedures seems a little spotty to me so far in 2.0 For example: the following code sample works for me in 1.1, but in 2.0 it hangs on the ExecuteNonQuery command.... without even returning an exception or anything Is there a problem with the Oracle routines in 2.0 private Boolean GetMasterSiteInfo(String PimsCaseNumber) { OracleConnection myConnection = new OracleConnection("Data Source=xxxxx;uid=xxxxx;pwd=xxxxx;"); OracleCommand cmd = new OracleCommand("sa.Cma_Utils.sp_getMasterSiteInfo", myConnection); cmd.CommandType = CommandType.StoredProcedure; OracleParameter parmCaseNumber = cmd.Parameters.Add("i_c ...Show All

  • SQL Server DCOM error

    I just installed sql server 2005 on a windows 2003 server.  I chose the option to install but do not configure.  After restarting, I used the Reporting SErvices Configuration Manager and it all looks ok.  When I browse to //localhost/reports I get a rs page with the message of: The request failed with HTTP status 400: Bad Request. One slightly unusual thing is SQL Server 2005 was installed as a named instance ("(local)\SQL2K5") - the server's default instance is a sql 2000 installation, which had RS installed and running.  Before configuring RS for 2k5, I deleted the VDs for Reports and ReportServer ...Show All

  • Visual C++ fatal error LNK1104: cannot open file 'LIBC.lib'

    I'm trying to compile a C source code project with Visual Studio 2005.  I'm linking in 2 libraries that were built using Visual Studio 2003.  When I build my project, I get 1 error: fatal error LNK1104: cannot open file 'LIBC.lib' I know libc.lib is not included with Visual Studio 2005.  How can I overcome this problem Thanks, Mike You might still have one of your older libs that weren't rebuilt. Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=75362&SiteID=1  that deals with a similar issue. Thanks,   Ayman Shoukry   VC++ Team ...Show All

©2008 Software Development Network