Answer Questions
Sam Johnson unresolved external symbol Link error appear on release
so strange for this...I have 5 project when I use DEBUG mode to compiler,the work is fine, but when I change debug mode to release ,some strange error is appear, error LNK2001: unresolved external symbol "public: static class ATG::StringID const ATG::NamedTypedObject::TypeID" ( TypeID@NamedTypedObject@ATG@@$$Q2VStringID@2@B).....etc I sure make all setup for release,project dependencies on link lib ...... all setup is the same as debug,but still appear link error but I create a new project to test such problem. It work fine!! have any step missing What is ATG You obviously are missing something between your debug and release settings. Perhaps the ATG class has this static string in it and the lin ...Show All
Cerebral_mamba Template Selection Visual C++ 2005
Keyword C++ Template Matching Selection I thought in many circumstances the more specialized template is chosen. So the actual template selection by the great compiler seems contrary to my expectation. This concerns overloading the operator = via templates in a C++ class. Desired: To have member template methods (operator =) called in certain object types thus producing other or same objects. Expression Templates. I want to manually write these templates for the educational value. (template frenzy).( I dont want use boost::lamda ... just yet). Other metrics being equal .. I would like to use a lesser number of member functions. Actual: I get template matching that is contrary to my intention. (I dont understand the actual template ...Show All
imanish11111 Error code ExplorerEXE. (0xc0150002)
>Inspiron 2200 Problem: Computer >Operating System: Windows XP Problem Description: >Explorer.EXE - Application Error The application failed to >initialize properly (0xc0150002). Click on OK to terminate the >application every time i switch my lap top on , >a screen tells me to Log on to Windows. after i have clicked on enter >the next screen appears saying that the aplication failed to >initialize properly (0xc0150002). Click on OK to terminate the >application. when i do nothing happens >Ihave followed all on screen instructions but nothing happens. i'm >frozen out of my computer, all i can see is a desk top picture. I have contacted DELL but no joy :( ...Show All
Rick Spiewak MFC documentation
I have Microsoft Visual Studio 2005 Professional installed on my machine. So far, this product has been an incredible hassle and ridiculously difficult to use. I have the task for writing a simple application for Microsoft Windows, and the MSDN library is installed, but I can't search for MFC functions at all. The MSDN library keeps trying to give me totally inpertinent results. I have used Visual Studio in the past, and the older versions were a lot better. I ONLY want to see information about MFC. Is there a way to set this Thank you. Perhaps my question is not clear... I cannot access the internet from within my Windows box. I can only use what was installed from the Visual Studio Professional 2005 i ...Show All
Chief G Vector subscript out of range - can't understand why
I'm having a problem regarding the 'vector subscript out of range line 756' when popping back a vector after upgrading to VS2005. Pushing back still works perfectly. Searching the web I find many others with the same problem, but no explanation or way to fix it. This is purely in debug mode, no problem with mixing release mode or anything. #include "fire.h" vector < fire > MYFIRE; In main I have this function for(unsigned int i = 0 ; i < MYFIRE.size(); ++i) { MYFIRE.DoPhysics(MYTIMER.getdelta_time()); if(MYFIRE.Pos().X()>400) { for(int j = i; j < MYFIRE.size(); ++j) ...Show All
ceebee Is this ISO C++ conformant?
I wrote the following simple program and could build it happily. #include <stdio.h> #include <conio.h> int main() { int i; printf("Integer please>"); scanf_s("%d",&i); _getch(); } I have two questions about this code. First, is this code 100% ISO C++ conformat I could build this, with language extensions disalbed. Second, is the _getch() function always thread -safe Thank you very much. Thank you again, einaros, for the information. => it is to my understanding currently an "extension" provided by Microsoft I am really interested in this part. If you are correct, disabling language extensions means "removing MS extensions from my sour ...Show All
Soxiz Any interest in building an FAQ?
I'd like to propose that we put together an FAQ to address some of the issues that pop up regularly here. It seems like we have an awful lot of questions like: - "How can I call my C#/VB/FORTRAN routines from C++ " - "How do I compile and run my project " - "I've included the correct header files, so why am I getting LNK2019 errors " - "How on earth am I supposed to use destructors/finalizers/IDisposable " And of course these are all valid questions! But since they are common questions which tend to be answered in the same way from one thread to the next, I think it would be very helpful to have all (or at least most) of the common answers in one single place. This would be helpful both to aske ...Show All
newtoc&#35;484467 Indirections %==& and ^==*
Does anyone know the difference between indirections % and & as well as ^ and * If the only difference is that % and ^ are used on managed types, then why doesn't the compiler know the difference and allow the use of & and * on managed types thereby eliminating the need for ^ and % It makes me think there's more to this than I can find in reading documents. thx Followup: here's a copy of the C++/CLI design rationale by Herb Sutter. In Section 3.3 he discusses why C++/CLI syntax chooses not to overload *. http://www.gotw.ca/publications/C++CLIRationale.pdf The following two blog articles also discuss this topic: http://blogs.msdn.com/hsutter/archive/2003/ ...Show All
mjkfff Link error LNK2019 redux
I reviewed the previous thread but couldn't resolve my issue using the info there. The errors I'm getting are: Error 1 error LNK2019: unresolved external symbol __imp__SetupDiGetClassDevsA@16 referenced in function _main USBReaderC.obj Error 2 error LNK2001: unresolved external symbol _USB_1208LS_GUID USBReaderC.obj I found the lib file that contains the function and manually added it to my list of link directories to search, but that didn't work. Some other hopefully useful information: This is intended to be a simple Win32 console application I'm using to debug some things going on at a USB port. I'm running Windows XP SP2, the devel environment is Visual Studio 2005 Pro. I'm using the DEFINE_GUID macro which doesn't seem to b ...Show All
Alexey Nayda IDE for C++ 2005 Problem with Resources
When i add any control in Visual C++ 2005 Form Designer or add a new resource string (It's displayed in arabic without any problem) but after i save the file , the resouce file doesn't save it in arabic then it will not be displayed in the right way. I to add any resource string in arabic without open .rc file in an external viewer. Any Suggestions Thanks dina your for reply, but this is a Visual C++ 2005 and i don't use .NET frame work --- Unmanaged code. Any Suggestion Thanks Ted. for your help, I have installed SP1 and the problem was resolved. I had to wait about 45 minutes till it's installed like windows installation but my problem has gone. Thanks alot. No, it's a bug in VC 2005 resource editor s ...Show All
ACCOUNTINGONLINE.US static lib problem
Hi, I found a static lib written for VC++ 6 and i wanna use this visual studio 2003 when testing the lib in a console application i get a lot of errors in the header file is there any trick to import old version library to new version IDE Actually, I arrange the directories to be included, then i include the header file which also links to static library by using # pragma comment (lib , library ) and i wanna use the classes which is in library but classes are undefined... I can not instantiate an object whose class is in library Maybe that third-party library uses a specific " ...Show All
Tort A question about WMI client applications
Hello All I want to build a WMI client application using C++. I have already viewed those examples presented by MSDN. The purpose of the client application is to know whether anti-virus programs are installed on the machine or not. Using wmic with the following command line options, gives my expected results: wmic /NAMESPACE:\\root\SecurityCenter PATH AntiVirusProduct GET ALL I want to know; what is the equivalent WQL statement to the above command I also examined MS WMI Code Generator, but I couldn't find the appropriate WQL statement. Best Regards Ali Majdzadeh Equivalent WQL statement: select * from AntiVirusProduct will do it when connected to the root\SecurityCen ...Show All
jw700 MFC ActiveX built with /CLR fails to load
We need to use UserControl-derived components written in C# in our existing MFC application. The components need to be inserted into existing ActiveX controls (written using MFC and ATL as separate OCX files). The recommended way is to turn on the /CLR switch and use CWinFormsControl class. Using this approach I was able to insert a simple test component into one of our ActiveX controls and successfully build the OCX in Debug mode, however when running the application I noticed that it fails to load the modified ActiveX control - when the app tries to create an instance of the control it fails with the following error: ClassFactory cannot supply requested class. The same load failure occurs even when I completely removed the test component ...Show All
cgraus Smartbridge Alerts
I too am receiving the "entry point not found" message. I have very little technical knowledge and would appreciate assistance in any fashion. thanks. Helen McLaughlin That's great. Glad you were able to. It seems to be something turning up as pretty common affecting online service files. Bob Andy/All Found it isp program files. Renamed Error Gone Thanks Did you follow the link I gave earlier Thank you Brian. I will check it out. Thanks again. Helen I am too receiving the "entry point not found" message. I have very little technical knowledge and would appreciate assistance in any fashion. thanks. Xavier Gonzalez ...Show All
Cathie 64 Multi-dimension arrays in VC++ 2005 for n00bs
Okay, a little background: I'm an aerospace engineer, not a programmer, but I'm experienced in C, and I'm using VS2005 to make some simple-ish tools for our group. I'm trying to declare a multi-dimensional array in VC++ through the 'standard' method... double test[5][5]; ...and then access it in the 'standard' way... test[0] = something I'm putting in there.; ...but it's not working. When I debug, the Watch says that test is a double[][] of length 5. So far, so good, but when I expand it, instead of the 'standard' syntax, it comes up like this.... test[0,1] Length 0 double[] test[0,2] Length 0 double[] ...and so on. I've dug through our copy of MSDN, and online and there ...Show All
