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

Software Development Network >> Andrew Buyan's Q&A profile

Andrew Buyan

Member List

robinjam
nc-ghost
vonlinkerstain
michael olson
espeir
JLTate
Lawrence 007
Willem Muller
kittykat80
Ferdinand Kuiper
Xaid
Murali Krishna K
iamdon
ItsMe!!!
R.Tutus
Greg.B
gmaenrile
Quick x Scope
project2n5e0o1
Sweta Jha
Only Title

Andrew Buyan's Q&A profile

  • Visual C++ C++/CLI problems/issues

    I have some questions on C++/CLI issue. Let me explain my situation: I have an existing native COM dll that contains my logic. It has been tested and works fine with native C++ client using CoCreateInstance. I would like to add a new logic and notice that BCL has a class that I can use. So I add a new source file and header which I compile with /clr since I need to use one of BCL classes (actually, at this point, it is just an empty shell). When I tried to CoCreateInstance in my native client, it couldn’t create. But if I go back to my COM dll project and take out the /clr in my new source file, it works fine. After some debugging, I found out the problem and have been able to fix the issue. However, I would like to get more detai ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Sprite scaling and blending

    OK, I've searched through a couple posts here and didn't find anything that fixed the problem. I'm scaling sprites to draw GUI controls and I'm getting funky results. Here's what I get (blown up 6x to show the problem). I'm drawing the box in chunks - upper left 4x4 pixels, upper right 5x5 pixels, left border, right border, lower left 4x4 and right 5x5 pixels, and upper and lower middle sections.I don't think I have to explain what the problem is.  I've tried setting texture filtering, destination blending, but nothing seems to affect it. Here's the sprite I'm using to draw. Maybe I just need to get some sleep. Whenever you scale a texture, you need to care about how filtering works. Consider this texture with just two pix ...Show All

  • SQL Server TSQL Logic Help

    I have a Rule table that looks like this. Rule_ID (PK) vMin vMax vName I would be recieving the vName as an input. I need to go through the table to make sure that the rules (Min and Max) are not intermingeled. Rules can be within another rule but can not cross. This is Correct Rule 1 vMin = 10, vMax = 20 Rule 2 Correct vMin = 15, vMax = 18 Rule3-Incorrect vMin = 8, vMax = 12 Every time the SP is fired I need to be able to check if this rule is valid or not by comparing it to all the rules in the table. if it is not valid I need to fire an error back. how can we get the logic of this code to work Please help Try this out: select t1.RuleID,t1.vMin,t1.vMax,t1.vNa ...Show All

  • SQL Server Having 2 CALCULATE statements no longer works after installing SP2!!!

    I received the following email from a collegue of mine:   I think we may have found an issue with SQL SERVER 2005 SP2   1. Some of the Analysis Services Properties when you click the advanced tab are missing!   2. The MDX scrip behaviour is not the same. In our cubes we had two CALCULATE statements - first to aggregate the data as normal, then some code to calculate MTD and YTD figures and then another CALCULATE statement. This enabled us to calculate percentages later on in the script without having to sum up all the data at leaf levels first.   With SP2, this no longer works!!! All our percentages are now being added up (like all other measures) which is clearly ...Show All

  • Windows Forms folderBrowser ON the form

    Hi This is my first post, so try to be nice :) I have a folderBrowserDialog for selecting a folder to work on, that pops up when I click on a button using the ShowDialog() method. I want to have that dialog ON the form I can click without using that nasty "poping" dialog. Any idea I get a: ContextSwitchDeadlock was detected Message: The CLR has been unable to transition from COM context 0x1a1b60 to COM context 0x1a1cd0 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non respo ...Show All

  • Microsoft ISV Community Center Forums Updating text in a text box on an Excel Graph

    I am automating a spreadsheet, designed by someone else, which has 18 graphs on a worksheet. Most of these graphs have a text box on them which indicates the week commencing that the graph refers to. The text box appears to be a shape object on the chart. I want to loop through each chart on the sheet, then loop through each shape on the chart, and change the text if the shape is a text box. Can anyone put me on the right track, I did try using the macro recorder to get me started but this code does not work in my VBA module. Hi Thanks for the post, the text I want to update is a text box which the user has placed on the charts. It appears to be a shape object. The code that I had from macro reco ...Show All

  • Windows Forms Auto-expanding TextBox?

    Hi, Am I mistaken or is there no automatic way of getting a multiline TextBox to grow as the number of lines in it increases and when the form is resized I'd think something like this would be standard in a mature UI framework like WinForms Many thanks, Jiten Okay, This is turning into real hair-pulling stuff! I've scoured the net and found that I can use the Win32 API SendMessage function to get the number of lines a TextBox takes up (apparently). So I have the following code: public static void AutoResizeTextBox(TextBox textBox) { const int EM_GETLINECOUNT = 186; // Obtain the line count for the textbox using a Platform Invoke'd method Int32 lineCount = SendMessage ...Show All

  • Visual J# vjc throwing an exception

    I do not have this problem when compiling from VS 2005. This started after I uninstalled the J# redist and then reinstalled it using the MSBuild created bootstrapper program (testing it). When I build using nant which calls devenv to build the solution I get the popup asking me what program I want to use to debug vjc because it hit a problem. Even weirder, the compile continues - it does not return an error. But the rest of the projects are not compiled. What is going on and how do I fix it thanks - dave Running from MSBuild I get: Properties\AssemblyInfo.jsl(1,1): error VJS1581: Internal Compiler Error: f:\rtm \vjsharp\sdk\bjdev\compiler\vjsc\codegen\emitter.cpp 177 Warning(s) 1 Error(s) So it looks like MSBuil ...Show All

  • Visual Studio Team System The internal state of the database project is inconsistent

    I got this error Error: The internal state of the database project is inconsistent Unload the project and then reload it to resolve the issue. i already Unload and reload the project but not solved any help Yes, it is unclear as to what is causing this to happen. We had a database project as part of our solution for about a week and then suddenly this started happening for all the developers on the project. At this point we have to unload the database project whenever we want to do a build. -- Bryant ...Show All

  • Visual Studio 2008 (Pre-release) Viewport3D: world space to viewport space

    Hi, I'm looking for a way to go transform a Point3D in world space (or even better down in set of nested ModelVisual3Ds) to the Viewport3D's 2D screen space. I can't find any built-in methods for this. Am I missing something, or do I have to write my own Thanks! - Imad Ok, good to know. Any chance Microsoft might put out a helper library to ease development for this kind of stuff I realize it's too late for inclusion into .NET 3.0, but some sort of utility library would be great, even if it wasn't officially supported (sort of like GLUT). - Imad ...Show All

  • Gadgets file is .gadget but IE downloads as .zip

    I have packed my gadget files in a zip file. I then changed the name to *.gadget. The icon changed to a gadget icon and double-clicking it installs it. I then uploaded the file to my webserver and it is there are a gadget file. I then linked to it as a gadget file. When I click that link it downloads a .zip file and asks where to save it rather than downloading as a gadget file and installing. What am i doing wrong I get the install prompt, however it does the same thing. It creates the filename.gadget.~0004 in the proper directory and one folder deeper creates the filename.gadget folder. I had WinRar install and thought this was the problem. Perhaps it still is somehow. I've uninstalle ...Show All

  • Visual Studio Team System Visual Build Pro scripts

    We have lot of 'visual build pro' scripts that do our day-to-day work. Is it possible to use those scripts in TFS(i.e call visual build pro scripts thru team build) Also, if yes.. is it a good idea to do this Does this command either: (1) Spawn some GUI Team Build runs in the context of an NT service, and as such cannot spawn GUI. (2) Expect some user input (e.g. a confirmation of the delete) -Aaron ...Show All

  • Visual Studio Team System BuildType download additional (unspecified) project

    I am trying to use Team Build to automate builds on a server. My team project source control has two version of the source code (v5 and v6 - with v6 branched from v5). I created a build type for the team project and in it, I specify to only build the v6 solution. When I execute the build type, the server is downloading and building both the v5 and v6 project (v5 doesn't build because it was imported code). In the <SolutionToBuildInclude> element in the build type's proj file, I see that it correctly list only the project that i had specified so I have no idea why it's trying to download and build the v5 code. Any idea what I am doing wrong Thanks Thanks! After modifying the Workspace ...Show All

  • Smart Device Development Beginning with Windows Mobile

    Hello, I'm starting on programming for Mobiles with Windows. I would like to ask some questions: What are the differences between Pocket PC and Smartphone Are their programms compatible For programming them, I must do it only into C# Or I can use C++ In the help files it is shown an icon with some methods of any class, and putting the mouse over it, you can read "Supported by the .NET Compact Framework". So, only this kind of functions can be used for Mobile aplications There is any guide for introducing a new programmer in this new world Thanks in advance. Hi This site gives you an good overview with links to learning resources: http://msdn.microsoft.com/windowsmobile/ A ...Show All

  • Visual FoxPro How to remove redundant phrase in field?

    Hi all........ I have a table field that contains things such as..... V DISCONTINUED W/O REPLACEMENT; V DISCONTINUED W/O REPLACEMENT -I&S MASTER; 7 SUB 2610-139-3704; I&S MASTER; 7 SUB FOR 2610-139-3704 What I need to do is remove the duplicate phrases, leaving only one instance of each phrase in the field. The amount of phrases in the field varies...could be 2 as shown above or there could be 6. I suspect that the 'common denominator' is the semi-colon, but everything I've tried has failed. Any help is greatly appreciated! The data is extracted from a govt stock number database...unfortunately there is no way to control how the phrases appear...other that the fact t ...Show All

©2008 Software Development Network