Answer Questions
Aniekan Daniel Usen How to compile use of AVIFileInit
This is undoubtedly something very simple, but I am too new to this environment to figure out what. I have this code: #include <windows.h> #include <vfw.h> #include "stdafx.h" int _tmain( int argc, _TCHAR* argv[]) { AVIFileInit(); // opens AVIFile library AVIFileExit(); // releases AVIFile library return 0; } and I get these compile errors: error C3861: 'AVIF ...Show All
Iain Fraser 2005 upgrade ports Floating Point Consistency incorrectly
I have a fair sized project in Visual C++ 2003 that I ported to Studio 2005. It's taken a few days to track it down, but I have discovered that Studio ported the 2003 "Floating Point Consistency" project setting (under C++ | Optimization) incorrectly to the 2005 "equivalent" of "Floating Point Model" project setting (now under C++ | Code Generation). My 2003 project was set to Default Consistency (which is ...Show All
larryi ATLCONV.H header error!
When I try to compile my VC++ program (am Using VS6.0). I get the following error in a header file ATLCONV.H. c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(52) : error C2065: '_ASSERTE' : undeclared identifier Error executing cl.exe. and it points to inline LPWSTR WINAPI AtlA2WHelper(LPWSTR lpw, LPCSTR lpa, int nChars, UINT acp) { ATLASSERT(lpa != NULL); //points to this line. Error is here ATLASSERT(lpw != ...Show All
Gustavo Valdes NMAKE : fatal error U1052: file date.mak not found
I am self-coaching myself VC++. I don't get it error. Could someone tell me where I went wrong Much appreciated. Thanks in advance. Header file: #ifndef Date_dot_h #define Date_dot_h 1 // Address class using dynamically-allocated strings class date { protected: int year_; int month_; int day_; public: date(); date(const int& d, const int& m, const int& y); bool valid() ...Show All
JHibbins ofstream problem, I think!
Hello All, Just wondering if anybody can help me with this problem. I think it's a fairly trivial problem but at this stage I'm probably seeing pass it. I have a big integer array(307200) which consists of 1's and 0's. My plan is to print each pixel out to a txt file with the number of pixels on each row = 640. So that would leave me with 480 rows with each row containing 640 pixels. As you have probably already gathered this array is something ...Show All
Valer BOCAN 'super' keyword
Visual C++ 2005 beta 2 marks the word 'super' like a keyword (with blue color). I know that '__super' keyword exists... but the word 'super' What for does it use It seems that this is a bug in the IDE.. (or whatever is responsible for the text-coloring). You can report it at: http://lab.msdn.microsoft.com/ProductFeedback/reportbug/search.aspx And please report the link to the bug-report. If y ...Show All
Seth Veale 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
Julian Price releasing resources in a destructor
<yecril@discussions.microsoft.com> wrote in message news:5ba1a990-30bb-409d-b407-a92b44380eb6@discussions.microsoft.com > Consider the following piece of code: > class ServerConnection { > > public: int AllocResource(); void ReleaseResource(); }; > > class ClientHandle { > > int handle; > > public: ClientHandle(ServerConnection &s): > > handle(s->AllocResource()) ...Show All
sbussinger Installation of VC++beta2 kills my VC++6.0 and looses ATL files.
I have a full professional install of VC++ 6.0 and not only have the exes been butured, several key header files for templates have gone missing. Has anyone else noticed that the ATLSTR.h header file for string templates has vanished The documentation all over the MSDN still refer to this file for CStringT, even though it got mixed in with MFC too. Neither template header is currently available on my machine. I have to g ...Show All
mll 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
DuckHyun Kyung debugging: where are the variables?
Let me start by saying that I am a beginning C++ programmer and am very new to Visual Studio 2005, so please forgive me if this is a silly question. When running the debugger on a simple program such as the one listed below, I find that it doesn't bother to display anything for most of the variables, and even for the variables it does display for, it seems to be garbage. #include <iostream> using namespace std; void main() { const int ar ...Show All
Alan Adams Serialize Error?
Hello Experts.! Here is a part of my program. In fact, I made this much simpler typedef CTypedPtrList<CObList, CSensorObject*> CSensorObjList; CSensorObjList mylist; class test1 : public CSensorObject {} class test2 : public CSensorObject {} class test3 : public CSensorObject {} //////////////////////// // This is a part of method. // / * PART A */ mylist.AddTail(new test1()); mylist.AddTail(new test2()); ...Show All
Raja Pratap Reddy In my program I have #include <GL/glut.h> like this,but when compiling my program,it have error "can not open file GL/glut.h"
In my program I have #include <GL/glut.h> like this,but when compiling my program,it have error "can not open file GL/glut.h" Thank you for your answer. Hey i tried those things u said, and i cant get my program to work. I take a course and my program works fine there, but when i take it home and try to run it here it doesnt work. I have a redistributable version on Visual Studio 2005, and they use 2005 there to ...Show All
nigeldude Error on delete [] v
Hi, I have a problem with a class. The declator is class Configuration { public : struct conf_table { char name[40]; char value[10]; }; struct conf_table *conftable; int size; //rows on conftable int max_size; //maximum rows on conftable public : Configuration( void ); //Constructor ~Configuration( void ); //Destructor }; And the code is Configuration::Configuration( v ...Show All
Jochen Kirstaetter NT service returns 80070003
Hello experts! I wrote a NT service that creates a text file in a folder specified in registry. To create a file, I use CAtlFile::Create method. The NT service is running under local system account. It works fine as long as the folder path specified is local hard drive. However if the folder path is changed to a network map drive and restart the service, CAtlFile::Create fails with error 80070003 (Path not found). I know this wil ...Show All
