David pereira's Q&A profile
.NET Development VS05 Custom Build rule for il file
Before I break VS05, I thought I'd ask if how to set up a custom build rule for an ilasm file (*.il) to exe Thanks. Another stupid question is why is errorlevel 1 when it would seem there are no errors Build Log Rebuild started: Project: il0, Configuration: Debug|Win32 Command Lines Creating temporary file "c:\c\05p\il\il0\Debug\BAT00000E50681060.bat" with contents [ @echo off ilasm /EXE /OUTPUT=../Debug/il0.exe il0.il if errorlevel 1 goto VCReportError goto VCEnd :VCReportError echo Project : error PRJ0019: A tool returned an error code from "Compile il-file to exe" exit 1 :VCEnd ] Creating command line "c:\c\05p\il\il0\Debug\BAT00000E50681060.bat" Output Window Compile il-file to exe M ...Show All
Visual Studio Express Editions runtime error i need help
the error occured when i run the the exe file (BF2.exe) then what happen is, it says this error microsoft visual C++ library runtime error program:D:\program files\EA games\battlefield 2\BF2.exe this application has requested the runtime to terminate it in unusual way like that. plz lend to me ur knowledge on how to fix this error.. tnx in advance^_^ That seems to be a bug in BF2.exe. You should contact the support of EA games if they know about that error and if they have a fix. If they do not have one, try to find a pattern at what point that error occurs. Can you do some repeating moves to produce the error Try to be as exact as possible - this might help finding the bug. -- Sv ...Show All
SQL Server Calculated measu Currency value with currency code
Hi, I'm working with SSAS 2005. I'm implementing a Sales Cube (Data mart) with several Currencies values and codes - Reporting Sales - Transaction Sales I would like to render the currencies values in my cube as follow: Currency value + Space + Currency code, i.e. "1000 EUR" The Currency value and the Currency code are stored in my fact table. My fact table has a fact key. I tried to follow the steps as explained in the following articles but I didn't succeed to get meaninful data if I browse my cube: http://www.sqlserveranalysisservices.com/OLAPPapers/Handling%20Comments%20in%20Yukon.htm For the moment, I did the following things to achieve it: - I dragged the fact key as new measure and set its properties " ...Show All
Visual Basic how to change the row position in datagridview using drag and drop
in my project i have a requirement to drag and drop the particular selected row and keep it in a different position Check out the DataGridView FAQ here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=152467&SiteID=1 the example is in C#, but the VB code should be very similar... ...Show All
Visual Basic I need Help in a Snake game
Hi THere i wanna make a snake game and i wanna make it by pictureboxs so that i can easily modify it , this pictureboxs will be HEAD 1picturebox BODY unknown number Tail 1 picture the problem is in how will i make it make the body and how will i be able to make the body extend with out making it touch the head - if the head touch the tail or the body the snake it dead - OR if you havr any better ideas that i can easily do and modify just tell me - i want to make it from the scratch so don't wanna use any ones stuff :s - thanks in advance ...Show All
Visual Studio Tool in visual studio 2005 sp1 to do documentation?
Hi, has vs 2005 sp1 any tool to do code documentation like doxygen Thanks Hi Manuel, SP1 doesn't include new features or tools. It's simply a roll up of many bug fixes for Visual Studio 2005. Currently, there is an addin called Sandcastle that I believe is still under development, but is available in CTP form that you may find interesting. You can read more about it at http://blogs.msdn.com/sandcastle/ and also at http://www.sandcastledocs.com . Sincerely, ...Show All
SQL Server Cannot run package in Job Agent with Script task included
Dear, Since I met the strange thing these days. I cannot make it clear that how can I run the SSIS Package in job agent I hv tried the solutions within this forum, but still couldn't solve my problem. I have set the right credentials with the admin role of SQL account. In my SSIS package, there is a script task which is used to find out the target flat file as connection string by a user defined variable. Aspect 1: If I disable this script task in my SSIS package, then choose "SQL Server Integration Services Package" as the step in Job Agent, run as a proxy, it can run this package without error. But if I enable the script task, then choose "SQL Server Integration Services Package" as the step in Job Agent, run as a proxy. then ...Show All
Visual C# How to make an unbound textbox update, refresh, or paint in load event
I figured this one out. But I post because it might help others. Here is my load event: private void Frm_Payment_Authorization_Load( object sender, EventArgs e) { /* TODO: This line of code loads data into the 'kwikBoex_ConfigDataSet.Authorization' table. You can move, or remove it, as needed. */ int i = this .authorizationTableAdapter.Fill( this .kwikBoex_ConfigDataSet.Authorization); bool auth = ( bool ) kwikBoex_ConfigDataSet.Authorization[0][ "Payment_Is_Authorized" ]; Set_pmt_auth_txt(auth); } Here is the function called to set the text of the textbox: private void Set_pmt_auth_txt( bool b) { if (b == true ) { textBox_pmt_auth.Text = "Payment is authorized" ; } e ...Show All
Visual Basic How to a long line into 2 lines?
I forgot... I think u need to type something close to this: [first half of line] +_ [2nd half of line] Couldn't google it :( could someone remind me. well yes it won't work because you are creating an array of chars (characters). To join characters together into a string.... Dim theString as String for each currentChar in theCharArray theString = theString & currentChar.ToString() next ...Show All
.NET Development Interop, pinning and delegates
A hopefully simple question. Win32 functions like ReadFileEx take a function pointer for later callback. Interop-wise I've defined this as a delegate [DllImport("kernel32.dll", SetLastError=true)] public static extern bool ReadFileEx ( IntPtr hFile, byte[] lpBuffer, uint nNumberOfBytesToRead, Overlapped lpOverlapped, CompletionDelegate lpCompletionRoutine ); Where the completion delegate is defined as: public delegate void CompletionDelegate ( uint dwErrorCode, uint dwNumberOfBytesTransfered, Overlapped lpOverlapped ); This all works fine, but I've a question. Some time can elapse between the ReadFileEx call and completion of the I/O (when the delegate is cal ...Show All
Visual Studio 2008 (Pre-release) DLINQ and Biz Rules/Data Validation
Hi there, Are there any plans to include some hooks into a DLINQ objects life cycle to allow for easy valication I was thinking along the Rails ActiveRecord path where the DAO has validation build in that is automatically applied before an objects is saved. So in DLINQ what I really want to do is add some validation code to a known method(s) in my class - say orders as an example and have DLINQ check this during a save, and return false/ throw an exception if it does not pass validation. Anyone been able to achieve this with DLINQ, or does anyone at MS know if there are any plans to include it Thanks. Hi, We don't have anything similar to what you're describing here. If you generated your objects with the designer we do have Pro ...Show All
.NET Development Windows Vista x64 Conexant Audio Driver Problem
I Have a gateway Laptop, Model number MX6437. AMD Turion64 processor, ATI Radeon Xpress 200m Graphics, 1 Gig of Ram (upgraded from 512). I Downloaded The Windows Vista Beta 2 x64 bit Version. It installed ok, but I have Found I have no Sound driver. I have Tried Windows Update, no luck. I Have Also Rebooted my pc and pressed f8 and turned off the Assighn digital signiture. Rebooted, Still no sound. I have tried Drivers that people on here have recomended but still no luck. Even the ati south bridge driver. every time i do an install on thier recommended driver they say worked for them, i get an error message saying: error installing software. The specified file cannont be found. I still have a red x in the sound icon. I have a conexant aud ...Show All
Visual C++ Cursor above ComboBox - is it possible to change?...
Hi there everyone! I have few years of not particularly primary experience with MFC (I am using VS 6.0 ), and I have a problem I really can't solve now. I've made a quite sophisticated combobox with individual functionality, owner drawing and everything, and a minor bug was reported to me, saying: when the combo box is read-only (I solved it with subclassing the editbox within and than calling SetReadOnly and HideCaret), the cursor - when going over the editbox within the combo - changes to a text-cursor ( | ). Now I know it wouldn't do that if the combo would be drop-list instead of drop-down, but earlier (another issue, doesn't matter now) I had the experience that you just can't properly implement onwer-drawing to a drop-list com ...Show All
Smart Device Development [C#][Smarthone 2003 Deployement] How to deploy an app on a smartphone
Hi, I can test my app on the smartphone emulator but i'm can't download my app on my smartphone. The first thing i try is to browse into my smatphone (like embeded c++ tool : File View) First step i n try to connect to device using the tool menu tool>>conect to device>>smartphone 2003 device But i got an error "Connection failed : the version of activsync is not supported" My version is 3.8 i think it is the latest... And my emVC++ 4.0 tools can browse the smartphone, so embeded c++ tools can do the work but not visual studio 2005. Is there a stuff like C:\Program Files\Windows CE Tools\wce420\SMARTPHONE 2003\Tools\spdps.exe /create /device comand line but for visual studio tools this time Second thing, David T So s ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# Express and VS Pro
Hi, I have VS.NET 2005 Professional running on my pc. Now when i try to install XNA Studio it says i need C#.NET Express installed on my pc. Will the express version and vs pro run without any conflicts on the same pc Why does xna only support express version Yes both pro and express can co-exist. Actually I'm running it this way and it works fine for me. It is little annoying that the xna integrates only with express and express is needed for the instalation though. ...Show All
