Answer Questions
XaiterRetiax std::string.compare() bug?
Can anyone confirm that this is a bug: std::string s1( "Mytest" ); std::string s2( "Mytest1"); if ( s1.compare( 0, 6, s2 ) != 0 ) return false; I get a result of -1 while I think it should be 0. The workaround is listed below which returns the expected value of 0. if ( s1.compare( 0, 6, s2, 0, 6 ) != 0 ) return false; Hi, I guess your problem is to ...Show All
Saravanan.W.S Radio Button Problem
I have 3 radio buttons in my Dialog and it's in a group, i have on click event(OnRadio1) for first radio button( ON_BN_CLICKED(IDC_RADIO_ONE, OnRadio1) ), problem is that when dialog box pop's up OnRadio1 is called many times and then dialog will appear. Please help me. Pramod Just for testing purpouse i have created sample project i will tell the flow. ...Show All
Martin Douglas Add forms at run time in VC++
Hi , i need to add VB forms at run time in VC++ .. how to go about it I got one artilce , it say sned to check DaeDoe Forms in components in VB , but could not see that check box . how to add the form at run time I thought your VB form was called DaeDoeForm. If your form is not called DaeDoForm, what is it called then What version of Visual Basic/C++ are you running Jayender .v s w ...Show All
Sangmin.lee C2002: invalid wide-character constant after moving to July CTP of VS2005 Beta Team System Edtion
The following code fragment from a header file compiled alright with Visual Studio 2005 Team System Edition Beta 2 (from DVD), but when I installed the July 2005 edition, I now get a compiler error: C2002: invalid wide-character constant Any sugestions as to what could be the problem Thank you. -------------------------------------------------------------- #ifdef _DEBUG #pragma comment ( lib , _DNT( "AcGe17d.lib" ) ) &nb ...Show All
avjrb LPSTR from a std::string
Hello, I want to get a LPSTR out of a string that I have created - this is to be used in a "createprocess" function which apparently dosn't like to use LPCSTR. The code that I have looks like a long hand way of doing it. This does seem to work but is there a better way of doing this string spawnCommand = somestring; char spawnChar[1000]; for(int i=0;i<spawnCommand.size();i++){ spawnChar =spawnCommand.at(i); } spawnChar[spawnComma ...Show All
mlong aspell compilation problems
Hi, I tried to post on the forum but it kept coming up with an internal error so i was wondering if you could help me with the following:I have recently been trying to compile aspell (a spell checker written in c and c++) in visual studio .NET (2003) which has taken forever but i managed to get it to compile a dll now. When i come to add this dll file into another project which will be using the methods from this dll it keeps giving ...Show All
santamonicali Unicode to MBCS conversion in order to pass string to ISAPI calls
Hi, I have got a query related to 'Unicode to MBCS conversions'. First of all a brief information about project. I have got 2 projects, 1 is Unicode (Non-ISAPI) and other Non - Unicode (ISAPI). I need to pass the values from project 1 to project 2. Then this is going to be sent to ISAPI which in turn display the value in the browser through ASP page. I am using pseudo resources in which some characters are visible correctly ...Show All
zeltera DirList ActiveX usage problem on localized VS .NET
Hi, As I know, VS uses DirList ActiveX component for showing some properies (see VC++ Linker's "Additional Directories" for example). In our integration we used the same approach. We crteated a dialog with DirList ActiveX on it. Here is the fragment from rc-file (part of DIALOGEX section ): CONTROL "",IDC_SLE_PATHLIST, "{442502BA-D873-4a37-9F19-3E38C42A3DDB}",NOT WS_VISIBLE | WS_TABSTOP,6,68,190,59 Gui ...Show All
DavWein 2 timer
what happens if 2 timers ticks at the same time i'm using visual c++ .net 2003 (win form .net) Well seeing as how in a computer's world there is only one task running. Currently I have 10 browser windows open, listening to music, running 3 instances of vs.net 2 of which are running services. All of these things are doing one thing or another at the same time. To the computer it's doing one thing at a time. The operating system just switch ...Show All
JimStearns vc++8.0 bug: access violation upon call of any CImageList methods
I have sucessfully imported and compiled a complex MFC 6.0 project from vc++6.0 into vc++ 8.0 (MFC 8.0). It contains several subprojects (libs and dlls). In vc++ 6.0 those project linked MFC6.0 statically and after I imported it to vc++ 8.0 I set the linkage of MFC8.0 to "shared". However when I try to compile and link the project in vc++ 8.0 in release mode (debugmode works fine) I get an acess violation in afxcomctl32.inl. This happnes w ...Show All
My Name is Adam Internet App
Hi I would like to create an application using Visual C++ to connect to the internet, then a web page, and then search the page and extract information. Trouble is I am fairly new to this and dont really know how to start, so hoping someone can point me in the right direction. Cheers Jon I am actually using .Net. Sorry for the mistake. Where would be best to post Cheers Jon ...Show All
RiteshPatel builds failing due to proxy file not regenerating for different platforms
I have a project that has both win32 and x64 platform targets. The project creates the proxy file from the idl file. However, when I do a batch build, some of the targets fail to build because the proxy file is not being generated when each target is built. Since the proxy file contains platform specific include guards, and it is not being regenerated for each target, builds are failing due to undefined symbols. I have changed the top-leve ...Show All
boer Can not seem to build my VS2005 solution via the commandline...
Hello All, I just started to use the VS2005 Beta 2 and I am trying to build my solution via the command line and cannot seem to provide a valid command line syntax. Unfortunately I can not locate any samples or help on this subject. Any information you can provide will be greatly appreciated. Thank you, -Jim --------- Example: --------- Previously under Microsoft Visual C++ 6.0 the syntax was >msdev MY.dsw /useenv /make ...Show All
VisuallyImpaired arrow key held down
when i press and arrow key and then let go an event occurs (OnKeyUp) and my listbox moves up or down one. is there an event so that when i hold the arrow key down it scrolls fast through my listbox how would that be done maybe a timer to see how long i held the key down so instead of the OnKeyUp it should be OnKeyDown i am not sure how to capture how long i have held the key down and have it scroll while t ...Show All
Arto B Reading Bytes In IStream Object
I'm saving an image in IStream Object as following long len = GetLen(hBitmap); LPBYTE lpBits = (LPBYTE) GlobalAlloc(GMEM_MOVEABLE, len); IStream *pStream; HRESULT res = ::CreateStreamOnHGlobal(lpBits,TRUE,&pS tream); if(res == S_OK) image->Save(pStream,&encoderClsid,NULL); i need to read the pStream byte-by-byte, how can I do this Yes! RTFM (Read the fine MSDN) :-) http://msdn.microsoft.com ...Show All
