alphonso's Q&A profile
Visual C++ How to LPCTSTR Convert to char *
How to LPCTSTR Convert to char * thank :) In a non-UNICODE build, LPCTSTR is const char*, in a UNICODE build is const wchar_t*. Even if you want to convert from LPCTSTR to TCHAR* it's still not ok, because you want to remove the const specifier (use const_cast for that). So, why do you want to do this ...Show All
Windows Forms Redirect console I/O to GUI
Hello, First of all i whould like to apologize if it isnt the correct place to post my question (my first post on MSDN forum). I was tryig to make class based on : http://support.microsoft.com/kb/q190351/ To redirect input/output from WinAPI/MFC to console application, trouble is: I didnt wrote the console app., therefore i cannot use fflush(NULL); after every single line/output, and without it pipe example given wont work. I know it can be done other way, so i need your help pointing me in right direction here Thanks in Advance. I also have same requirement. Please help. If the solution to this has been found then please let me or publish it here.Regards,Lata ...Show All
Microsoft ISV Community Center Forums Getting Data of HTML page
Hi everyone, Please help me out reading a certain html page and import the details to an excel sheet... Is it also possible for me to pass on a value to an html Thanks, music_at_ulan ...Show All
Visual Studio 2008 (Pre-release) 3d Mesh Collision
I'm working on a simple game in WPF, and I would like to know when to meshes (ModelVisual3Ds) collide. For example, if a character shoots a rocket, I want to know if the rocket hits something. I thought that one of the HitTestResult classes may be the answer, but I'm not so sure. In v1, the WPF does not have a feature for general collision detection, but ray hit testing may be adequate for your scenario. The code to perform the hit test will look something like the below: VisualTreeHelper.HitTest( _mySceneRoot, /* filter = */ null, new HitTestResultCallback(HTResult), new RayHitTestParameters(_rocketPosition, _rocketDirection)); Your HitTestResultCallba ...Show All
Windows Forms Threads and how it can or should be done
Lets say I have a database that gets a STORED PROC call to check if I have a job to process. I need to have a max number of threads that can run at one time(One per job) These jobs take quite a long time. If I have a variable of maxThreads lets say is set to 5.Then lets say I have 25 jobs.I need this to start the first 5 threads, while always checking against the max thread count and if lets say thread 5 finished but 1 thru 4 are still running then only add 1 thread to equla our 5 (Number of max threads allowed)..Is a thread pool the way to go ..or what......I have heard of WAIT for Multiple objects in C++..but am unsure how to do this.I know that I cannot use a timer to do the check for work due to a timelapse requirement...Any ideas..... ...Show All
Visual Basic how to access io space?
I mean access io space without using the third party DLL files, such as DLportIO.dll, etc. (only using .NET framework would be appreciated) Hi, For files etc type.>> Imports System.IO at the top of your code window. Regards, S_DS P.S. For serial port communications or parallel port use that's another matter. ...Show All
SharePoint Products and Technologies Sharepoint Backup Script
I'm trying to figure out how to backup the Windows Sharepoint Services sites from the command line, but I am finding the documentation online to be lacking. here is the line I'm trying STSADM.EXE -o backup -directory Z:\Internal Operations\Information Technology\Backup\SharePoint\BackupFiles -backupmethod full which just returns 'Command line error.' I think it might have something to do with the spaces in the name, so I tried saving it to STSADM.EXE -o backup -directory Z:\Archive\test\test2 -backupmethod full and it kind of works, except that there are errors. The log file says: [2/26/2007 4:07:10 PM]: Verbose: Using directory: Z:\Archive\test\test2\spbr0000\. [2/26/2007 4:07:10 PM]: Verbose: The backup/restore process included the foll ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Please Add Non-Generic DrawUserPrimitives and DrawIndexedUserPrimitives methods.
I posted this request in the Suggestion tool as well. Btw- where is the link to actually view the contents of the Bug reports, and Suggestions You'd think that would be handy from the connect.microsoft.com site, but I can't find it. Add the method: Device.DrawUserPrimitives(Type vertexType, PrimitiveType type, int count, Array vertexData); and a similar non-generic method for Indexed primitives. I have a rendering system that captures rendering calls, and retains the call information. Later on, it sorts all of the calls in order to minimize state changes before execution. This is a very commen scenario. IT IS VERY DIFFICULT to call generic methods (in a generic fashion) when you only know the vertex type, and have a un-typed array. For ...Show All
Visual C++ How to filter unwanted character in my string? Allow integers only
1. I have a string variable holding integers value. 2. I get error while I tried to save into database. Because the column in the database is integers 3. Error exception also crashes the whole application TRY { if (db.CanTransact()){db.BeginTrans();} db.ExecuteSQL(sqlQuery); if (db.CanTransact()) {db.CommitTrans();} } CATCH(CDBException, pEx) { if (db.CanTransact()){db.Rollback();} TCHAR szError[2048]; pEx->GetErrorMessage(szError,sizeof(szError)); AfxMessageBox(szError+sql ...Show All
Visual Studio Express Editions Browser waiting
I'm trying to put together a relatively simple script for a webbrowser game that provides a service in-game by interacting with the site and doing some stuff with the material within it. I have gotten around most of the problems of how to make it work, but there's one thing that I don't know how to do properly: making the script wait for the browser. In short: I'd need some way of making the script check that the browser has finished downloading the page before attempting to do anything else. Here's a snippet of what I currently have: Public Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles MyBase .Load WebBrowser1.Navigate( "http://www.WEBSITE.com" ) End Sub ...Show All
Smart Device Development Dialog background won't erase.
I have a dialog the I have created in the resources. In this dialog I create some dynamic child windows like this: m_pSuperTR1Ctrl->CreateEx(0,L"STATIC",L"", WS_CHILD|WS_VISIBLE|SS_CENTER, ctrlTr1Rect, this,1240); then I m_pSuperTR2Ctrl->ShowWindow(SW_SHOWNORMAL); and m_pSuperTR2Ctrl->ShowWindow(SW_HIDE); but they don't hide, it looks like they become part of the background and if an original control on the dialog updates then that part of the dialog updates leaving fragments of the dynamic control visible. How do I get the dialog background to refresh Thanks, Hi, I can't see the behaviour that you have mentioned here with the amount of i ...Show All
Visual Basic Full Screen
How would i make it so the form is automaticly stretched to the biggest it can be in visual studio and when the program runs. I beleive that just starts it in full screen, i want my ide(V. Studio) to resize my form to full screen for a 1024/768 resolution computer. ...Show All
Visual Studio Recent Projects
I have visual studi 2005 on my computer.. I have a small problem with the setup.. I donot see most recent projects in startup.. I have start page enabled.. and I can see the projects under registry also.. HKCU\Software\Microsoft\VisualStudio\8.0\ProjectMRUList But When I open visual studio, I don't see any recent projects.. Thanks in advance. Hi I also face the same problem I have reset the VS setting still the recent projects are not displayed in the start page "Recent Project pane". Is there any solution for this Regards Bijaya ...Show All
Visual Studio bing handle error
heya im making a appoitnment booking system as part of my college project however i made the first version at home, then copied it to a usb key, then transferred it to the school system then back again, and now it doesnt work. i get an error stating: error while trying to run project: unable to start debugging the binging handle is invalid can anyone help ! See this post for the answer. This is also covered in the FAQ http://blogs.msdn.com/habibh/archive/2005/11/10/491572.aspx John ...Show All
Visual Studio Team System Removing User option under "Assigned To"
We have recently removed the permissions from an employee that is no longer with the company (he doesn't have access to TFS), but each individual in various groups still have the option to add him as an "Assigned To:" value. Is there anyway to keep the history in the database as to what he worked on while removing him from the option in the field On a related note, you can give the full (expanded) membership of a group (including the "Team Foundation Valid Users" group) with the TfsSecurity.exe tool (unfortunately, only installed on the AT). Running From the Tools subdir of the AT install dir, you can run (for instance): tfssecurity /server:http://jmanning-test:8080 /imx "Team Foundation Valid Use ...Show All
