Answer Questions
Frank Buckley converting float to string and string to float
I know this is getting kinda repetitive but...how would I convert a float to a string and also a string to a float..Thanks a lot..(Code samples would be awesome). Hopefully the next version of the Standard C++ Library will include to-and-from string converters. sprintf's and atoi's look kinda ugly. The last sample uses the namespace std. Either place the code above: usi ...Show All
Ganesan Krishnamurthy Problems in System::String::Split... can't understand why this dosn't work...
I'm trying to have a system::string that is a list of arguments separated by '#' character broken down into individual arguments and placed in an array, like so CODE cli::array<__wchar_t,1> ^charsplit = {'#'}; arglist->Split(charsplit, this ->listBox1->Items->Count,System::StringSplitOptions::None); arglist2->Split(charsplit, this ->listBox1->Items->Count,System::StringSplitOptions::None); /*(I also tr ...Show All
Kevin Chua How could i pass a structure as CmdLine parameter while using CreateProcess?
Hi all, While i use CreateProcess( LPCWSTR pszImageName, LPCWSTR pszCmdLine, LPSECURITY_ATTRIBUTES psaProcess, LPSECURITY_ATTRIBUTES psaThread, BOOL fInheritHandles, DWORD fdwCreate, LPVOID pvEnvironment, LPWSTR pszCurDir, LPSTARTUPINFOW psiStartInfo, LPPROCESS_INFORMATION pProcInfo ); I want to pass a structure as second parameter(pszCm ...Show All
LFDIII Code used to clear text boxes
im new to c++, and i would like to know the code that you need to use to clear text boxes. Looks like the main issue here is that you do not seem to know how to associate an event handler method with a specific menuitem event. I am typing this off memory - but in the designer, select the menuitem and in the properties window, you should select the Click event. Add an event handler by doube clicking there, and in the event handler, add the ...Show All
Lin Liu Jian Building Live.com Streaming Media Libraries in Visual C++ Express Beta 2
I am attempting to build the live.com streaming media libraries, and test programs in Visual C++ Express Beta 2 using the instructions given at the URL below. http://www.live.com/liveMedia/#config-windows Each of the four libraries (BasicUsageEnvironment, UsageEnvironment, Groupsock, Livemedia) and the test programs (testprogs) has a make file. The make file for the windows environment is generated using the instructions at the URL above. I ha ...Show All
Ean L. Towne VC++ 6.0 Licenses
Since VC++ 6.0 is no longer supported, does that mean my "Introductory" License which has a message box showing up everytime you run an application saying its illegal to distribute this file is no longer in effect May I give my programs to people No, you may not. The product you bought does not allow you to redistribute applications created with it. The fact that the support period for Visual C++ 6.0 ended ...Show All
Jon_Hou pow(2,31)
In Microsoft visual studio .net 2003 C++ it seems that pow(2,31) returns a negative number and pow(2.0,31.0) returns a positive number Is there a service pack that corrects this problem Thanks, Tom I’d wager good money that you are capturing the return value of pow(2,31) in an int... the return value of which is a 1 followed by 31 zero’s and that a signed int as being negative... which ...Show All
surftex Compile error C1083
Hello all, I got the following error when building a Visual C++ MFC application using Visual Studio 2003 on Windows 2000. Compiling... stdafx.cpp c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afx.h(182) : fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory Does anybody know where can I get that file Thank you, Following is the compile log: Build Log ------- Build started: ...Show All
clugsta How can I get the CheckedListBox for a Com project?
Hi, I'm developing a in process COM server to add prooperty pages to Active Directory. i'm using V.S. 2005's C++ with only the standard library. When I create the GUI resource file for the property page, there is only standard listbox availble in the Toolbox. I know that checkedListBox is availble if I were developing a window application using VC++ from the toolbox. Does anyone know how I can get that added to my toolbox for this project ...Show All
totem_pty SPROXY error "sproxy.exe does not fully support attributes." when importing WSDL, makes proxy class unusable
We've developed a webservice using C#. part of the WSDL looks something like this: < s:complexType name = " channel " > < s:attribute name = " name " type = " s:string " /> < s:attribute name = " title " type = " s:string " /> < s:attribute name = " description " type = " s:string " /> < s:attribute name = " channelaccess " type = " s:int " use = " required " /> < s:at ...Show All
BlokHead Microsoft Visual C++ Runtime Library error question
I recieve this error when I launch Internet Explorer - version 6.0 OS Windows XP Home edition 2002 Service Pack 2. Error is as follows: Microsoft Visual C++ Runtime Library Runtime Error! Program C:\Program Files\Internet explorer\iexplore.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I am not certain where to post this questi ...Show All
Tom R sqlfront.h
Hi, I'd been a VC 6 user for years. I just switched to VC 8 and found that there wasn't an 'sqlfront.h' in the ./Include folder of the VC 8 program directory. I am wondering if there're any equivalent headers I can include so that I can use the types or structs defined in the 'sqlfront.h'. Thanks Matthew PS: I also installed the PSDK for Server 2003. I am not an expert in SQL but looks like http://www.sqlteam.com/fo ...Show All
Vikram Bade Missing WM_CLOSE Message
I’m using a window created by calling the CreateWindow function. It all works fine, except closing the window. In the main loop of my program I’m using PeekMessage to get the WM_QUIT message from my message handler. This message is send by calling PostQuitMessage within the message handler whenever WM_CLOSE occures. But it never arrives. Only if I had moved the window on the screen first. Then the next WM_QUIT message arrives! What is going w ...Show All
Sumo Linking error related to manifest file
Hi, I am build my project on VC2005 Beta and get the following error: >Embedding manifest... 1>LINK : fatal error LNK1000: unknown error; consult documentation for technical support options If I build the project again, it will pass. However the rebuild will always fail. If I change the "Generate Manifest " to "No", the build always pass. Can anybody help me on this What's wrong with my project Thanks, Kevin ...Show All
Bill Hamaker Tips for speeding up debugging (stepping through code)?
I've got one particular large C++ project that, in VC 2005, when stepping through code in the debugger, it takes approximately 2 seconds for each hit of the F10 key (i.e. each line of code) to be executed. I've tried many things to attempt to speed it up: disable intellisense, renaming feacp.dll, removing all additional output windows, watch, breakpoints, etc, removing navigation bar from text editor window, disabling anti-virus on the machine ...Show All
