mattdawg's Q&A profile
Visual C++ Error C2582 when creating a new struct
Hi, Within a namespace, have declared a new struct like so: public ref struct moveLine { int moveCount; array <move^> ^moves; }; Have declared a member of a class with this data type like so: moveLine m; // note that putting "^" brings up a compile error and in the constructor of the class, I try to implement it with the following code: m = gcnew moveLine; Have also tried this with moveLine(). This line raises the following error: Error 2 error C2582: 'operator =' function is unavailable in 'moveLine' progHead.h 57 Am very tired, and can't figure this out - can't work it out from MSDN documentation either. Hope you can help. Cheers, Fritz ...Show All
Visual Basic Databases and Textboxes
Part A How do I link textboxes to individual database records when the database has say fifty rows and fifty columns. The idea being to display and maintain a database with textboxes on a form that stand independent of each other that point to a specific spot in the database. Part B Once this is possible then .. To be able to manage this data based on years meaning... I would like to have this basic setup but I am able to have the database represent a set of data for a particular year and I would be able to choose to display data based on the year. Please, if anyone knows .. respond asap.. Thanks Shihan well the codes written are just snippets which you can modify to your needs, ...Show All
Windows Forms Appearance
How would I change the appearance of some controls in the windows form, such as turning the tabs color from the normal color to say a gradient green to white or change the buttons shape and color from a rectangle to a circle and the color from a solid to a gradient. That kind of thing. Wow, I appreciate that a lot. Except when I put the first code in button3_Paint, it changed the form's appearance instead of the button's appearance, because of the "this.ClientRectangle" thing. Not to sound like a total noob, but I am new at GDI+ and the whole designing thing, so if you could maybe explain to me about the button class, like what I should put in there, where I should start because I honestly don't have a clue what to ...Show All
SQL Server RetainSameConnection bug or feature???
We desperately require the RetainSameConnection to be set to True on our ADO.NET - ODBC connection manager. Unfortunately RetainSameConnection always defaults back to False when you open the package. * Is RetainSameConnection supposed to work for the ADO.NET - ODBC combination * Is it a bug that it defaults back to false for the ADO.NET - ODBC combination Quick responses much appreciated! Kristian Details: SSIS with SP1 ConnectionManagerType: ADO.NET:System.Data.Odbc.OdbcConnection, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Provider: .NET Providers\ODBC Data Provider Connection String: Driver={iSeries Access ODBC Driver};system=AS400;dbq=GAPFILES;dftpkglib ...Show All
.NET Development CAS and NamedPermissionSet.PermitOnly
Hi all, Every time I think I understand CAS, something doesn't work and I realize I have no clue. Here's the latest thing. I have a very simple C# console application that looks like this: using System; using System.Collections.Generic; using System.Text; using System.Security; using System.Security.Permissions; namespace CAS { class Program { static void Main( string [] args) { NamedPermissionSet ps = new NamedPermissionSet ( "LocalIntranet" ); ps.PermitOnly(); Test(); } private static void Test() { NamedPermissionSet ps = new NamedPermissionSet ( "FullTrust" ); ps.Demand(); } } } Ok, so I'm running this conso ...Show All
Visual C# Calendar
Hey I'm trying to make a Calendar. I want to make my own DayOfWeek enum with danish weekdays and afterwards i want to use it with this call CultureInfo .CurrentUICulture.DateTimeFormat.GetDayName which take a System.DayOfWeek argument. I have maked my own public enum DayOfWeek { Mandag, Tirsdag, Onsdag, Torsdag, Fredag, Lordag, Sondag } How can I get this to work together. I've solved the problem. I made an object of the cultureinfo class CultureInfo dkl = new CultureInfo( "dk-DK" ); Then the danish weekdays work without making a new enum of weekdays Thanks Anyway ...Show All
Visual C# Global access to arrays
Hi, I am a beginner at C# and am probably trying to run before I can walk! However, I need to build an application which has several Forms. I was brought up on the concept of only writing code once and using it everywhere. So, What I need to be able to do is to: Hold data arrays in one piece of code, say MyData.CS and access it from all of my Forms. Hold pieces of code,( like subs in VB ) which perform specific tasks and which are, again, accessible from all my forms. these may access the API or just do general stuff. I can write the code, but I just can't access it. So far, I have been able to handle single point variables in this way, but I don't seem to be able to do the same with arrays. Also, I can never access my 'g ...Show All
.NET Development Writing a TCP client
I would like to write a TCP client for receiving multiple data streams. Each data stream has a different port. Could I use the TCPClient class If not, what are my options The sample above is a good place to start, but not this will create a listening socket underwhich all clients connect to the same client,port pair. If you really need to use a different port per client then you will need to open multiple listening sockets -- I'm not sure why you would need this. The single port example is likely what you want ...Show All
SQL Server Error HRESULT E_FAIL has been returned from a call to a COM component. (Microsoft Visual Studio)
Analysis Services Project deployes with success. When you want to browse the deployed cube by draging an attribute from the Metadata pane to drop it on the DataPane the following takes place. =================================== Error HRESULT E_FAIL has been returned from a call to a COM component. (Microsoft Visual Studio) ------------------------------ Program Location: at Microsoft.Office.Interop.Owc11.PivotView.get_FieldSets() at Microsoft.AnalysisServices.Controls.PivotTableHash.get_FieldSetsEnumerator() at Microsoft.AnalysisServices.Controls.PivotTableHash.GetFieldSet(String uniqueName) at Microsoft.AnalysisServices.Controls.PivotTableBoundMetadataBrowser.GetPivotTableDataObject(NodeObject nodeObject) at Microsoft.Ana ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Starting
Well, I got XNA yesterday and i have been trying to figure out how to use it all day. I have used the help but i am still completely lost. Can anyone help me start out The usual stance is 1: Use the XNA Documentation 2: Browse the MS XNA Site 3: Search These forums (for words Like tutorial) Lastly Use Dave (Lets Kill Dave) Wellers - Monster XNA Link , which has to b the biggest one so far and growing all the Have fun learning Darkside ...Show All
Visual Basic VB Error ImgeditLibCtl.ImgEdit
Hello, I am receiving the following error on more than one form in my project: *Class ImgeditLibCtl.ImgEdit of control ImgEdit1 was not a loaded control class. How can I fix this error If I need to download something, please let me know what to download and where. Thank you. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Cannot Display Graphics
When I tried the tutorial for 3D graphics, but whenever I run it, it tells me that "Both a valid vertex shader and pixel shader (or valid effect) must be set on the device before draw operations may be performed." Can anyone tell me what's going wrong Also, with the 2D graphics tutorial, when I run the program it tells me that the following method is "Invalid:" spritebatchA = new SpriteBatch(graphics.GraphicsDevice); Can anyone help me I'm very confused. Did you in fact, set any shaders before drawing the model My suggestion would be to use the BasicEffect class for this. I believe it's what's in the tutorial. But you probably have that in there, so I would refer to the previous post if you did in fa ...Show All
Smart Device Development Are background processes supported by Smartphone 2003?
Hello, I don't know if develop for Smartphone 2003 2nd edition or for WM 5 Smartphone (because of availability of the devices). Now, a doubt has arisen: Can I use applications running in the background In the msdn page, in the " What's New in the .NET Compact Framework 2.0" area, it shows: Background Threads The .NET Compact Framework 2.0 adds support for background threads. Background threads are threads that do not prevent a process from terminating whereas foreground threads will keep a process active until all foreground threads are terminated. Setting a thread's IsBackground property to true makes that thread a background thread. Then, does it mean that background processes are not supported for Smartphone 2003 ...Show All
Visual Studio Express Editions Windows ME
Is there a Visual Basic that can be run from Windows ME I have the same problem. I am currently using windows ME, and would like a visual basic program to make programs. I have tried downloading various programs but none of them work on ME. Is there a visual basic program that works on windows ME ...Show All
Smart Device Development Install CF2.0 SP1 on Start Up..
We have a CE 4.2 device and need to install CF2.0 SP1 on start-up. We can make this happen by placing the CAB in a startup directory but when the CAB executes on start up we are always prompted to reinstall. This is our problem because when the device is deployed we do not have a keyboard or display. Is there an easy way to get the CAB to automatically install over the top without the prompt See this for CAB installer command line options: http://blog.opennetcf.org/afeinman/PermaLink,guid,1de2284c-a65e-417c-a130-1bd5acd4ad3d.aspx ...Show All
