Answer Questions
FKy mfc42.lib
I am compiling a simple project using the directx sdi and it wants mfc42.lib , now there is a 64bit mfc42.lib but no x86 version , i have googled like crazy only 55 hits for mfc42.lib i cannot seem to dowload it from anyplace for x86. bug dropped ball any advice greatfully recived [edit] Compiling on beta 2 [Additional] The link to mfc42.lib is in AFX.H from the latest PDSK mfc and it seems that the latest AFX has some real issues with 2005 beta ...Show All
rmachin Char* dynamic allocation??
Theoretically, after use dynamic allocation we should use "delete" as below. However, I got a error message like this: **************************************** Debug Assertion Failed! Program : C:/hello.exe File: dbgdel.cpp Line: 47 Expression:_BLOCK_TYPE_IS_VALID(pHEAD->nBlockUse) **************************************** int main(){ char* s1 = new char[30]; char* s2 = new char[30]; char com[40]; cin.getline (com,40); while(strcm ...Show All
DeveloperJTM mbsrtowcs link errors
I'm using mbsrtowcs to convert a char[] to a wide, and I'm getting link errors I can't comprehend. The actual code is in a C++ library, which compiles OK, but when I use this library in a C or C++ exe I get unresolved external symbols __imp__mbsrtowcs and void __stdcall _com_issue_error(long)" ( _com_issue_error@@YGXJ@Z ). Can anyone explain what is happening here Thanks! Could you send a repro of the problem Feel f ...Show All
marclerman Where is the VC6's memory view dialog in VS 2005?
In VC6, we can view memory content at any given address by a memory dialog. But now in VS 2005, how can I view a specific address's memory content Oh, Thanks, I find it. It's a tool window now. Check "Debug | Windows | Memory | Memory Window 1-4". Thanks, Tarek ...Show All
Torns c++ compilation strategy
Well .. this is probably not specific to C++ language. It is a more general question on the requirements of including headers, etc, and so sort of basic, of compilers. I have been looking at translation units and linking, etc. I learnt that there can't be duplicate identifiers in all of the translation units combined. If there are duplicates, it's a linking error. It can be avoided by using extern keyword for all the duplicate declarations of th ...Show All
Vinay Pole linkLabel_LinkClicked
With managed C++ what would I have to type on this linkLabel_LinkClicked code in order to make my link go to a website of my choice #pragma endregion private : System::Void linkLabel1_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^ e) { } }; } from what I can see on my computer i have Microsoft Platform SDK and it is under the directory C:\Program Files\Microsoft P ...Show All
dannycaro Program terminates without finishing code
hi... what is happening when a program terminates (no error messages) without executing the rest of the code my code is attached below. The while loop does not iterate and after one iteration, my program exits. I don't know what is wrong and how I can debug... Thanks for any help. #include <stdio.h> #include <speex/speex.h> #define FIXED_POINT #define MaxFrameSize 500 #define MaxFrameBytes 500 int main (int argc, char ** argv) { &nbs ...Show All
Geof Branch How can I handle this error
Dear all , I couldn't handle this error like the code below. I know "strncpy" shouldn't pass the value -1 , but how could I debug this kind of error try { char test[20]; strncpy(test,"123",-1); //problem here -1 } catch(...) & ...Show All
paul002000 Upgrade from .net 2003 c++ (and basic)
If I'm using .net 2003 C++ (and VB) can I upgrade to Visual Studio 2005 And will I get the other 2 languages (c# and j#) as a bonus, or do I need to buy the full product I'm using the standard edition. Visual Studio (except Express Versions and Visual Studio Tools for Office) contain all languages: C++, VB, C#, J#. http://msdn.microsoft.com/vstudio/products/compare/default.aspx ...Show All
Johan Olofsson Using a static library when I only have the .lib and .h files
It seems that static libraries must always be compiled with the current project and the source code for them must be available. In that case, what's the difference between creating a library and just referencing the project In 2005, I was unable to 'link' (by which I mean refernce) to a static library for which I only had the .lib and .h files. Is there some way to do this btw, the library I wish to use depends on other libraries. ...Show All
Matt Decaro ATL
Using Visual Studio .Net 2003. I created a DLL ATL Project using the New Proj. Wizard. Noticed that the generated class is declared and defined solely in the .cpp file, i.e. there is no header. Three questions: 1. From this, I gather that the methods of the class are to be implemented in the class itself I like this because I like defining all class functionality in one file. 2. Also, is no header is needed for ATL COM objects because ...Show All
Khanh Le The old Visual C++ Express Beta Directories problem
Will this ever be addressed properly I have followed the instructions to edit "VCProjectEngine.Dll.Express.config". I do not have a "vccomponents.dat". Visual C++ still does not recognise my specified directories and can not find any external header files. This is very frustrating. Log a bug against such documentation at http://lab.msdn.microsoft.com/productfeedback/default.aspx and the responsi ...Show All
Anton Eagle C++ /CLI Class Library Project Problem, Please Help
I am accustomed to setting up our n-tier solutions such that each tier is in it's own project in Visual Studio. We are migrating from C# to C++ /CLI with the Release Candidate 1 of Visual Studio. Our first C++ /CLI project will be a relatively small Windows Forms application, and I want to have two projects, one for the Presentation layer (windows forms app), and one for a Database layer (c++ / cli managed class library). ...Show All
Davester How to compile without .net?
Hi everyone. My problem is that if I write an application, it doesn't run on other computers. I've already read other threads about this problem, and there were solutions too: install redistributable packages and/or the .NET framework on the other computer. But I don't want to. I just want to run my program on any computer without installing anything. Like in the old times. Thank you for your support. Attila ...Show All
Higgaion Multithreading
Is it possible for a master thread to force abortion of pending IO in a slave thread, as with signals on Posix. Win32 only, no .net bullshit please. Thanks, - NK Event API is of no use, since, if I understand it correctly, SetEvent() can't be used on a HANDLE belonging to a thread object. - NK A similar way has been suggested by Ronald in this thread. Unfortunately I cann ...Show All
