Daniel15's Q&A profile
Visual C++ Trying to create a pointer array in a class
Hi, I am trying to create a dynamic array with pointers in a class. Would the syntax be int* x, int* x[], int** x, or something else When I try to do it with int* x[] and I dont put it in the last line of the class, it will give me the error "error C2229: class 'Stack<T>' has an illegal zero-sized array" while if I put it in the last line it will give me the warning: " warning C4200: nonstandard extension used : zero-sized array in struct/union" When I increase the size of the array I do this, void Stack<T>::push(T X) { array[size++] = new T(X); } Whenever I run the program and the program exits, it gives me the runtime error "Run-Time Check Failure #2 - Stack around the variable 'test' was corrup ...Show All
Visual C++ "Stack Overflow message"
Hi, I was trying to write a simple hello world program using wxwidgets. The issue I faced was when using Visual studio 6.0 my application crashes by giving "Stack Overflow" message. If I run my same application in VC++.NET 2003 it works fine. 1. Why does this happen. 2. Is there a way I can increase the stack size in VC6.0 Code is as follows: #include "wx/wx.h" #include "wx/glcanvas.h" #ifndef WIN32 #include <unistd.h> #endif class MyApp: public wxApp { virtual bool OnInit(); }; IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { wxFrame *frame = new wxFrame((wxFrame *)NULL, -1, "Hello GL World", wxPoint(50,50), wxSize(450,340) ); wxGLCanvas * MyGLCanvas = new wxGLCanvas(frame, -1 ...Show All
Visual C# C# : print LR string; SQL Server DB Bacup/restore
Hello everybody I program in C# language. How to correctly print string from right toleft (such as Hebrew or Arabic). In the string also there is text printed from left to right and grammatic signs (brackets, commas etc.) How to backup/restore database named "myDB" of SQL Server 2000/2005. If possible please give full code. By by and thaks ...Show All
Visual C++ Program crashes!
Can anyone tell me a way to find out why a program just compiled crashes And what i mean by crashes, not when its run. But when i try and execute the program i get a Windows error. I've heard of debugging but i have not quite figured it out fully. Or if there is another simplier way of doing this please let me know. Thanx in advance! ...Show All
Visual Studio Team System Need Help with Bug Rates Linked Report
I am trying to make a linked report based on the "Bug Rates" report. I want to accept all current defaults except for Area Path. What is the proper format for the area path parameter I have explored the members of the Area measure using SQL Server Mgt Studio, but I can't seem to get the proper format. The default Area for the Bug Rates report is specified by the DefaultAreaParam query. In Report Designer you can view the query from the data tab. The value will be something like [Area].[Parent_ID].&[<Some ID>]. Take a look at the AreaParam and DefaultAreaParam queries and the AreaParam Report Parameter to see how these are used. ...Show All
Internet Explorer Development IInputObject no longer called in IE7?
Has the behavior around IInputObject changed for IE7 We're doing the standard: 1. On SetSite(), get the IID_IInputObjectSite from the IUnknown parameter. 2. When one of our UI Windows gets or looses focus, call IInputObjectSite::OnFocusChangeIS() It all appears to work; however, we never see callbacks on our IInputObject methods: UIActivateIO, HasFocusIO, TranslateAcceleratorIO. Well, that's not completely true. We see a callback on IInputObject:: UIActivateIO(FALSE..) when a second, different toolbar calls IInputObjectSite::OnFocusChangeIS(FALSE), but that's the only time (we see it in the stack crawl). Is this behavior different from IE6 This bandobject needs these calls to do it's UI correctly. It's more complex than a simple editbox ...Show All
Visual C# BindingSource Filter with textbox.
Hi All! I have a question... How can I do filter the BindingSource and the TableAdapter under c# 2005 with textbox My database is mdb. Please help me! Thank's! HI! I have a little program. It use mdb. I would like to search in the table, or tables with textbox. The term is in the textbox, and I would like to upload the tableadapter or binding source with the hit's. (If possible to speak/write in hungarian please tell me. :) ) Thank's Imre ...Show All
Visual Basic ADO.NET book recommendations
If it is not appropriate to ask about book recommendations on this forum, please let me know and I will withdraw the question. Can anybody recommend what I would consider a good book on VB8 and ADO.NET If it exists, such an animal would have the following qualifications: does NOT simply repeat what is already available from BOL, MSDN, etc., does explain how to programmatically use ADO.NET rather than just demonstrating how to use wizards, does explain when, where, why and how to use DataAdapters, DataSets, TableAdapters, DataTables, etc., does provide real world examples, does also include useful info I haven't noted here. http://books.google.com/books q=ADO.NET+++books&ots ...Show All
Software Development for Windows Vista How to map Xml Node Elements before sending xmldoc as request parameter to the InvokeWebService Activity
Hi, I am having two InvokeWebService Activities which invokes two webservices named Registration and Billing. These two services need 2 xml documents where as I am sending only one XmlDoc as request parameter for WebServiceInput activity's Interface which is the first activity in my workflow. public interface IWorkflow { void RegisterPatient(System.Xml. XmlNode request, out string response);} That Xmldoc contains information for both services as RootElements like the following <xml ............> <PatientInfo><firstname>satya</firstname><lastname>.....</las...... </PatientInfo> <PaymentInfo><Amount>200</Amount>.......</PaymentInfo> < ...Show All
Architecture Business Logic & SQL
Hi, has anyone in here got some guidance or direction for Patterns and Practices on this one When should business logic be put into a SQL Stored procedure and when should it be put into Class object we are debating different architectural approaches and I am looking for some guidance. TIA Referenced post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=55375&SiteID=1 Well Thanks for the support RMD. In my experience, I tend to avoid SP, till performance becomes an issue as there is a slight shortage of developers who know SP well. And also, logging/tracing gets distributed to multiple places ( We cant use entlib from Stored procedures AFAIK) Typical instance where performance will ...Show All
Visual Basic numericupdown problem
How to make a numericupdown control to have the range between 10-2000 in step of 10...and 2000-9900 in step of 100 the code bellow worck's, but with one bug....for eg, if i have 2000 value....and i go down...he go on 1900 value...and i want 1990(if i go up again worck's fine) is posible to make that i search an event ho tell'me in witch way i'm click(up or down)...but i don't find...so, please help'me. tank's (p.s.:the value 1900 is correct...but the value 2010 is not correct....) Private Sub NumericUpDown1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NumericUpDown1.ValueChanged If NumericUpDown1.Value >= 2000 Then NumericUpDown1.Increment = 100 End If If NumericUpDown1.Value < 20 ...Show All
Windows Forms Datagrid column readonly to user but not the program
I have a datagrid and i have a column which is read only so the user cannot put anything in it. The problem i have is that i use this column as a results column from the data they put in the rest of the table, however when the program calculates the value from the data and tries to put it in this column it won't do it as it is read only. Is there any way of keeping it read only to the user but not to the program I use the code blow for setting the column at the start along with a load of others, how do i change it later on in the form to readonly=false myDataColumn = New DataColumn myDataColumn.DataType = System.Type.GetType("System.Object") myDataColumn.ColumnName = "P1" m ...Show All
SQL Server Problem connecting remotely using osql
Hi, I am using osql to connect to my remote MSSQL server. I am able to get a prompt for password and telnet to 1433 just fine, so I conclude this is not related to firewall. When I try to connect I get: C:\Program Files\Microsoft SQL Server\80\Tools\Binn>osql -S xx.xx.xx.xx -U test Password: [DBNETLIB]SQL Server does not exist or access denied. [DBNETLIB]ConnectionOpen (Connect()). When I try to connect from 'localhost': C:\Program Files\Microsoft SQL Server\80\Tools\binn>osql -U test Password: 1> -- This is Microsoft SQL Server 2005 - 9.00.1399.06 and both local and remote connections are allowed. Logs don't show up anything. Thank you. You are absolutely right! My mistak ...Show All
Visual Basic How to Print on Rolling Paper
Hi, I am creating software in Visual Basic 6 for my shop. I owned a stationary + CDs shop. Now I want that every transaction from my customer be recorded in the database. I am creating a simple inventory database application in which stock information and sell information will be stored. But I also want to generate the bills for every transaction. Now here comes the problem. I am using Data Report to generates bills but this take to much paper coz some times they (customers) purchase 10 items and some times only 1. So bill length varies with every customer, now I want to use paper roll to print my bills and when the bill finishes the printing will stop automatically. Like the bills on Credit Card Machines. Can anybody he ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Big Help and FAQ Post, also contains code to render 2D and 3D lines
Hi everyone. I read through many posts here in the board and I collected quite a bit of resources about the XNA Framework and collected everything in one big monster post on my blog. It contains tips how to get XNA working on 64 bit, how to get it working with VS 2005, many blogs and articles and a lot of personal questions and answers about XNA (fonts, sounds, music, mouse cursor, keyboard text, drawing lines in 2d and 3d, Shaders and debugging and many more issuses). Link to the full article on my blog abi.exdream.com . I hope this helps :) "For example if your shader fails to compile you get just a System.NullReferenceException: Object reference not set to an instance of an object. There is no explanation what did went wrong ...Show All
