Andreia M's Q&A profile
Visual Studio Express Editions A Puzzle?
Below is the code, and you can press Button1 as fast and as often as you like to get a list of 6 random number from 1 -7 but if you change this intNumber = Int((7 * Rnd()) + 1) to this intNumber = Int((6 * Rnd()) + 1) it still works by giving a list of 6 random number from 1 -6 but it only does it once Public Class Form1 Dim intNumber As Integer Dim arrNumber(0 To 5) As Integer Dim i, x, y As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ListBox1.Items.Clear() For x = 0 To 5 Start: Randomize() intNumber = Int((7 * Rnd()) + 1) For y = 0 To 5 If intNumber = arrNumber(y) Then G ...Show All
Game Technologies: DirectX, XNA, XACT, etc. VertexBuffer and IndexBuffer For Height Map
I'm trying to create a heightmap from an image using a VertexBuffer and IndexBuffer but it isn't working. When I run my program, I just see a blank screen. Any ideas using System; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace HeightmapDemo { public class Heightmap { public static float HeightScale = 50f; public static float CellSize = 20f; protected VertexPositionNormalTexture[] vertices; protected short[] indices; protected VertexDeclaration vertDecl; protected VertexBuffer vertBuffer; protected IndexBuffer indexBuffer; protected BasicEffect effect; public void GenerateModel(GraphicsDevice graphicsDevice, Textur ...Show All
Visual Basic Visual basic 6.0 Runtime error
Hi All, In my VB 6.0 application when i want to save the changes in EXE then suddenly iam getting below error. "The instruction at "0x182eefb2" referenced memory at "0xfffffffff", the memory could not be read" error."Click on OK to terminate the program" message is displaying after clicking on the OK button it is displaying one more message "The instruction at "0x01ee86e3" referenced memory at "0x8c000869", the memory could not be "written".Click on ok to terminate the program" message is dispaling if click on OK means then application is crashing. Please give me the urgent replay because our project is in production phase. Thanks&Regards, Ammireddy ...Show All
Software Development for Windows Vista User Interface to change rules
Hi, I am just trying to compare Windows workflow rules engine with a typical Business rules engine. In WF, we can make Rulesets and it provides fantastic features like Forward chaining,etc but was wondering if I want to change any rule in the Ruleset I need to change the code and build my application again. And this activity has to be done by some developer only. Does WF provides any User Interface for Business Analyst kind of people to manage these rules/rulesets Regards, Ekta Ekta, Currently, the WF designer is focused on the developer audience. A custom UI can be built on top of our API, and we anticipate that partners (and end users) will build designers on top of our model, targeted a ...Show All
Visual Studio Express Editions TaskbarNotifier from backgroundworker
With ref to John O'Bryne's great code to run a msn-like taskbar notifier http://www.codeproject.com/cs/miscctrl/taskbarnotifier.asp Please can someone help walk me through how to use this taskbarnotifer in a C# project and run a message "Your job is done" from a backgroundworker's RunWorkerCompleted event Basically I'd like to use the taskbarnotifier instead of messagebox.show Thanks for any help. This is a really neat method. Thanks. Is there any way to have a sliding notifier with a progressbar to show, say, files are being copied async and when its over - ie: progress of backgroundworker ...Show All
Visual Basic Powerpack Additions (What Microsoft Forgot)
Powerpack Additions (What Microsoft Forgot) 1. BeforeUpdate and AfterUpdate for every control. (A way to make thing simple!!!) 2. MultiColumn ComboBox (A way to make thing simple!!!) 3. Line and Shape Controls 4. I vote for Data Repeater Control 5. Real Books. I want to buy one comprehensive book instead of 15 specialized books. About "Real Book". Have you read Visual Basic 2005: The Language by Francesco Balena. (Of course in English) - Microsoft Press IMHO impossible to criticize it! ...Show All
Visual C++ Can't optimize my project
I want to optimize my project's size, so I selected the Minimize size (/01) option, but I can't compile it: cl : Command line error D8016 : '/O1' and '/RTC1' command-line options are incompatible What can I do The /RTC1 compiler option means "Enable run-time error check features". It seems that this option cannot be specified together with "Minimize size". Therefore you have to disable it. It can be found at Project Properties --> C/C++ --> Code Generation --> Basic Runtime Check . Change this value to "Default". I hope it helps. It seems that you are trying to optimize your program based on "Debug" compiler configuration. In my opinion it is better first to ...Show All
Visual Studio Express Editions How to compile C using Visual C++?
Is that possible at all If it is, what are the steps to compile a C program in Visual C++ When I start up a new project, what kind of project I should pick Many thanks! hi i get the following error ' Command line error D8045 : cannot compile C file'.I cant find any solutions.Can somebody help. Thanks Anil ...Show All
SQL Server Execution 'desjl3yk2yzk4f2ycchu5jeb' cannot be found (rsExecutionNotFound)
Hi, Can u tell me the full description of rsExecutionNotFound Error.I tried to search on msdn2 also but there is not info provided for this. When exactly does this Soap Exception will be thrown by the web service Here is the code for which i am getting this error SecurityBR securityBR = new SecurityBR(); securityBR.ImpersonateUser(Session["UserName"].ToString(), Config.SSRSServerName.ToString()); ReportBR reportBR = new ReportBR(); ReportRow reportRow = (ReportRow)reportBR.GetByReportID(int.Parse(Request.QueryString["ReportID"].ToString())).Tables[0].Rows[0]; string strReportPath = reportRow["ReportPath"].ToString(); //rvReport is the name of my ReportViewer Con ...Show All
Visual C++ C2666 error - does this violate the C++ standard ?
Consider the following example below that generates the C2666 error. I believe this violates the C++ standard section 13.3.3.2 paragraph 3. Do you agree template < class Type> class MyArray { MyArray(); Type& operator []( int ); operator const Type*() const { return mpData; } Type* mpData; }; template < class Type> Type& MyArray<Type>:: operator []( int ind) { return mpData[ind]; } void SetElement(MyArray< double >& a) { unsigned int i=0; a[ i ] = 0.0; } Marius Bancila wrote: And what exactly does the paragraph say 13.3.3.2 is "Ranking implicit conversion ...Show All
Visual Studio How to get a List of available Classes with VSPackages?
Hi, I need to enumerate all the available classes which are derived from DataSet with VSPackages (not using DTE). Is there anyway to get a reference to one of the enumerated class Thanks in advance, Denniz AFAIK, you need to use DTE. See my article: HOWTO: Navigate the code elements of a file from a Visual Studio .NET macro or add-in. at: http://www.mztools.com/resources_vsnet_addins.htm From within a package, you can get the DTE object using GetService(typeof EnvDTE.DTE). ...Show All
Visual Studio Multiple projects or multiple database???
We have many different applications. Should I create separate sourcesafe databases for each application or should I create one database with multiple projects The advantages of the latter are obvious in that all code can be seen at once. Our company uses contractors on a regular basis however and it would be nice to only give them access to the application they are working on. What are people's thoughts on this Thanks. Hi Yes, you highlighted two of the main concerns. Ease access by have a central database and security in limiting access to contractors. You should try to keep the database under 5 gig in size so if combining applications into one database will make your database start to app ...Show All
SQL Server Visual Studio C++ and SQL Express
I currently have Visual Studio .NET 2003 installed on my computer and I am trying to develop an application that would require the use of SQL data base on a network using C++. Would I just need to install the SQL Express and Express Manager to get Visual Studio working with the database Or do I need to also install Visual Studio C++ 2005 express to get the data base features working correctly. Thanks Installing Express is technically all you need, I do recomend Management Studio Express as well to make life easier. The features for data in VS2005 are much richer than in VS2003 however VS2003 should work just fine. ...Show All
Community Chat Using Vista?
Good idea Joe! Okay, I'll go first. I'm using Vista RC1 full time now. The computer seems quieter--doesn't take so many trips to the hard disk for VM paging. I find going back to XP an unpleasantry, so I think Microsoft is succeeding here. Glass is nice. I think the performance is what I expected it to be on an Intel Advanced Graphics card (Dell Dimension 9100). Office 2007 is also pleasant to use, but they stil have some cleanup work to do on their UI. Who else is using Vista Brian I have the same exact computer. The only difference is that I'm on a raid 0 array that is not partitioned, and I have a nvida 6800. Would you reccomend installing vista rc1 I wou ...Show All
.NET Development Why this kind of exception handling
hi, Please see the below code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try fun() Catch ex As Exception MsgBox(ex.Message) MsgBox(ex.StackTrace) End Try End Sub Private Function fun() Dim a, b, c As Integer Try a = 0 b = 0 c = a / b Catch ex As Exception MsgBox("Reached fun_catch()") fun1() Finally MsgBox("Reached fun_finally()") gan2() End Try End Function Private Function fun1() Dim s, s1 As String s1 = s.IndexOf("a") End Function Private Function fun2() Dim s, s1 As String Throw New EntryPointNotFoundExce ...Show All
