aztec2_step's Q&A profile
Smart Device Development how to use #if COMPACT_FRAMEWORK
I am implementing a new security model for a project, and I need to change a dll to be CF compatible (ie remove all XPath stuff). I figure a good way to do this would be to use, for example: #if COMPACT_FRAMEWORK private System.Windows.Forms.Panel gbNewPassword; #else private System . Windows . Forms . GroupBox gbNewPassword; #endif However, my compiler wont build it, mostly because it doesn't seem to know I want it to build in COMPACT_FRAMEWORK mode. The project is a C# Smart Device project, by the way. How do I get the compiler to believe we are building the project for compact framework Should I be creating a new solution configuration Thanks, Iceman_Aragorn You'd need to define COMPACT_FRAM ...Show All
Visual Studio Team System Generate list of merge conflict
Hi all, I just wonder if there is a way that I could generate list of merge conflict in text, or cvs, or excel, ...before performing merge between 2 branches. Mario, Could you please elaborate on whats the difference between candidate option and merge preview option I thought that what candidate gives you is a list of changesets that will be merged - what's the difference with the preview if namespace changes are not included Cheers, Eugene ...Show All
Visual Studio Express Editions Another Question
Currently I'm making a media player which is using Windows Media player DLL. And I would like to get the length of the sound which is currently playing in Progress bar, How would I do that Please Help . One way to do this is to use a timer control to sample the Ctlcontrols.currentPosition property of the player. Send this to the Value property of the progressbar. Here is an example: namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click( object sender, EventArgs e) { if (openFileDialog1.ShowDialog()== DialogResult .OK) { ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Model Collision Detection
Say I had two models loaded from file, a building and a character. I want the character to be able to walk around the building (up ramps etc.) and of course not be able to walk through the walls. I notice that all meshes loaded from file having a Bounding Sphere property which can be used for collision detection, however, the character will never be able to get near the building if I use that approach. Is there a way to create complex collision shapes based on the mesh data Or do I have to export the building as many seperate meshes I think the vertex buffer can be used for this as well, although, I can't seem to find a way to read the vertex buffer from meshes loaded from file. Any suggestions on how to accomplish this would be great. ...Show All
Silverlight (formerly WPF/E) Linux support?
Having support for Mac, Firefox, Opera and Safari is terrific news for WPF/E. The elephant in the room though is Linux support. If Linux were supported in the next CTP, this would be unstoppable. --Oren Hi, I got the information from Microsoft Germany that Microsoft will listen to the developers and end users. If there is a big request on supporting Linux they will be very open to build a plug-in for Linux. My hope currently is that Windows Mobile will be the next that will get the plug-in. Michael ...Show All
SQL Server How Do you compress filegroups?
I would like to save some disk space by compressing filegroups with historical data. But how do I go about doing that I did the following 1) I set the filegroup as read-only 2) Detached the database 3) started compressing each file in the filegroup using the compact command from the command prompt 4) Attached the database But, I ran into out to of system resources when compacting a large file (50 GB) on a box with 12 GB RAM and 2 Dual Core Procs ( SQL2K5 Ent Edition on Win2K3 Ent Edition). Is there a better/more efficient way to compress a filegroup Thanks Saptagiri Tangudu PNT Marketing Services you can use compressed NTFS drive to store the read-only file group (s). Please ...Show All
Visual C++ Error message PSAPI.DLL
I am getting a error pop up saying Get Process Image file name w. could not be located in the dynamic link library psapi.dll What should I do to fix this. April Does anyone know whether this DLL is required to be distributed when installing on Win2K/XP In other words, does psapi.dll is part of Windows 2K/XP installation Thanks, Irit. ...Show All
Smart Device Development Making existing MFC application DPI aware...
Hi Guys! (These are probably trivial questions for the MFC Pros, but after searching 2hours in the MSDN library i thought it is worth to post a few questions ;)) I am having some problems making an existing MFC application DPI aware. --- Question 1: I am using SHGetUIMetrics to get the current system font size and create an "application font" in InitInstances of the application. I then use a public function to get the handle to the font in the various classes and dialogues that need to be DPI aware. Well not sure if this is really safe in types of encapsulation, but it's working. So now the guide says i have to register the metric changed message: WM_SH_UIMETRIC_CHANGE = RegisterWindowMessage(SH_UIMETRIC_CHANGE); and handle it i ...Show All
Visual C++ inline assembly functions
Hello, either I am missing some small stupid thing or there is an interesting bug in the way Visual C++ 2005 passes parameters to a function. Any help would be wonderful ^^. The following is the code I have at the moment. It simply reads in 3 values and sorts them least to greatest. According to what i know of how variables are passed in a function call, the top of the stack should have the return address followed by the variables passed to the function. When I do this however the passed in values and the top of the stack are several hundred bytes away from eachother seperated by junk 0xCC word values. #include <iostream> using namespace std; void asmSortThree( int& , int& , int& ); void main() ...Show All
Microsoft ISV Community Center Forums Office 10 \ winword.exe runtime error
I have downloaded the service pack 3 but I'm still encountering the problem when I try to open MS Word. MS Excel, MS Outlook , MS Powerpoint & MS Viso all work fine. Any time I try to open MS word I receice a Box vissual c++ runtime library. This application has requested the runtime to terminate it in an unusaul way. Microsoft Office\Office 10\Winword.exe. Hey Guys I would again suggest the same steps... Thats the best and the only solution for this problem. Well this time I would be giving you guys direct links to the microsoft knowledge base articles as well as the steps and I am sure that it will help you out. A. Try these steps 1. Click Start, and then click Control Pane ...Show All
Software Development for Windows Vista Please help! Very strange bug.
Hello, everybody! Need your help. Project, which I work on, is almost done, but some strange bug has occured. Please look at the workflow (it is a short version of 1 of the 4 workflows, used in a project - all have a same "header" - while+listen+delay): http://johnweaver.russia.webmatrixhosting.net/916.jpg It worked fine and showed no problems for about 8 weeks, but "magic sequence" was discovered, when workflow suddenly stopes on a WriteStatus1 CodeActivity and delay (set for 5 seconds) simply doesn't works as it should - WriteStatus2 CodeActivity never gets reached. When such situation occures simple restart of workflow helps. Looks like problem with listen+delay activities. Is there such a known bug ...Show All
Gadgets attachElementBindingSync
Can anybody explain what is this binding(Web.Bindings) all about and when to use "attachElementBindingSync" method Thanks Thanks ToddOs for your reply...I understand "bindings" little bit now.... But I am still confused when can I use my own bindings using "attachbindingsbysync". I would definitely like to see more examples if you can provide. ...Show All
SQL Server Custom Data Mining Functions
I would like to write a custom mining function, which takes a string, queries the database, and returns an answer based upon those queries. So the basic function is then: [MiningFunction("Performs Foo")] public string Foo(string param) { // process parameters // query database // calculate answer from query results // return query results } And is executed from the client using: SELECT Foo("X Y Z") FROM FooModel This arrangement is so that resource-intensive calculations are performed server-side. My question is: what is the preferrable method for executing the database query from within the custom mining function Custom mining functions are not actually ...Show All
SQL Server Connect to SQL Server on a machine on another network?
Hi, I am hoping you will be of assistance to me and provide a little advice on what exactly is possible using SQL Express / SQL Server 2005 with regards to remotely connecting to a server. I am a final year undergraduate student studying computing sciences in the UK. As a final year project I am attempting to create a client-server database, where the client (a WM5 PDA) can connect to an SQL server hosted on a different machine (a PC). However, I must be able to connect to the server when the PDA is being used on any Wi-Fi connection. Basically I want the PDA to be able to connect to a database kept on the PC at home when you're out and about using the PDA's wi-fi. Is this possible If so, could you explain in 'dummy' terminology h ...Show All
Visual Basic MaskedtextBox Question
Hello. A question please. I use a maskedtextbox to entry a decimal data in my table. For ex: 12345.67. When I save the data in my table I use the convert function to convert from maskedtextbox.text to a decimal data, that works fine, but when I want to recover the decimal data and put it in my maskedtextbox, I have problems. how can I convert from decimal data to a maskedtextbox to see it fine Thanks... Thanks, but it's not exactly what I want. I recover a decimal value from a table, then I want to show it into a maskedtextbox (mask 999999.999). ...Show All
