pgems's Q&A profile
Windows Forms Changing window size dynamically
Hi! I have a question about a window form in visual c++: I have an application which takes as parameters two integers, the width and the hight of a form to be created; moreover, the form contains a panel, which has to be resized too, to fit the hight and the width of that form. The problem is that even using commands like: this->Size = System::Drawing::Size(width,height); this->panel1->Size = System::Drawing::Size(width,height); (located in the constructor, after InitializeComponent() command) the window still has the same dimensions as shown in the visual c++ design window (I mean "form1.h[Design]"). Perhaps there is some option to be set Or maybe something to be changed in the toolbox Thank you! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Video/Animation Playback
Hi, I'm currently writing a library (for XNA/DirectX) for animation/soundless video playback, and I have a few design questions for the pros out there if you don't mind answering them : I'm having my animation class inherit from game component, and update the frame depending on game time in the overriden Update method, and render it in the overidden Draw method, but even when I preload my textures to render, playback is choppy. Not sure exactly why, but I notice this only when I have significant number of frames (I noticed it with 100 frames, but *not* with 10/15). This problem may be linked and solved by the 2nd point, so please read on. When I preload all the textures for the frames in the animation (and the no. of frames ...Show All
Visual Studio Express Editions open new form
i need the open new form code. it looks something like this: "Dim clone new form1" i dont follow that. it should open it. in addition to the open and save file dialogs, you could apply a filter to only show certain file types http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemWindowsFormsFileDialogClassFilterTopic.asp ...Show All
SQL Server How to debug stored procedure in SQL server 2005
Hi all, I really need to know that " How to debug stored procedure in SQL server 2005 " please help me to solve my problem regards sujithf Try the following: open visual studio .NET go to server explorer create a connection to your database right click on the stored procedure you want to debug and select "Step into stored procedure" Reference: http://support.microsoft.com/kb/817178 Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
Visual Studio Express Editions C++ compiler
Hi all, I'm a newbie to VC++. I have installed VC++2005 Express edition. Platform is WinXP. I want to write C/C++ programs . So can anyone please guide me in writing the programs . What are the initial settings I need to do How to compile To check whether all Libraries of C/C++ are included or not How to debug How and where to see the outputs Sorry, for the inconvenience. Please help me out. Thanks a Ton in Advance. Regards, Raghu Read the visual c++ help files for instructions on using the compiler and setting options, also check the following websites for some general C++ tutorials: http://www.uow.edu.au/~nabg/ABC/ABC.html http://en.wikibooks.org/wiki/C%2B%2B_Programming http://w ...Show All
Microsoft ISV Community Center Forums Hiding the Database Window
Hello. I have been developing a reporting system in Access, and want to hide the database window before distributing the file to the users. I've tried using the settings on the Startup dialog box, and I've also tried setting the "StartupShowDBWindow" property programmatically via VBA, but nothing happens. I don't get any error messages, but the database window stays visible. Any suggestions Thanks Try this: DoCmd.SelectObject acForm, , True DoCmd.RunCommand acCmdWindowHide Put this code somewhere in the start up, or in the initial startup form. This code will actually hide the database window at anytime. ...Show All
Software Development for Windows Vista XPS not working correctly...
I thought the whole purpose of XPS was the perfect preservation of the printed paper... Can someone explain to me why my XPS does not print the same as my docx file. I have a DOCX file that I converted to XPS using the Office plug-in. The XPS appears correct in the XPS viewer, but when I print the file it does NOT keep the margin correct. Can anyone explain to me wy XPS is not working as described My docx and xps file can be downloaded here But you need to install Microsoft office 2007 only can use the library right I was wondering if there is any office plug-in library can be used by us without installing the Microsoft office 2007 or Microsoft office. I will try to print the XPS file ...Show All
Windows Forms Using Windows Forms for an intranet application
Hi all I have to develop an intranet database application for my final project and I'm thinking of using the .NET technology. But I have limited knowledge in this and I am more familiar with Java. So my question is should I use Windows Forms or ASP.NET Which will be more easier to work on an intranet and faster to develop It also involves some parts that require right-to-left language when displaying data and generating reports. Any existing application frameworks out there that can help me jumpstart Thanks :) Hi, The difference between WinForm and WebForm is that WinForm will be compiled as an .exe file and a WebForm will be compiled to a .dll together with .aspx pages. The WebForm needs to be ho ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mesh going on a landscape
How can I make it that my player mesh in walking on my landscape mesh The Player should walk up if the world is raising up and walk down if the world is falling. Thanks Hi, loading a XFile for use as a terrain it's okay if you extract the vertex information from the vertex buffer after the XFile is loaded. Then you can perform the required calculations to determine the height of the terrain at the position that your player is walking on. These calculations include finding the closest vertices and interpolate their values to produce a smooth height value, which is the Y position that the player should has his feet at. About getting the vertex data: The thing is I never really used XNA so I can't give you specific examples o ...Show All
.NET Development Executing a method in a given thread context
I'm porting win32 code (non visual component or "user control") to .NET. In win32 code, I was using Windows messages between threads to signal events form a worker thread to another thread. This was done to make sure an event handler was executed in the context of the thread having created an instance of the component class. The [non visual] component class use a hidden window to receive the messages from the worker thread it created. Now I'm porting this code to .NET using C# as language. I'm using the socket class and use the asynchronous operation, for example, Socket.BeginAccept to make the runtime use a thread to wait for incomming connections and call my callback function when a connection is available. From the ca ...Show All
.NET Development Timer doesn't seem to last forever
Hello. I have a timer in my app that fires every 15 seconds calling a function. It appears that after about 8 hours of running the timer stops calling the function even though the program continues to run. I define the timer in my main class like this: private System.Timers.Timer timer = new System.Timers.Timer(); Then in one of my init functions I set it like this: timer.Interval = 15000; timer.Enabled = true; timer.Elapsed += new ElapsedEventHandler(UpdateStats); timer.Start(); The function UpdateStats is called for about the first 8 hours. Then it isn't called anymore. To confirm that it isn't called anymore I have a a file being written to in the function that appends the current to the file. After 8 hours the f ...Show All
Visual C++ using of template class gives error,why?
Hi, I sifted my c++ code from VS6.0 to VS 2003. while compiling I am getting errors. this is the code: template < class T> XuSingleton<T>::self_type* XuSingleton<T>::_instance = 0; getting following error: d:\frontier_source\xutils\XuSingleton.h(153) : warning C4346: 'XuSingleton::self_type' : dependent name is not a type prefix with 'typename' to indicate a type d:\frontier_source\xutils\XuSingleton.h(153) : error C2143: syntax error : missing ';' before '*' d:\frontier_source\xutils\XuSingleton.h(153) : error C2501: 'XuSingleton::self_type' : missing storage-class or type specifiers d:\frontier_source\xutils\XuSingleton.h(153) : error C2065: 'T' : undeclared identifier d:\frontier_source\xutils\XuSi ...Show All
Smart Device Development Shell_NotifyIcon icon invisible when building with VS 2005 for PPC 2003 target
I'm using Shell_NotifyIcon to put a icon in the task bar status area at the bottom of the screen. The code works correctly when I build and deploy to a WM5 device using VS2005. You see the icon in the bottom of the screen and if it is clicked my applicaiton gets notified. When I build and deploy the same code and project to a PPC 2003 device the icon is invisible. I have verified that it has been place on the task bar, if you click where it should be my application gets notified. I verified that Shell_NotifyIcon is returning true, implying success. I verified that the icon handle is not null in the NOTIFYICONDATA structure. The icon I am trying to use includes 16 X 16 16 color and 32 X 32 16 color images. I tried adding 256 color ...Show All
Visual Studio 2008 (Pre-release) Adding controls & 3D in to WPF/E application
Hi , Is there any method to add controls in to My WPF/E application it is now supporting Canvas only When MS going to give support to host controls as well as 3D (ViewPort3D)in to WPF/E Regards, Joy Hi Joy, There was a technical chat a few days ago about WPF and WPF/E, you can find the transcript here : http://www.sneath.org/tim/06_1220_msdn_wpf.doc From what i remember : Canvas is the only supported Panel. Not sure there will be others in the future. MS is working on adding basic control (TextBox, Checkbox, ...) in the next CTP or two. There's no plan, since the beginning, for 3D in WPF/E. If i remember correctly it's because all render is software. Guillaume ...Show All
SQL Server How to rank an union of two result sets?
I am new to SQL Server Integration Services. I need to help here. If there is only one result set, I could get rank info by putting DENSE_RANK expression inside of my select. My case is that I have two data source. After union of them, I need rank the result set and save result set plus rank info into the destination. I tried to use Derived Column component by using expression DENSE_RANK() over ( order by columnName ). But it does not like it. Does anyone know how to achieve this Thanks! Jun Fan wrote: Thanks for the info. Do you know where to get the Conchango Runk transform conponent At the bottom of that post, there is an "Attachment" link. Click on that to get it. ...Show All
