tdanut's Q&A profile
Visual C++ CString m_pchData undeclared in new VC++
I am converting an unmanaged windows MFC app from VC6 to VC8. I have a class derived from CString. In it, I reference m_pchData. In VC6, this was no problem. In VC8, I get a C2065:'m_pchData':undeclared identifier error. Has the implementation of CString changed since VC6 I am referencing m_pchData like so: m_pchData[3] in VC6. Also there is a line: AssignCopy(stringSrc.GetLength(), stringSrc.m_pchData); for which I get another identifier not found message. Could you please assist with the appropriate conversions into VC8 ...Show All
Visual Studio 2008 (Pre-release) Flickering background when resizing window
I'm experimenting with Avalon and I notice heavy flickering when a window is resized. This can be easily seen by just creating a blank Avalon project with Visual Studio and (rapidly) resizing this application's main window. What I see is a white background, with parts of it flashing to black (and back to white) when the window is resized. I thought that Avalon is supposed to eliminate flickering, so what am I doing wrong The good news is you aren't doing anything wrong . The "no flicker" behavior really applies to changing window contents on a window of static size and position. Unlike other graphics platforms, Avalon applies all ...Show All
SQL Server Avoiding deadlock
I have a stored procedure spUpdateClient, which takes as params a number of properties of a client application that wants to register its existence with the database. The sp just needs to add a new row or update an existing row with this data. I tried to accomplish this with code somethign like this. (The table I'm updating is called Client, and its primary key is ClientId, which is a value passed into the sp from the client.) IF (SELECT COUNT(ClientId) FROM Clients WHERE ClientId=@ClientId ) = 0 BEGIN -- client not found, create it INSERT INTO Clients (ClientId, Hostname, Etc) VALUES (@ClientId, @Hostname, @Etc) END ELSE ...Show All
Visual C# SQL server and C#
hi can someone please answer me, can command SqlCommand execute any T-sql query or just SELECT, INSERT, UDATE... like for example is it possible to execute CREATE command or all others Hi there, Yes you can execute DDL statements using SQL Server. Just create the command object set the DDL query to it. Set and open the connection. Finally execute ExecuteNonQuery Statement. Cheers, Nasha. from eeks to geeks ...... you can catch me @ nam_shah at hotmail.com or namratha1 at hotmail.com ...Show All
Visual C# Adding ListView Groups through code
The following code doesn't add the group names to the listview control. Anyone have any suggestions This is coming straight out of the documentation too... private void Form1_Load( object sender, EventArgs e) { // Adds a new group that has a left-aligned header listView1.Groups.Add( new ListViewGroup ( "Group 01" , HorizontalAlignment .Left)); listView1.Groups.Add( new ListViewGroup ( "Group 02" , HorizontalAlignment .Left)); // Adds a new item with ImageIndex listView1.Items.Add( "item text 01" , 0); listView1.Items.Add( "item text 02" , 0); listView1 ...Show All
SQL Server From MySQL to MSSQL 2005
Hello! I'm installing the MSSQL 2005. And i want to transfrom the DB from my old MySQL DataBase to new MSSQL Database. How can I do this With Import|Export Utils I can't do this task =( Pleasure Help me. Thanks First of all do you have MySQL ODBC driver installed on the same box you have SSIS If you do - did you create ODBC data source ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Computer Hangs
K ne time i play a game or even watch a video with surround sound, my comp. hangs and i have to reboot it manually. comp. spec's pentium 4 - 1.6ghz 384mb of ram 128 mb ati 9550 creative soundblaster audigy 2 zs 40 gb hard drive NEC DVD+/-RW Logitech X-530 windows xp home with all this i should be able to play games,movies/surround sound no problem but everytime i do have a problem which kinda sux cuz i pay so much for this stuff and it hangs, before i had no problem with the comp. and the spec's were much diff from what they are now This is a developers forum, not technical support. This has nothing to ...Show All
SQL Server Error 62 When connecting with SSMS to a SQL Server 2000 named instance
Hello, I get error 62 when trying to connect to a SQL Server 2000 named instance from SQL Server Management Studio. I can register and connect to other SQL Server 2000 instances I've tried all the usual stuff, including enabling all the protocols from SQL Server configuration Manager. Any thoughts. Your help is very appreciated. Thanks Kevin Lobo Can you post the whole error msg Is this a local or remote connection What's the Service Pack of your SQL Server 2000 Make sure sql browser is on if you can. Also make sure sql browser and/or udp port 1434 is in exception list if y ...Show All
Visual C# Tips on posting
Here are some tips on posting, so that your questions could likely be answered quickly. 1. Make your Title as significant as possible . Compose it in a way that you would ask an expert. example - "How could I change a Buttons Background " instead of "button background problem" 2. Explain in detail the nature of your dillema . But please make it short, straight to the point but descriptive. 3. Provide steps on reproducing your problem . So that other posters could replicate this on their pc's and thus find a quick solution. 4. Also, provide a Code Snippet where you think is causing the problem . This is a common situation that ...Show All
Visual Studio Express Editions Progress Bar Trouble (Beginner)
Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click My .Computer.FileSystem.CopyDirectory( "\\server\proj\stds" , "C:\dwgs\stds" , True ) End Sub Private Sub CopyWithProgress( ByVal ParamArray filenames As String ()) ProgressBar1.Visible = True ProgressBar1.Minimum = 1 ProgressBar1.Maximum = filenames.Length ProgressBar1.Value = 1 ProgressBar1.Step = 1 Dim x As Integer For x = 1 To filenames.Length - 1 If CopyDirectory (filenames(x - 1)) = True ...Show All
Visual Studio Express Editions Can't assign a property from a module
Hello I have a form called Mainform and a module called module1. On the form, there is a statusbar with a label and a progressbar. Now I have this code in the module: '// Place a progressbar an our statusbar Public Sub provide_status( ByVal text As String , ByVal complete As Integer ) Mainform.ToolStripProgressBar1.Visible = True Mainform.ToolStripStatusLabel1.Text = text Mainform.ToolStripProgressBar1.Value = complete End Sub '// Please call this when your process finishes Public Sub status_finish() Mainform.ToolStripProgressBar1.Visible = False End Sub I call the f ...Show All
Visual Studio 2008 (Pre-release) Querying and late bound data providers
Hi Normally in the projects I work on we use a strict provider based architecture for accessing data. Obviously this is done to avoid having any nasty database or XML or something else dependancies in the logic of the program. The problem on the other hand is that querying such data stores must also be part of the provider meaning that all possible ways of querying data must be covered by the provider which obviously isn't feasible. Now I was hoping that LINQ could solve this problem, but I order to do that (at least in the way I currently hoping) I need to know if you can do something like the following. Assume we have an abstract class ...Show All
Software Development for Windows Vista Workflow Designer Rules Support
Hi, I'm in the process of trying to setup a demonstration application which shows an example of workflow and rules management. I need to basically setup a workflow, set some properties, then run the workflow from the designer. Part of this demo include the use of an IfElse activity and a Policy activity which link with the rules engine portions. I've trundled through the examples and the current samples get things about 75% of the way there, and I've probably gotten another 5-10% there by looking at the threads here, but I'm still stuck. Here is what's happening: 1. Create a new workflow 2. Drop an IfElseActivity on the design surface, thro ...Show All
Visual C# Trying to import a 3rd party C++ DLL into my C# code.
Hi, Trying to import a 3rd party C++ DLL into my C# code. I have an entry point that is defined in C++ as: bool TSysCall(int id, int param, void *ex) I am having trouble trying to figure out how to define and use it in C# since the 3rd parameter of the function call is a void pointer and can be a pointer to an int, a pointer to a byte and a pointer to a structure in some cases. Here is what I am trying to use: [DllImport("MySys.Dll", EntryPoint="MySysCall", ExactSpelling=false,CallingConvention=CallingConvention.Cdecl)] static extern bool MySysCall(int id, int param, ref int ex); This works when the 3rd parameter is an int (as I would ...Show All
SQL Server Registration Benefit Portal - Page Nopt Found
Hi, this text is taken from the FAQ and contains the same link the Registration email I received, which don't work (for me!). The link points to http://go.microsoft.com/fwlink/ LinkId=52054 . Does anyone else have this problem NOTE: You can directly access the Registration Benefit Portal without need of a first or second benefit e-mail—as long as you have completed the registration process and use the same e-mail to login in to Passport at the benefit porta ...Show All
