batterhead's Q&A profile
Visual C++ PLUG-INS Programming HELP!!
I am coding for a program.. which i have to make extensible without changing the main code.. sort of like plug ins do as a add-on functinalities.. but i don't have any experience with plug-in development , so i need any good tutorials on how to write one. and i am working on .net 2003 vc++. any articles or suggestions will be good.. thanks in advance!! If your application need to be used as plug-in better to write it as DLL or COM componenent It's hard to describe them in words So better to start with MSDN. Inside COM is a good book in the area of COM ...Show All
Visual Studio Express Editions Query Problem
I work for an electric company and I am trying to create a simple windows application that a user can input: 1. Substation Number (2 digit number) 2. Circuit Number (1 digit number) 3. Number of Pole numbers needed I have a SQL database table that has an ID column and a Pole number column and it is populated with our current pole numbers. I have created a query that will get the last pole number for the sub and circuit, but I can not get it to actually show the pole number. It just shows the query in the message box. I know I am missing how to actually connect it to the database. I have connected the database to VB Express and then I dragged the polename column onto the form. This created my dataset. What I don't know how t ...Show All
Visual Studio Team System Deleting a project from GUI
I have removed (deleted) a project from the TFS database. However the project folder (although empty) still appears in the Folders section. Is there a way to remove this project folder Thanks, Kerry I am revisiting this issue of removing a project from the Source Code Explorer. I understand this to be a "bug" that has no current plans to fix. Our problem here is that we have old project and branches from the days of . . . (well, they're certainly very old and unuseful). There are so many of them the Explorer window is cluttered with these unnecessary entries. Having said that, is there anyway to manually remove the deleted projects from the Source Control Explorer It would seem this in ...Show All
Visual C# Controlled Shutdown of a Consol Application
Sorry if I have posted this in the incorrect section, but I wasn't sure where to post it, and as I am coding in C# I decided to put it here. The Issue I have several console application which need to perform a controlled shutdown. I create the Console application form code and store Process objects for each process created. I need to be able to tell if the process is still resoponding and hope to use the call Process.Responding to determine this (after first calling a Process.refresh()). When the creating application is told to it needs to shutdown the application in a controlled manner to allow for tidying up of resources and closing sockets. As such I am hoping I can call Process.CloseMainWindow. In both cases I have made the assumption ...Show All
.NET Development Delegates/events short question
Hey , I would like ask a few questions and I'd appreciate if someone could clarify the issues for me. Firstly: what is the difference between a) this .Load += new System. EventHandler ( this .Form1_Load); and b) this .Load += this .Form1_Load both seem to work , is there an implicit cast to ( EventHandler ) in the b) case Secondly, how does the compiler treat function names like Form1_Load or any other In C++ they were seen function pointers, how does it work in C# Does the compiler understand function names as delegates The last thing is what does actually line a) do As far as I understand it, this line concatenates the invocation list of the "Load" event delegate with the invocation list ...Show All
Visual J# J++ to J# Conversion Lots of Questions
Greetings, I'm a developer for a large open source project ( http://immunesoft.sourceforge.net ) that was written in J++. Hats off to J++, at the time it was picked to start the project it was a very pleasant system to develop with J/Direct that allowed me to access system-level functions. This is very important for a security-centric system that needed to interact directly with the operating system and still be friendly enough for rapid development. I've pushed J++ pretty much to the limit, but its time to move on. I've been working on converting the Agent component over to J# 2003 (that's 1.1) but its taking a LOOONG time. At this point, I'm still seeing thosands of errors although I've made a lot of progress. I've got a pile of qu ...Show All
Audio and Video Development WM/Picture in ASF Extended Content Description object
I've some trouble to understand how data in WM/Picture is encoded. In the specification it says it should be compatible with the tag APIC from the ID3-spec. But when I add a picture to a file with Windows Media Player and opens the file in a hexeditor it seems not. From APIC in ID3-spec: Text encoding $xx MIME type <text string> $00 Picture type $xx Description <text string according to encoding> $00 (00) Picture data <binary data> WM/Picture data from a hexeditor (sorry for the formatting): 57 00 4D 00 W M 2F 00 50 00 69 00 63 00 74 00 75 00 72 00 65 00 / P i c t u r e 00 00 01 00 9A 6F 00 69 6F 00 00 69 00 6D 00 61 . .o io i m a 00 67 00 65 00 ...Show All
Windows Live Developer Forums i need some help on nick changing
the problem is i can't change my display name in windows live messenger, and my current display name is my email address, it just remains the same display name no matter how i change it. just recently, i tried to log in my account using windows messenger. i change my display name there and it did work. however, when i back to windows live messenger, i encounter the same old problem again. by the way i can neither change the personal message in windows live messenger. anyone know why on earth does this happen I am having the same problem. At the main screen (with all my contacts) it says I am called my email address, but in a chat window I am called "Q". I used to be called "n_n" before ...Show All
.NET Development Reflection not working the way i expect it to
If I use the code below, the instance that i get a reference to seems to have the non-public members I need access to, but not after i use GetType... //get reference to instance of SomeType Sometype _fred = Somelib.SomeType //now setup reflection Type fred_type = _fred.GetType() Now if I stop at this point, and look in the locals window, _fred will have non-public properties that I need access to, but fred_type WILL NOT. What am i doing wrong I need to use Type.GetProperty to get at a non-public property, but the search fails using fred_type.GetProperty(prop_name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public) as well as simply using this fred_type.GetProperty(prop_name) This is why I started looking in the locals ...Show All
Software Development for Windows Vista Is it a bug for MMC 3.0?
OS: windows 2003 64-bit with sp1 MMC 3.0 and .NET framework 2.0 Visual studio 2005 ============== Reproduce steps. 1. Create a simple MMC project 2. Use FolderBrowserDialog such as the following anywhere FolderBrowserDialog dialog = new FolderBrowserDialog(); dialog.ShowDialog(this); 3. register and run this mmc program, and click button to launch FolderBrowserDialog 4. Make sure that the machine running the program is in a domain and can navigate several domain. 5. navigate to a domain, expand a computer, and go to share folder; 6. then navigate to another domain, expand another computer and folder; 7. repro 5-6 for several times. 8. wait for several minitues and do nothing 9. after yo ...Show All
SQL Server Confusing timeout; bug in deleting cubes and dimensions?
Hi, I got this error when I deploy a mining model. -- Error 1 OLE DB error: OLE DB or ODBC error: The query has been canceled because the estimated cost of this query (628) exceeds the configured threshold of 300. Contact the system administrator.; 42000. 0 0 Error 2 Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Revenue Labeled Prod ~MC-LPROD', Name of 'Revenue Labeled Prod ~MC-LPROD' was being processed. 0 0 -- I don't understand why this happens. Previously I've created one cube and 4 dimensions. I got the same error before. I think the cube was the culprit so I removed the cube and dimensions. After removing them, I build the project. Successful. But fail again when processing ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Qs about Multiplayer game
me plan to do a 2D multiplayer action game. Not plan too far for the MMO, but just a party around 8~20 players at once, something like Counter-Strike/Freelancer, players can travel around in a big map. me never did this before, so that me not sure my logic is correct or not. here my communication flow between [game server] and [client] 1. [client] collect player input and process 2. [client] send player input(or make it simple as command) to server 3. [server] receive client command, process it and boardcast the result to clients 4. [client] client receive server command, process and update my questions is: assume that my client running in 60 FPS 1. what the frequency that me have to collect the input and send the command to se ...Show All
SQL Server "Do not replicate DELETE statement" feature problem
I am testing SQL Server 2005. I need a replication where "DELETE delivery format" field in Table Articles Properties is set to "Do not replicate DELETE statement". Unfortunately nothing I set in this dialog is saved and used. Doesn matter what I change the replication behaves the same and the next time I open "Table Articles Properties", every value is still default. Am I doing something wrong or is it an issue (bug) in 2005 replication I googled about the issue and also searched in the SQL Server Replication threads on this site, both with no success. The thread named "Selective replication of DELETE transactions" doesn't provide enough information about SWL Server 2005 replication ...Show All
.NET Development RegEx MatchEvaluator, how to write a oneliner?
I'm working off the help here for examples and struggliong to understand how I can convert it's multiline example into a oneliner. I'm more used to Perl ;-). Here's some code fro example that works: string First3(Match M) { return M.Value.Remove(3); } // defined in the class MyClass MyClass C = new MyClass(); // A class which has a method called First3 MatchEvaluator ME = new MatchEvaluator(C.First3); string S = Regex.Replace(sMonths, "(January|February|March|April|May|June|July|August|September|October|November|December)", ME); Now I want to avoid instantiating MyClass. I'm aiming at something more like this: string S = Regex.Replace(sMonths, "(January|February|March|April|May|June|July|August|September|October| ...Show All
Windows Forms Thanks, but I think I tried it before!
Dear all, Me and my friend are new to visual studio 2005 express edition. We are trying to build a simple desktop database application. Now both of us have different connectionString to the database in our computers (which is quite obvious).At first, we used hardcoded connection strings in our apps. So it was a huge task to replace all those lines as we shifted our computers to share our works. For compatibality, we were trying to use the app.config file for the connectionString, which looks like : (in my computer) < xml version = " 1.0 " encoding = " utf-8 " > < configuration > < configSections > </ configSections > < connectionStrings > < add name = & ...Show All
