rternier's Q&A profile
Visual Studio Express Editions How to open a form when click a button
I'm trying to open a form when I click a button on my main form...I made the function and I tried to use my knowledge form VC++ 6.0 but it doesn't work.I added #include "Discovery Browser Calendar.h" in Form1.cpp and also #include "Form1.h" in Discovery Browser.cpp and I wrote in the function I have made in Form1.h: DiscoveryBrowserCalendar cal; cal.Modal; and it doesn't work...I don't know what to do.... DiscoveryBrowserCalendar cal; cal.ShowDialog(); or DiscoveryBrowserCalendar cal; cal.ShowDialog(this); or DiscoveryBrowserCalendar cal; cal.Show(); if you want the form to be modeless. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Absolutely positioning a basic effect on the screen
Hello I am making a game that uses 3D modelling - it's very basic - I started off with the spaceship example in the GSE help. Now I would like to define an area of the screen - a rectangle that I will eventually use as a map. I want to draw this rectangle onto the screen. I have taken the example code from the help, the example is called " How to: Draw Points, Lines, and Other 3D Primitives", and can understand how that code works. Problem is, I have added this to my spaceship code and it draws the rectangle onto the page relative to the centre of the screen. What I mean is that the camera follows my spaceship as it flies around the asteroids but the square is always in the centre of the screen. Here is the Draw funct ...Show All
Visual Studio Detect when a value changes
What I try to achieve is: I have 2 breakpoints and between those 2 break points, I have a variable whose value is changed. I want to detect in which line the value changes. I think in vb6, you were able to put a watch with condition and whenever that value changed the debugger stop in that line. Ex: 1 dim x = 0 2 ... 3 … 4 … 5 … 6 … 7 x =55 8 … 9 … 10 … 11 … 12 … So I have a breakpoint at line 2 and after this point I want to capture in which line x value is changed. It should return line number 7. How can I do this in Visual Studio 2003(VB/ASP.net). Thank you very much in advance. Selim What you need is a data breakpoint. Unfortunately, they only work when debugging unmana ...Show All
.NET Development tell windows to run C# app when scan button on scanner pressed
I currently have to write a C# app that uses a .NET Twain library to acquire images from a scanner. This works fine. But what I would like to do is when the customer presses the scan button, my app automatically gets called by windows and executes. Is this possible and how do I tell Windows to do this soconne, I am researching how to retrieve images from a scanner. Could you share some of your knowledge in this area I am not an expert on C# .NET and need a little help. Basically, I need to simplify the GUI to the point where a button is pressed and the app gets the images and saves them to TIFF files. Any help would be greatly appreciated! Fubak ...Show All
Windows Forms Program Warning problem
Hey, I found this really cool Example on The Code Project website that was a MS Word/Exel like program, and for the recent documents list thing I have to have this line of code: private static extern bool PathCompactPathEx ( StringBuilder pszOut, string pszPath, int cchMax, int reserved); I highlighted green the part that has the warning...Below is the warning and this warning wont let me run my project until it is fixed...: Warning 1: Method, operator, or accessor 'Notebook_Pro.Form1.PathCompactPathEx(System.Text.StringBuilder, string, int, int)' is marked external and has no attributes on it. Consider adding a DllImport attribute to specify the external implementation. What do I do to fix this T ...Show All
Visual Studio Team System BUG - also in CTP7 - VS Error Window does not refresh properly
Hi, I have found, that with certain types of errors the errors shown in the errors window are not refreshed / deleted even if the cause has been eliminated and the project is rebuilt without errors. The original error is still there although the project builds and deploys successfully. This seems to occur when an "out of ordinary" error occurs (ie. some of the errors that occured in the solution view because of file conflicts, errors with inconsistency of the project). In this particular case I got the same conflict as Juergen did with a data generator. In fact, I think this not refreshing occurs most often with the data generator. The error I had is described in http://forums.microsoft.com/MSDN/ShowPost.aspx P ...Show All
Silverlight (formerly WPF/E) WPF/E vs. XBap
Hello Community! I was recently trying to evaluate why there is seemingly two ways to write web-based applications with WPF. Am I way off Can anyone explain to me when I would use an XBap over a straight up WPF/E application Thanks, Alan Shan McArthur wrote: As it stands, neither XBAP or WPF/E are suitable for integrated web development. Indeed. It really seems as if Microsoft has gone out of its way to make sure they don't have a competitive rich-client development environment. XBap's hijack your whole browser and can't even read your session cookies. Meanwhile, WPF/E is just an anemic version of Flash with no Flex components. WPF/E's ability to communicate with browser obje ...Show All
SQL Server reseeding temporary tables or table data types with identity column
Hi, I have a indexing problem. I have a sequence that needs to has a index number. I want to use a table data type and have a working sample BUT I cannot reseed the table when needed. How do I do this. This works only for the first ExitCoilID then I need to RESEED. Here is my code: DECLARE @EntryCoilCnt AS INT , @ExitCoilID AS INT , @SubtractedFromEntyCoilCnt AS INT DECLARE @ExitCoilID_NotProcessed TABLE ( ExitCoilID int ) INSERT INTO @ExitCoilID_NotProcessed SELECT DISTINCT ExitCoilID FROM dbo . TrendEXIT where ExitCoilID is not null and ExitCnt is null order by ExitCoilID DECLARE @ExitCoilID_Cnt_Index TABLE ( E ...Show All
Visual C++ Problem with CString Variable
I am using a dialog class which is derived from another generic dialog class which itself is derived from CDialog This class contains many CString varibles and it is working fine. Later I added another CString variable. Then also the corresponding dialog is properly opening(Modal Dialog), but after closing the dialog I am getting the following Assertion: Run-Time Check Failure #2 - Stack around the 'dlg' was corrupted When I click Retry it is taking me to the next statement from where the dialog is initiated using DoModal() method. Here I found one strange behaviour. If I put any char , int or float variable before this CString member variable I am not getting any error message. But If I put double variable I am get ...Show All
.NET Development Can't get installed printers in server.
Hi all, I am developing windows application with SOA architechture. I need to get the printers whcih are installed in the server mechine. I am not able to get it. Please help me out on this issue. Thanks in advance Thennavan Ramalingam. Thennavan, What exactly is the problem you're facing .... could you show us your code too see it there's something wrong Rgds Rodrigo ...Show All
Smart Device Development unable to uninstal google earth any ideas please (learner)
can anyone help me to uninstal google earth,i have tried most ways, none work, thanks..jomanco ...Show All
SQL Server Anyone ever tried this one?
I have an audio conversion and tagging project I'm working on. I'm working with .wav files which become .mp3. I have been able to automate tagging of the mp3 using an external flat file. But this process requires that I fire off a batch file from a DOS window. I use two programs. One is called Razorlame v1.1.5 and the other is called Tag. There are several other things left for me to figure out. 1. Schedule the batch so that it runs on it's own based on a schedule 2. Somehow get SQL or Access (which ever is better) to talk to the "Tag.exe" program that does the actually conversion but on the mp3 server. 3. Completely automate the process and be able to convert multiple mp3 files based on schedule, batch file and software. Has any ...Show All
Visual Studio 2008 (Pre-release) DateTime to Int64
user error and mismatch datatype in the database... thanks. Cool! To debug sync issues, the profiler is your friend. You can manually execute the queries generated by the adapter builder on the server and see what is going on. Thanks ...Show All
Visual Studio Express Editions End, Stop, Application.exit coming up with compile errors..
Yes, I know this is probally a noob question, but...Does anybody know why end; , stop; , and application.exit; wont' work It comes up with a compile error, would what I have (or don't have) in Using effect anything. I'm just moving from visual basic 2005 to C Sharp, and I need enough knowledge to be able to convert one of my big vb games to C sharp. So right now I'm just trying out different statements, and stuff, seeing how it works with C#. Application .Exit; Error Output: Error 1 Only assignment, call, increment, decrement, and new object expressions can be used as a statement. C:\Users\Shaun\Documents\Programming\Visual Basic\Current Project(S)\FirstProject\FirstProject\ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. md3, 4, 5, quake model importer
Has anyone seen a content pipeline importer for md3 (quake models) or later md versions (md4, etc.) I've kept up with most of the major blogs and community sites (and I've been keeping my eyes open for this for since the pipeline was released), but I haven't seen anything developed yet. I could probably convert my md3 models to .x files, but if I could find an importer that maybe already has the standard md3 animations mapped, then it would be much easier :) thanks, http://www.ziggyware.com/weblinks.php cat_id=3&weblink_id=42 Here is Delerium's source code to MD5 meshes. I beleive this was put out around Beta 1 time so you will probably need to update it. If you do please let me know. ...Show All
