larange's Q&A profile
Visual C++ Working with Objects
I have been recently starting to use oo objects so that I can use functions within them etc. But When I try and to reference the functions it tells me that I can't do that because it is not any such function. I have arrays of these objects so I try and access they by using the code for example... _blocks :: IsFilled() So when I try and compile this it says that there is no such member of global namespace. Blok.h #pragma once enum _colour { LBlue,BlueRed,Green,Yellow,Grey,Pink,Null }; class Blok { private : int _IsFilled; _colour Colour; public : Blok( void ); int Set_IsFilled( int yesno); int IsFilled( void ); int Set_Colour(_colour CColour); ...Show All
Game Technologies: DirectX, XNA, XACT, etc. OnStarting() method
I'm going through this XNA video tutorial and I get to this part where I do: protected override- and intellisense comes up and OnStarting() method is supposed to be in the list but it isn't. I'm not sure how old this tutorial is, but was that method taken out in Beta2, and renamed, or what ...Show All
Windows Live Developer Forums Search results differ
I don't understand why the search results differ in MSN search and Windows Live search for the same keyword ...Show All
SQL Server Move SQL Server and Analysis Service from C: to D:
Hi all, We need to move the sql server and analysis Service and report server from C: to D:. Can some one outline the steps how should precede without losing any data I am new at SQL Database, a detailed outline will be appreciated. Thanks, Yankua Easiest, could be to create backup of all of your databases and re-install all products on another drive. Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Windows Forms How to get the selected text in the current active application?
I saw some software getting the text selection of other application. Example : I'm in Word, IE or MSN messenger, I select a word, I doubleclick on an icon of an other software in the system tray (like a dictionary program) and the program are launched and show me the definition of the text I have selected in the last application. How is that possible Does Windows can give us this info const int WM_COPY = 0x301; [ DllImport ( "user32.dll" )] static extern IntPtr GetForegroundWindow(); [ DllImport ( "user32.dll" ,CharSet= CharSet .Auto)] private static extern int SendMessage( IntPtr hWnd, int wMsg, IntPtr wParam, IntPtr lParam); static void ...Show All
Visual Studio Export crystal report to excel (data)
Hi all, I have a problem whenever I export the crystal report with a subreport to a excel (Data Only), the subreport data will display next row. I want the data to be display together (same row) with the main report data. Is there a way to do that Example: (Crystal Report View) - a4, b4, c4 is a subreport col1 col2 col3 col4 a1 a2 a3 a4 b1 b2 b3 b4 c1 c2 c3 c4 (Excel View) - When I export I will get this problem. col1 col2 col3 col4 a1 a2 a3 (Blank) a4 (blank row) b1 b2 b3 (Blank) b4 (blank row) c1 c2 c3 (Blank) c4 (blank row) Thanks in advance. Hi All & Both (zinkfloyd and John Burrows) I still don't have solution for this issue. I agree with John Burrows that this can be s ...Show All
Software Development for Windows Vista Digitally Signed Third Party DLLs, OCXs Test Case 5
Test Case 5: Each application executable with an extension of exe, .dll, .ocx, .sys, .cpl, .drv and .scr must contain a valid signature in order to pass this test case Background : Our application uses a number of third-party components, some of which are digitally signed and some of which are not. For those that are digitially signed, the certificate is valid but has expired. Let me say that these are not old components, unless you consider 2004 old. The DLLs and OCXs involved are 32-bit ActiveX controls or libraries used in our application that is developed with Visual C++ 6.0. Moving to .NET would be a huge undertaking and not worth it just to get certified for Windows Vista. As an example, we use SoftwareFx's ChartFX A ...Show All
Visual Studio Express Editions Wim32 application problem
I have programmed server and client application (win32 console) in VC++ 2005 Express Edition (+SDK). When I try to run client application on computer without VC++ (clear PC with windows XP), there is an error - system cannot run the application. What are causes sorry for my english... Most probably the cause is that you are linking dynamically to the CRT but you haven't deployed the needed binaries on the other machine. Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=398802&SiteID=1 for deployment options. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual C# Delete Access Denied!!
I'm using the codes below trying to delete files and I got an error that say I'm trying to delete a file that still being used by another process. Please help me how to check which files are being use and skip over that and delete everything else. Here is my code so far, thanks in advance. foreach (DirectoryInfo Dinfo in dirInfo.GetDirectories( "*" )) { foreach (FileInfo file in Dinfo.GetFiles( "*.*" )) { try { file.Delete(); } catch (FileNotFoundException e) { Console .Write(e.FileName.ToString()); } } } Thanks Jason ...Show All
Visual Studio Team System WssTasks.XML and target filename
Hi, I'm trying to customising the filename under < documentLibraries > in the WssTasks.xml file. Is it possible to set the filename to the corresponding project Shortly, I want to prefix my files with project name. I tried to use the $$PROJECTNAME$$ variable the is used in the workitems.xml file, but got an error when uploaded the new template. See the example below: < file source = " Windows SharePoint Services\Test\[Project Name] - Test Plan.doc " documentLibrary = " Test " target = " $$PROJECTNAME$$ - Test Plan.doc " /> It it possible to get this automatically when creating new projects Hi, i think you can't use the same to get ...Show All
Windows Live Developer Forums User Collection
I am starting to lose my mind here! I am developing my first third-party game for the Windows Live Messenger and I can't seem to get the example scripts to work. This is wat my XML looks like: < xml version="1.0" > <Entry> <EntryID>7</EntryID> <Error /> <Locale>en-us</Locale> <Kids>1</Kids> <Page>1</Page> <Category>50</Category> <Sequence>10</Sequence> <Name><my game name></Name> <Description><my description></Description> <URL><working link></URL> <IconURL /> <Type>Dir</Type> <Height& ...Show All
SQL Server Database master key
Hi For encytion in database, the following statement is correct I found it in msdn book. The database master key is not mandatory if you want to encrypt data. I think the SQL Server Security forum is more appropriate for your question. Paul A. Mestemaker II Program Manager Microsoft SQL Server Manageability http://blogs.msdn.com/sqlrem/ ...Show All
Visual C++ Compiler selecting template function in error?
class A { ... A operator =(A &rhs); A template<typename T> operator =(const T &rhs); A operator -(A &rhs); } int main(void) { A number; A otherNumber; A result; number="123"; //calls templated operator = as expected otherNumber="321"; //calls templated operator = as expected result=number - otherNumber; //calls templated operator = in error } I don't not understand why the templated version of the assignment operator is being called when minus operator returns an object of type A. The last line should resolve to: A = A After the call to the minus operator which should have the compiler c ...Show All
Windows Forms Populate a text box with values from a data reader
Hi.. I am trying to populate some text boxes with value from a datareader... I am getting errors when the data from the reader is null. How do I add a conditional to validate the reader["value"] is not null... I have tried if (reader["value"].GetType==System.DBNull) value = "" else value = (string)reader["value"]; I also tried... if ((string)reader["value"].Length==0) value = "" else value = (string)reader["value"]; I am sure there is an easy way to do this that I am missing... Can you help Thanks greg The Simplest Solution: string value = reader[ "value" ] as String; It'll assing null in to value if its DBNu ...Show All
Windows Forms Problem with loading the data in Datatables
Hi - I have a problem with loading the data in Datatables. I am using vs.net 2003 environment. I have 10 Tables in my database. I am loading 10 tables in one dataset and creating relations for those Tables. Out of 10 tables one table have millions of records and takes so much time to load the data. Is there any possiblity to load this data quickly or create a thread which will load this data in to data table background once the thread is done i can assign and bind this data to my datagrid. I tried this scenario but it's not working for me. It's failing. I'll appreciate if some one can help me with the solution or Any working alternative solutions. Thanks Reddy reddy4all@gmail.com Hi- Thanks for the response. My main intension is loa ...Show All
