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

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

LenaS

Member List

mikewo
Mahender
karthik asok
ron nash
arsonist
JohanNL
bbdobuddy
Gouranga1
imj
kilo94
Olodu
sandipan
AlucardHellSing
xbrady
keith1
Tdah
vasudupe
Sarit Tamir
FLDaveM
mamo
Only Title

LenaS's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Audio hoax

    I was just wondering whether the XNA framework somewhat more than using its internal icky audio engine based on prefabbed XACT packages, like writing PCM data directly to a buffer I'm not very far into game programming as of yet, but to me the use of XACT seems like a superfluous step in the work flow of a creating a game, or just an additional level to a game. Correct if I'm wrong, I've just read the documentation. First of all, wave banks, cues etc. can only be created within the XACT authoring tool, hence no possibility for integration other than using what's created in the tool. Second, apparently no reflection or discovery can be made on XACT packages in your client code to discover cues. Scenario: A level editor in which you ...Show All

  • Microsoft ISV Community Center Forums Extra tip

    I had just discovered a critical prerequisite for when you want to create an ActiveX control using ATL that you want to use in an Excel document: The ActiveX control MUST support Connection Points. If you do not add Connection Points to your object, you may receive the following useless and misleading error message: "Object library invalid or contains references to object definitions that could not be found". Steps to reproduce: 1) Use Visual Studio 2005 to create a new ATL project. Use all default settings. 2) Use "Add Class" from the project's context menu to add an ATL Control to the project. Use all defaults for the object. 3) Compile the project. 4) Open Excel. 5) Add a Command Button. 6) Add the ActiveX c ...Show All

  • Visual Studio Express Editions Making Windows application fails.

    Hi, I'm new to Microsoft Visual Studio C++ Express and followed the instructions on the site for setting up Microsoft Platform SDK (http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/) and am having issues with creating the application (last step). The same type of error during linking: Linking... test125.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageW@4 referenced in function _wWinMain@16 test125.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _wWinMain@16 repeats. And I followed the instructions exactly. It occurs in any Windows-based application. I have no clue what's wrong. The exact same thing happens when making DirectX applications, includin ...Show All

  • Visual C++ Can someone verify this for me, It's driving me nutz

    Basically I need the base class to have a virtual function that can call out. Here's a simplified example. #include <iostream> #include <tchar.h> class base { public : virtual void Initialize() { } }; class foo : public base { public : void Initialize( int a) { Initialize(); } }; class foobar : public foo { public : void Initialize() { std::cout << "I need to be here..." << std::endl; } }; int _tmain( int argc, _TCHAR* argv[]) { foobar f; f.Initialize (10); return 0; } Wojtek Jonathan Caves - MSFT wrote: The first is that name lookup in a class ...Show All

  • Visual C++ Restart the timer

    I want to restart the timer... If a condition is fullfiled a timer stops, and then pops a msgbox and if user chooses yes than the score resets and the timer starts. The code is something like this: if(bugs_killed==10) { timer1->Stop(); // stop the timer and display a message box // now test if the user choose yes or no if (MessageBox::Show("Play again ", "Project", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes) { bugs=0; score=0; timer1->Start(); // start the timer } When timer runs the bugs are moving on the screen.. is a picture box that is mo ...Show All

  • Visual Studio Macros don't work in VS 2005

    Hello, The macros aren't working in VS 2005. I don't see a "macros" under the tools menu. I don't see anything happen when I click on Ctrl-Shift-R. I also have VS.NET 2003 on the same machine and it works fine. Any idea what's wrong The version information that I have is: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 -Eric Does your \Program Files\Common Files\Microsoft Shared\VSA\8.0\VsaEnv look like this 28-12-2005 18:11 <DIR> ____D________ 1033 28-12-2005 18:11 <DIR> ____D________ HTML 28-12-2005 18:11 <DIR> ____D________ Packages 28-12-2005 18:11 <DIR> ____D________ ...Show All

  • Windows Forms WebBrowser stealing focus

    Hello, I would like to ask. I have WebBrowser component in my WinForms app (.NET 2.0). I display my own html pages without navigation. The WebBrowser intialization is: this .dataDisplayWebBrowser.Navigate( "about:blank" ); this .htmlDoc = dataDisplayWebBrowser.Document; this .htmlDoc.MouseDown += new HtmlElementEventHandler (htmlDoc_MouseDown); this .htmlDoc.MouseMove += new HtmlElementEventHandler (htmlDoc_MouseOver);   Displaying page: this .htmlDoc.Write(html); this .dataDisplayWebBrowser.Refresh();   Problem: When I click to the browser once time, it gets focus. It is OK, but after all new pages displaying, it gets the focus again without need to click. I want to prevent it, be ...Show All

  • Visual Studio Express Editions Help needed with building a Media Player

    Help needed with building a Media Player I am looking for the Duration of the video or audio clip in the Media Player. So far I have not found it. I am building a Database, containing a Media Player with the following tasks. 1) I need to find and extract the Duration from the record. 2) UseCount must be incremented every time the record is used. 3) I need to find a way to link the query to the contents of the form. This is the query from the MS Access database; it contains one of 4156 records TitleID 23610 Artist Artist USA Title Working for Caligula Year 1996 TrackNo 71 Duration 0,00 DatIn ...Show All

  • Visual Studio 2008 (Pre-release) Where is System.serviceModel

    I install .Net Framework 3.0 RC1 but I cannot find System.serviceModel for Windows Communication Foundation. Do I need to install some other components As I understand it, you need the SDK to get the assemblies for compiling.  You need orcas tools to get the Visual Studio enhancements.  So I don't think you can install just Orcas and have a fully functioning development system.  ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Rectangle collision detection help

    Hi, I'm learning how to use collision detection in sprites, and I've decided to use Rectangles. Basically, I program the game to make a rectangle around each of the 2 sprites and, when I move the sprites via keyboard input, it moves the box with them.( Now, I'm doing this to test collision detection. Heres the bit of code that doesn't work: if(Sprite1box.Right == Sprite2box.Left) { Sprite1pos.X += 5; Sprite1box.X += 5; } (Where Sprite1box = The rectangle aroudn the first sprite, Sprite2box = the rectangle around the 2nd sprite, and Sprite1pos is the vector of the 1st sprite) This doesn't work - the sprite just moves right through the second sprite. Now, I figured I must've done something wrong ...Show All

  • Windows Forms Font is Combobox text?

    Hey, How would I make it so that the font in a richtextbox is the selected font in a combobox(combobox2.text)  I tryed thisrichtextbox.TextBox.Font = (toolStripComboBox2.Text); but I got a error with the toolstripcombobox2.text part...: Cannot implicitly convert type 'string' to 'System.Drawing.Font'   Thanks :) programmer01 wrote: I did not do the first becuase it would change alot like the size and type of font style... You can Preseve both Style and Size before you change only Font: Pass Size and Style of Currently used Font of RichTextBox while change only the Font name. All will be fine!!! Cheers ;-) ...Show All

  • SQL Server Find first free number

    I have a table Col1 Col2 1 1000 2 1001 4 1003 5 1004 7 1006 I want to find the first free number from first column. Now It should return 3. After inserting a row with col1 = 3 it should return 6 and after inserting a row with col1 = 6 it should return 8. Is it posible use a pivot table to compare which Col1 are not sequentially present. this code sample assumes your schema (called TestTable) and a Pivot table with one column (i, range from 1 - 999) select p . i from Pivot p where i between 1 and @whateverRange and not exists( select t . Col1 from TestTable t where t . id = p . i ) this is a nice solution when you're looking for sequential i ...Show All

  • Windows Forms How to disable the ContextMenuStrip in the TextBox associated with a ComboBox?

    I need to disable the ContextMenuStrip in the TextBox associated with a ComboBox for a smoother functionality. Right clicking on the CombBox button will open a ContextMenuStrip that I can disable, rightclicking on the TextBox associated with the will always bring up the standard TextBox ContextMenuStrip. I can't find access to the ContextMenuStrip in the TextBox to disable that. Anyone know a way to retrieve either a handle to the TextBox or the ContextMenuStrip inside a ComboBox Holy Beans Batman! While this doesn't answer the question I originally asked, it does actually do what I intended. Changing the drop down style to DropDownList will prevent the ContextMenuStrip in the textbox portion of th ...Show All

  • SQL Server Trapping validation errors and sending email

    I have a DTS package that I'm moving over to SSIS. In place of migrating this package, I've choosen to recreate it. This package moves data from an Informix database to a SQL database. In the old package the first task was to make a simple connection to the Informix database and if the task failed, it would send an email and stop the package. The biggest reason for this is because the Unix server that I'm getting the Informix data from forces the user passwords to be reset ever 90 days. So in my old package, if I forgot to change the password and the connection started to fail it would send me an email. In my new package, SSIS performs a validation before starting. There are a number of task that uses the connection to the Informi ...Show All

  • SQL Server how to use DtsLocalizableAttribute

    I Have to set the display name and Description of DtsPipelineAttribute using DtsLocalizableAttribute. Can anybody point to some example. MSDN Help is not much of use, it does not contain any example. Dhamrbir Hi Deniz I have a custom component, whose name should be localized. For this I have to read the resource file and set the Display Name and Description of the DtsPipelineComponent attribute. As per the MSDN Documentation http://msdn2.microsoft.com/en-us/library/microsoft.sqlserver.dts.pipeline.localization.dtslocalizableattribute.aspx We need to set the LocalizationType property of the DtsPipelineComponent attribute to the type of the resource class that contains the resources for ...Show All

©2008 Software Development Network