Topics
-
- 1 reply
- 3.1k views
I want to pass an object by reference into a function (of another class), can this be done without causing a memory leak or requiring me to perform a delete? Allow me to illustrate what I mean ... class A { vector<B*> v; // vector of pointers to Class B objects void Add(B &b) // function to add pointers to vector { v.push_back(b); } ~A {... delete everything from the vector ...} }; class B { ... some stuff ... }; void main() { A *a; // pointer to instance of A a = new A(); a->Add(new B()); } [/COde] So, the question is for the following line in particular: a->Add(new B()); In this case I create a new Instance of …
Last reply by Shaitan00, -
- 0 replies
- 1.5k views
I'm trying to find a forum with lots of people using Softimage and XNA. The support site from Autodesk is so dead. I do have another question also: Could someone please give detailed steps needed to create a very basic animating model, which works in XNA? It was written some where you need to do the following to get animated models created in Softimage to play in XNA: -- Apparently animations will not play in XNA unless you have textures and a shader applied to your model. I was testing with the simplest of models to prove animation worked so did not bother to texture the model - hence it did not work. Once I added a texture/shader it worked. -- I think m…
Last reply by JumpyNET, -
-
- Administrators
- 2 replies
- 1.3k views
Hi I have a little problem with Silverlight (C#)... I want to get the source code (html code) from a site e.g google.com when the user clicks a button.. I can't seem to be able to use the WebClient or HttpWebRequest class due to Silverlight security rules that don't allow cross domain calls (for protection agains XSS and XSRF ) is there a way to get around that, since I have to download the source but the site doesn't have a cross domain request policy to allow it... hope you understand what I mean.. thx in advance!
Last reply by Hampe-92, -
-
-
- *Gurus*
- *Experts*
- 10 replies
- 12.4k views
Sick of all those MSDE questions that are all the same? Ever wanted the definitive answer on just exactly how MSDE limits performance and scalability? Well, you�re in luck, as Microsoft has now published a whitepaper describing how the governor in MSDE works. http://www.microsoft.com/sql/msde/techinfo/workloadgov.asp In summary the paper describes how the governor stalls connections for a few milliseconds on each logical read or write, once the limit of more than eight concurrent operations has been reached. The connection limit for MSDE is the same as for a standard SQL Server instance (32,767), but obviously the more concurrent connections, the more likely you ar…
Last reply by joe_pool_is, -
-
- 1 reply
- 1.4k views
C# to/from VB Net Recipes hi every one, i am at a beginner level when it comes to programing in PHP. i want to make an array of names of class students , but can get it rite. i want it to be in such a way that , each person enters his/her name in HTML text box and presses submit and the name is stored in array.
Last reply by JumpyNET, -
-
- Administrators
- 6 replies
- 2.3k views
I'm trying to retrieve a datetime value from SQL, but I'm getting nags about not being able to convert object to date. Directcast and ctype didn't work either. Any advice how this should be done? Dim TmpTime As Date Dim Query As String Query = "SET @maxdate = SELECT MAX(DateAndTime) FROM MyTable" Dim sqlCmd As SqlCommand = New SqlCommand(Query, sqlConn) sqlCmd.Parameters.Add("@maxdate", SqlDbType.DateTime) sqlCmd.ExecuteNonQuery() TmpTime = sqlCmd.Parameters("@maxdate").Value 'I GET THE ERROR HERE PS: I'm using SSIS 2005.
Last reply by JumpyNET, -
-
- 2 replies
- 2.8k views
Could a new area be created for Mobile Development? (Pocket PCs, Windows Mobile 6, Windows CE) I get tired of having to rely on Microsoft's MSDN forum, which often responds with something about their network being busy.
Last reply by joe_pool_is, -
-
- Administrators
- 8 replies
- 6.6k views
[PLAIN]System.Web.HttpException: Invalid mail attachment-edited-[c#][/PLAIN] I am trying to create a web form that emails a client when the "submit" button is clicked. In the form is the option to include an attachment. The emailing works fine, the attachment not so much. I have a public Mailer class that actually sends the email (it works fine) and a method called addAttachment that barfs when trying to create the attachment object (I think). Here's the code (projectPath and TEMP_PATH are defined in a web.xml file, and mailer is declared globally): private string addAttachment(HtmlInputFile file) { if (file.PostedFile != null) { // Get a …
Last reply by robertsams23, -
-
-
- Leaders
- 7 replies
- 1.7k views
Hi all, I'm trying to build a simple drawing application which would allow people to drawing on their screen. The application makes use of a maximum form which is transparent, which allows people to optionally annotate items that exist behind the application. For the most part, it seems to work fine. I am able to use DrawLine to draw lines on the form. Now, i want to be able to provide a way to erase random portions of the screen using a eraser. However, I can't seem to figure out the best way to actually do that. Drawing with a transparent Pen doesn't achieve this. Drawing with a pen that has the same color as the TransparencyKey of the form just draws…
Last reply by Ranana_Poette, -
-
-
- Administrators
- 4 replies
- 1.4k views
am used shdocvw reference in my project, project run successfully, but while am trying to deploy it i got an following mentioned error. the following files may have dependencies that cannot be determined automatically.please confirm that all dependencies have been added to the project. c:\windows\system32\ieframe.dll thanks subha
Last reply by PlausiblyDamp, -
-
- 0 replies
- 2.4k views
Is there a way, using CIN, to block users from entering non-digit characters? For example - I am prompting for the user to enter the Width of a box, obvious the response "abc" is not going to work ... aside from validating (getline(...) and return an error message) is there a way to simply block the user from entering it? So that hitting "a" just doesn't output anything for that CIN? Any help would be much appreciated. Thanks,
Last reply by Shaitan00, -
- 0 replies
- 980 views
I'm going out of town this weekend to look at doing a job for a client. It looks like they are wanting a way to exchange information between their 5 team members in remote locations using an Access database, whereas I generally spend most of my time working with MS SQL 2000. What key differences would I need to know about Access before going out there? Since I don't work with it, I don't know what to look out for. I know SQL CE is supposed to be able to replace Access, and I'd like to talk them into this. However, I've never tried building an installer for SQL CE in one of my application's setup files, and I'd rather not have a SQL CE database if it is going to r…
Last reply by joe_pool_is, -
-
- Leaders
- Administrators
- 3 replies
- 4.7k views
In my application I am using a SaveFileDialog to prompt the user to save a generated file to a specific location - however I need to ensure that the file name itself cannot be changed... For example, I have the following code: saveFileDialog.Title = "Save File"; saveFileDialog.InitialDirectory = "C:\\"; saveFileDialog.Filter = "Zip File (*.zip)|*.zip"; saveFileDialog.FileName = "A.ZIP"; if (saveFileDialog.ShowDialog() != DialogResult.Cancel) File.Copy(sFile, saveFileDialog.FileName, true); [/Code] Now, this works perfectly fine, the default under file name is "A.ZIP" but the user can change that and save it as anything they want, I need to ensure they c…
Last reply by snarfblam, -
-
-
- *Experts*
- 1 reply
- 1.4k views
Hello, I know there are some programs that monitor the system for changes. For example you run it and install a program, it says that your installed program has made what changes to the registry, to the file system, what files have been added and removed during the installation, etc... I searched but didn't found one of them, if anyone knows please introduce me one. Thanks :)
Last reply by Nerseus, -
-
- 0 replies
- 1.2k views
Hello all. I have a window application ready to publish as commercial product. I want to make evaluation version download and license key input when user purchase. I haven't done license key programming for window yet. So, Could you guys tell me how to start with it? Any comment helps. Thank you!:)
Last reply by goodmorningsky, -
- 0 replies
- 1.6k views
am navigating the url through IE browser, when the IE is not been an default browser, i got an prompt "the IE is not an default browser whether you want to make it as default browser" as like that. is it possible to make the default browser as IE through coding in vb.net thanks subha
Last reply by subhaoviya, -
- 0 replies
- 1.6k views
Hi, I have a question about calling a Oracle sp with several output parameters of Associated Array type. I got no problem to get them working as long as I defined the size of each parameter. However, since the size is supposed unknown in that stage. So exception will be thrown if my result set is bigger than the one I had defined. Is it possible to working with associated array without define the size (except the field width for varchar2)? Thanks in advance.:D p.s. Of course I could find other way to around it by using ref_cursor or get the size of result set first.
Last reply by Worrow, -
-
- Administrators
- 2 replies
- 4.9k views
Hi . . . . . As in VB6, there was an input dialog box through which we can get input from the user. Is there anything similar in windows forms using C#????? :confused:
Last reply by kashif08, -
-
-
- Moderators
- Leaders
- 10 replies
- 10.4k views
If use workbook object then unable kill the excel process code as follows: public void CreateExcel(DataView dv,string path,string title1) { Excel.Application excel; try { excel =new Excel.Application(); } catch { Response.Write("·þÎñÆ÷¶ËExcel·±Ã¦£¡ÇëÉÔºó!"); return; } object oMissing =System.Reflection.Missing.Value; excel.UserControl =false; excel.DisplayAlerts=false; excel.AlertBeforeOverwriting=false; Excel._Workbook book =excel.Workbooks.Add(oMissing); int rowIndex =2; int colIndex =0; excel.Cells[1,1] =title1; foreach(DataColumn dc in dv.Table.Columns) { colIndex++; excel.Cells[rowIndex,colIndex] =dc.ColumnName; ((Excel.Range)ex…
Last reply by AlexanderByndyu, -
-
- 1 reply
- 4.3k views
Hello, I'm currently developing a application in VB.Net. I'm using the DataGridView to display my data on the form and I have stored all the records in MS SQL. I have a EDIT button on the module and I need to know how can I populate a selected record into the textboxes from the DataGridView to be edited. Hope you could understand my question. Thank you very much. Below are the code and the error are 'CurrentRowIndex' is not a member of 'System.Windows.Forms.DataGridView'. - Private Sub cmdEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdEdit.Click If (gridAdmin.RowCount > 0) Then If MsgBox("Edit this Adminis…
Last reply by iebidan,
-
Who's Online 0 Members, 0 Anonymous, 39 Guests (See full list)
- There are no registered users currently online