Karim Dinani's Q&A profile
Visual C++ Problem overloading and using ostream operator << for my own classes
I have several problems to declare, define, and use the following operator in many .cpp files : std::ostream & operator << (std::ostream &, const MyClassA &); I succeed to declare and define this operator for my class MyClassA, defined in MyClassA.cpp. I declared my class as following : // MyClassA.h class MyClassA; std::ostream & operator << (std::ostream &, c ...Show All
SQL Server Datetime parameters
Hello, I have a date time parameters, Users can pickup a date using the calendar control but he can also change the date and also add time. When a user type wrong date or time we got error message only when he try to run the report, can I change this behavior ...Show All
Software Development for Windows Vista MSDN Vista key fails
Hi I have just downloaded the December CTP 5270 build from my MSDN subscription but the Product key provided on MSDN doesn't work, I have read that I need a new code for this build does any one know when this will be published on MSDN Regards Steve Still not work on my "REAL" hardware! The key works on my 5231 build. :-( How should I contact Microsoft to resolve this problem Thanks! ...Show All
Visual Studio Express Editions ATTENTION VISUAL STUDIO EXPRESS BETA USERS
There is a problem with the beta versions of visual studio 2005 Express. DO NOT USE A REGISTRY CLEANER IF you do it will clean the invalid entries, which might not be invalid. i did this and discovered it. IT will wipe the project templates in all versions. I am using regseeker 1.45 beta. I never had any problems with any other program while using this. whew good thing i had a backup It will also cause the uninstall to fail. -------- ...Show All
SQL Server How can i pass GUID as sqlreport input paramater?
Hi, How can I pass GUID as sqlreport Input parameter I get the following error - "Failed to convert parameter value from a String to a Guid. (System.Data)" I also tried passing guid within the curly braces but of now use. Please help! Ashu Try creating a ReportParameter object and then storing the GUID, as a string, inside this parameter. Example: Microsoft.Reporting.Winforms.ReportParameter tempParameter = new M ...Show All
Software Development for Windows Vista Persistence service exception
Hi together, I am just playing around with the new workflow framework. I have build an example state machine with three states: [State1], [State2] and [State3] [State2] contains a HandleExternalEventActivity where the problem occurs. Here is some code: [ExternalDataExchangeAttribute()] public interface IMyInterface { event EventHandler<KeyArgs> OnKeyPressed; } [Serializable] public class MyClass : IMyInterface { public event EventHandl ...Show All
Visual C# reopen connection
Can I reopen a DB connection object after I close it e.g. SqlConnection conn = new SqlConnection(...); conn.Open(); ... conn.Close(); conn.Open(); // reopen OK Yes, you definately can reopen a connection after its been closed. But before its been Disposed. If you call the Dispose method on the Connection object, then it looses the unmanaged connection reference and will not ope ...Show All
.NET Development .NET 1.1 with .NET 2.0
Hi, I have no clue where to post this, I'm taking a chance and post this here. I apologize if this is not the right place. I have 2 quick questions about .NET: 1. My LaserJet 3055 drivers installed .NET 1.1. Earlier I did not have any version of .NET on my desktop. Later I have .NET 2.0 installed. Can I safely remove .NET 1.1 2. I have .NET 2.0 on my notebook and do not have any other version. Can I install .NET 1.1 later Thank you. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. LoaderLock was detected
Hi, I have installed DirectX 9 SDK (October 2005) and Visual Studio 2005 RC1. When I try using directx classes for capture audio, I have a problem. The code i have wrote is: Dim d As DirectSound.Device Dim ds As DirectSound.CaptureDevicesCollection ds = New CaptureDevicesCollection For Each d In ds Me .ListBox1.Items.Add(d.ToString) Next When I run the application I get ...Show All
Windows Forms Creating a shape for a window
I know how to make a window a certian shape and dissable the title bar but how do you allow it to be moved in the same way as a normal window. Like lets say i make a window that is shaped like a cd and it has no&n ...Show All
Visual Basic I have problems in my registry app, please help?
Hello, I got this application which was compatiable with Visual Basic 6.0 so i upgraded to Visual Studio (basic) 2005 BETA 2 and then it didnt work. What it does you click a command button and it inserts keys to the registry and adds a Shell Context Menu and 'Upload to GuruImages' will appear when you right click a .png file. Could somebody tell me why this doesnt work, and how would I make it insert these keys into the registry on installati ...Show All
SQL Server Update in Sybase 11 Linked Server problem
When trying to update records in a Sybase 11 ODBC linked server got this error: Server: Msg 7330, Level 16, State 2, Line 1 Could not fetch a row from OLE DB provider 'MSDASQL'. OLE DB error trace [OLE/DB Provider 'MSDASQL' IRowset::GetNextRows returned 0x8001010e]. Thanks for your time. I found that I cannot update rows in Sybase but I can insert new rows. So I’m now inserting rows in a tempor ...Show All
SQL Server SQL Server 2005 express maximum database quantity and size?
I whant to now how many database of 4GB is alow in 1 instance of SQL Server 2005 express. Is it 1 of 4GB, 2 of 2GB etc... The 4GB maximun is it for the instance of the server. Tanks ...Show All
Smart Device Development Saving Structure variables to a file
Hello, Could please somebody shed some light on how to write an array of Structure variables to file The structure looks as follows: Public Structure tUnit Dim Name As String Dim HP As Integer Dim Armor As Integer Dim Sphere As Sphere Dim Moves As Byte Dim TravelsTo() As Boolean Dim Weapon() As tWeapon Dim Current As tState End Structure Since TravelsTo() and Weapon() are custom variables themselves, it would ...Show All
Visual C# Passing a ref to a SafeArray to c# .net component from MFC
I have a .Net component that passes a stringArray to a client program via an out parameter. This works fine from a .net client and I have successfully passed a SafeArray from MFC to a .net component as an in parameter. What seems to evade me is returning returning an array from a .net component via the CCW as an out parameter. Can anyone help regards Rob Thanks for the reply, However, I am doing th ...Show All
