Chris Ward's Q&A profile
Visual Basic How an object can supply another object with a reference to itself (can I use the Me keyword for that?)
Hi I am writing an object-relational DBMS in MS Access VBA. I'd like to have the aggregated objects ('children') have a reference to its parent ' Example of the object aggregation ' ' Parent Dim mlChild As clsChild Property Get child() As clsChild Set child = mlChild End Property Property Let child(ByRef c As clsChild) Set mlChild = c Set c.parent = Me ' This doesn seem to work - what's wrong End Property How is the ...Show All
Smart Device Development Emulator Flash Memory File
How do I create a flash memory file for the emulator You might have a save state that was created without the flash option. When the emulator is up, use the "Clear save state" from the File menu. To verify, check if there are any files in: \Documents and Settings\<your user>\Application Data\Microsoft\Device Emulator If there are, you can delete those and try to launch the emulator again. ...Show All
.NET Development Remoting from GINA
Our app needs the services of remote objects during the logon process (say, to log invalid log on attempts). We have a replacement GINA in place and it uses COM to invoke a COM-enabled CLR object. This object in turn does the remoting stuff. All the objects are connected up and working but during initialisation, the CLR object performs a RemotingConfiguration .Configure(...) call which throws an exception (apologies, its a a lengthy one) and ...Show All
Windows Forms Auto-complete not completing
Hi! I'm having trouble getting my custom TextBox subclass to exhibit Autocompletion. I'm using Visual C# 2005 Express, and I've verified the way it's supposed to work on normal TextBoxes; however, once derived the functionality is just gone... I'm using CustomSource, with a dynamically filled collection (though I've tried filling it a priori), and Appen (though I've tried Suggest too). I'm handling KeyDown, KeyPress and TextChanged for the ...Show All
SQL Server SQL Impesonate Logon Problem
Hi. I am currently working on an ASP.NET application which has to log on to SQL using a specific windows user account. As far as I am aware the only way to do this is by adding the Integrated Security=true ; property to the connection string. If you specify a user id and password then it will try to log you in as a SQL user. Is this all correct To be able to login to the SQL server we explicitly call the LogonUse ...Show All
Visual Studio How to Defining Virtual Tables Based on a Command/SQL Query in Crystal Reports for Visual Studio .NET 2003
Sir i am working with VS2003. When i am trying to create a query using Defining Virtual Tables Based on a Command/SQL Query example as mentioned in MSDN , i am not able to see the option To create your own command object Right-click Database Fields in the Field Explorer and click Database Expert. In the Database Expert dialog box, browse the folders to locate your data source. Under your data source, double-click the Add Comman ...Show All
.NET Development Securing Connection String For SQLServer - Can it be done?
Is there a way to encrypt the password in SQL connection strings in the Framework 2 programming languages We have this security geek in our building who sniffs the wireless packets and tells us at lunch what he finds. MSN messenger does not encrypt its info and he tells us the userID's and passwords and stuff that people write on MSN messenger. He says he can see the SQL connection strings and the passwords when people open connections to the ...Show All
.NET Development Stopping WMI Event Watcher
Hi Everybody! I have run into a problem that has me perplexed and could use some help. I am simply trying to register for printing events using WMI. The following code works fine except for the "Stop" method. Anytime that I call "Stop" on the watcher I receive a "No such interface supported exception". I cannot seem to figure out why the exception is happening. Any help would be appreciated. Thanks, Brett Code sample: // set up event query usi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectInput not recognizing wired Xbox 360 controller for Force Feedback
I want to implement force feedback in a game I'm working on. The controller is reocignized fine without checking for force feedback. So if I write... //create force feedback capable joystick device. foreach(DeviceInstance di in Manager.GetDevices( DeviceClass.GameControl, EnumDevicesFlags.AttachedOnly)) { joystick = new Device(di.InstanceGuid); break; } if (joystick == null) { //Throw exception if joystick not found. throw new Exception(& ...Show All
Visual Studio Package 'Visual Web Developer Trident Designer Package' has failed to load properly.
I've been using VS 2005 Beta 2 for a few weeks now on a win2K machine, with nothing else installed at all. It's been working fine every day for three weeks, but today I get the following error message whenever I try to open an .aspx file. "Package 'Visual Web Developer Trident Designer Package' has failed to load properly. ( GUID = {30AE7E2B-6CO2-496D-8E43-85F7A90AEFF1} )..." I have not had any previous versions installed, and instal ...Show All
Visual Basic Naming a DOS (cmd.exe) window in VB.net 2003
I have a dos window (application) that is launched as a process from a windows app, but i can't for the life of me work out to title the window how i want to Currently is just comes up "C:\windows\system\cmd.exe" etc I want it to be "My Application is no good" or any other text string. Can anyone help me Cheers, Mc If you control the launched application you can make it call the SetConsoleTitle Win32 API to set ...Show All
Software Development for Windows Vista Suggestion for the SQLTracking Service
Hi, I don't know if it makes sense, but I would like to override the GetProfile (...) method of the SQLTrackingService in order to specify a Custom profile for tracking. But this class is sealed... Any comment Serge Luca Guidance, Belgium MCSD.Net, MCT blog: www.redwoood.be You can add a custom profile by putting the xml serialized version of a profile into the profiles table. Look at the Profile editor samp ...Show All
SQL Server SQL Mobile Installation Problem on Device
I have been unable to properly install SQL Mobile 2005 on my armv4i windows CE 5 device. Below is a summary of what I have found and done. Any help in resolving my issue will be appreaciated. Thanks in advance for your help. Symptoms: No errors occur during installation of SQL Mobile on the device via cab files (either deployed through VS2005 or manually copied and installed on the device) SQL Mobile 2005 appears to be instal ...Show All
Visual C++ Visual C++ compiles much slower on dual core processor
The Background: I recently upgraded from a 2GHz AMD Athlon machine to a 3.2GHz Pentium D dual core processor, thinking that my Visual C++ (.NET 2003) compile times would decrease significantly. In fact, it went the other way round. One of my library projects requires 11 minutes to compile on the AMD machine, but takes 25 minutes on the dual core machine. My entire set of projects compiles in about 4 ho ...Show All
Visual Studio Express Editions Referenceing.
Im just messing arround and Ive made a registration type thing and Ive got a question. Say that you get all to the end of the regristration where it asks you if all of the information you input is correct, and you say no, how would you make it so that you would go back to the part where you input all the information. First off we are going to need to know what language and technologies you are using... Is t ...Show All
