Software Development Network Logo
  • Windows Vista
  • Smart Devicet
  • Visual C++
  • Microsoft ISV
  • Windows Forms
  • SharePoint Products
  • Visual FoxPro
  • Visual Studio
  • Visual C#
  • Game Technologies
  • SQL Server
  • IE Development
  • .NET Development
  • VS Team System
  • Visual Basic

Software Development Network >> cstrader's Q&A profile

cstrader

Member List

penninha
thussain
AlexDcosta
Nick Winters
bubberz
jcsam
rs12345
chukky
joynerCN
Bill Foust-DAI
Kujo1987
Arun Manglick
s123
Vramin
Mateus1223
Indigo Paul
LpAngelRob
DegreeZ
Bunter7s
Evan Mulawski
Only Title

cstrader's Q&A profile

  • .NET Development Events and the purposes

    I'm getting confused. I understand the purpse of events - to notify of its subscribers that a particular event/action has happened, or something like this. Also, we should not need to know about perhaps existance of "outer" classes (classes not created within the current class), therefore if we need to notify the "outer" classes, they should subscribe to an event which we raise from the current class. But its got me thinking and can't stop. Should we not have a reference to the outer class to say, execute a function or get some of its exposed properties Example could be, we have a class has operations to do with SQL, some methods return values. So, main form knows about this class, since ...Show All

  • Visual C++ CreateWaitableTimer Example

    I took the CreateWaitableTimer example (including the includes) and placed it in a c++ sample project... It won't compile and I am just banging my head against the wall as the errors don't make sense.. The example is located at: http://msdn2.microsoft.com/en-us/library/ms687008.aspx I have tried pulling the lean_and_mean created as part of the sample and it had no effect whatsoever. The errors are as follows: C:\Documents and Settings\Owner\Desktop\AdjSvc\Adjtest\Adjtest.cpp(18) : error C2065: 'HANDLE' : undeclared identifier C:\Documents and Settings\Owner\Desktop\AdjSvc\Adjtest\Adjtest.cpp(18) : error C2146: syntax error : missing ';' before identifier 'hTimer' C:\Documents and Settings\Owner\Desktop\AdjSvc\Adjtest\Adjtest.cpp(18) ...Show All

  • Visual C# tabPages troubles again.

    I've been working with tabcontrol and tabpages thanks to OmegaMan and other fellows. I can create them programmatically, I can set controls like buttons and surfaces with grids on them. I get graphics. Now I want to destroy selected pages on Click. There is a Cancel button on each tabpage that is supposed to do it. I attached a _Click event to it--it works fine. It is the only thing that works actually as fart as this problem goes. In order to destroy the tabPage I have to get a refrerence to is as an object. The code inside the Click event must be able to figure out which page it is. I cannot seem to get a handle on it. This is what I've done so far. I've attached a GotFocus event handler to the tabPage and when it fires I am ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Yet another tile game : Psykoban (Sokoban clone, source included)

    This is the fourth game I've made using the XNA framework & GSE, this one is a sokoban clone (sokoban meaning warehouse keeper). The objective is simple, push the boxes/barrels in the appropriate locations to complete the level. But you can only move in one direction and can only push one box/barrel at a time. The game includes 12 levels, and unlike other clones having a character as the player, I used a forklift thing-a-ma-jig . Screenshots/Download Enjoy! Thanks Maximus, About the key(s) not registering, It'll only register if no other keys are pressed and the player isn't moving, I'll try to fix that. For the "hit Start", its mainly because the game can be played with the 360 controller.. maybe I should make a PC and a 360 v ...Show All

  • Visual C# Email Notification LED

    Hiya, Does anyone know how to (if possible) turn on/off the email notification LED on a laptop, and if so is it the same for all laptops . Thank you Lee Fry Damn ... if only life was simple heh. Thank you for a swift response, I was hoping that it may be possible through the WMI or something. ...Show All

  • SQL Server Server Name problem

    Hi, I have chart on a report. If i access a report from the Reportserver by the IP address of the machine, the chart shows up otherwise( i.e if i invoke it with the machine name) it does'nt show What may be the problem This my entry in web.config: < add key ="Key_ServerURL" value ="http://machinename/ReportServer" /> ...Show All

  • SQL Server Help with declare and cursor

    I keep getting the message Msg 156, Level 15, State 1, Line 3 Incorrect syntax near the keyword 'declare'. Msg 156, Level 15, State 1, Line 4 Incorrect syntax near the keyword 'declare'. What am I doing wrong declare @dbname varchar ( 8000 ), declare @countyname varchar ( 200 ) , declare @sql varchar ( 8000 ) declare county_name cursor for select distinct county from Zipcodes open county_name fetch next from county_name into @countyname declare dbname_name cursor for select name from sys.databases where name like 'Property%' and name <> 'PropertyCenter' open dbname_name fetch next from dbnam ...Show All

  • Internet Explorer Development How to redirect to an other url in IE add-on ?

    I try to write a IE add-on to restrict the visiting of web site, user can only visit some allowed web site. So I cancel the request in DISPID_BEFORENAVIGATE2 event if the web site is not allowed, it works, but how to redirect to a specified URL IWebBrowser2.Navigate2 don't work. You can call IWebBrowser2.Navigate with another URL in the BeforeNavigate2. You must use the IWebBrowser passed as the first parameter in BeforeNavigate2. What exactly doesnt work for you ...Show All

  • .NET Development Encrypted File + Append Encrypted Data - Do decrypt whole file

    Hi i've been having lots of headache with this, here's my scenario 1) i'm using log4net which i modified to have an EncryptedRollingFileAppender 2) it encrypts the data thru a CryptoStream and writes out the output to a file as binary 3) When the app is stopped, log4net is stopped and file is closed. When started again it will append the data in a similar fashion as 3. 4) I stop the app a 2nd time and now try to decrypt the entire log file. It will give me garbled data in between when it was stopped in 3 and started again. Cryptography used: Rijndael with fixed IV using CBC. I've tried all CipherBlockModes that Rijndael allows to no avail, even ECB still produces rubbish in between but the entire text is there, probably d ...Show All

  • Visual C# Reinstall creates multiple entries in Add/Remove Programs

    Hi, I have an app that I have compiled several times to an installation program. In VS2005 I have DetectNewerInstalledVersion = true and RemovePreviousVersions = true. Each time I compile I increase the version slightly so I can run the setup without error, but when I do all these things, after installing different upgrades several times I see new entries into Add/Remove Programs. Is there something I can do in Visual Studio to correct this Mario, You are right, it is completely counterintuitive!! I have a VS2003 WinForms app for which I am providing constantly newer versions to the folks who are testing it for me. I want the installation to be simple: Just one the new MSI file and have it install over top of the old installation. To ...Show All

  • Visual C# User Settings file and binding control to "BackColor"

    I want to be able to save user settings. The user can create different profiles so that, for example, one profile may have something like red, 26 point font, and another can quickly be selected and it changes to blue, 72 point font. I thought about using the "Settings File" but I wasn't sure if or how to have multiple sets of settings (i.e. different profiles). So my next solution was to load an XML config file into a dataset and bind the dataset elements to a form's controls. This works great, except I want to bind to "BackColor", which is a Color object and not a string, so it causes an error at runtime. What would be my best solution for a settings file that allows multiple sets of the same user settings, data bindi ...Show All

  • Visual Basic Dynamic execution method (release/debug mode)

    I understand that a VB app may be compiled 2 ways (ie.,Release,Debug). Generally, we would like to use release version in production but there are times when I need to use the debug mode. I do not want to maintain two versions of exe. My application reads off data from a SQL Table so I'm thinking of leveraging that for an IF... Else statement. However, I need to know if it is possible to include the execution mode into the VB script rather than rely on the compile method. Is that possible Thanks. Hi Jade, Generally, a release version of an assembly has certain optimizations in it that make it not debuggable. Information is often optimized away that is necessary for stepping through (debugging) the a ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. DirectX 10 Question...

    Hello, I am thinking about building myself a new computer. I plan on decking this whole thing out with the best parts I can afford. The thing I am worried about is DirectX 10. I am thinking about getting all the best available hardware except the graphics card and maybe just getting a mid range graphics card, then upgrading to a DX 10 compatible card when they come out. My question is if I buy a midrange card now and upgrade when DX10 is released, is there anything that points to having to replace my mobo too I know there are chipsets on the mobo that deals with the graphics card(s). Will these current chipsets be compatible and get me the most out of a DX10 card Thanks in advance for any information. Hi ...Show All

  • Visual C# Many a C# Question

    Hi, I've got a few questions relating to C# (Forms & Code) and am hoping that someone could please help. If you do, it'll be much appreciated. Is it possible to add tabs (like MS VS does) when I want to make a new thing If so, what do I do Is is possible, to add non-existant programs to a menu after they have been installed on a computer (like MS Windows Start Menu etc. or Internet Explorer) If so, what do I do When printing with web browsers, is it possible to NOT use the image document user (like when using IE) If so, what do I do Is it posssible to ban websites using web browsers If so, what do I do Is it possible to have a loading bar when a web browser is loading or if something is printing If so, what do I do ...Show All

  • .NET Development Web.config and "The entry 'KEY' has already been added"

    My connection string of my web app (.net 2.0) is in the web.config: <connectionStrings> <add name="KEY" connectionString="VALUE"/> </connectionStrings> Everything was working fine until i got this error message System.Configuration.ConfigurationErrorsException: The entry 'KEY' has already been added. (...path...\web.config line 14) To solve the problem, i added a <remove name="KEY"/> before the <add/>. My question is: The key isn't anywhere else in the project, except in the web.config. How can it be duplicated .NET has several configuration files and they are all merged together. Your KEY is already defined in some other config file. ...Show All

©2008 Software Development Network