I'm working with quite a big codebase which compiles fine in linux but vc++ 2008 spits errors.
The problem code goes like this:
Declaration:
typedef float vec_t;
typedef vec_t vec2_t[2];
The codebase is littered with in-place construction like this one:
(vec2_t){0, divs}
Or more complex:
(vec2_t){ 1/(float)Vid_GetScreenW(), 1/(float)...
Hi,
I'm creating a simple SDI app using the new VS2008 service pack. I
added ribbon support but all I want on the ribbon are the Open & Close
buttons. I commented out all the code that creates the other default
buttons and categories but doing this also gets rid of the status bar
(CMFCRibbonStatusBar). I can't find what member function i...
hai..
Am writing application for capture video from camera in vc++ using directshow and write that
file in WMV format.and how to write MPEG4 file format.can i install any sdk for mpeg4.can you provide details about mpeg file writing in vc++
kindly help me
thanks
...
when i tried to create shared library file using a "cl" command in vc++, it shows a error saying that "fatal error c1083: can't open compiler generated file 'file.obj':permission denied"
can any1 help me...???
...
Hi there,
I have compiled the NTL inifite precision integer arithmetic library for c++, using Microsoft Visual Studio 2008. I did as explained, on this site, using the Visual Studio interface, rather than from the command prompt. Actually I would rather do it from the command prompt, but I was not sure how to.
Anyhow, I got the library ...
Whats the best automation tool for VC++ based project?
...
I'm trying to use the new OpenCV 2.0 API in MS Visual C++ 2008 and wrote this simple program:
cv::Mat img1 = cv::imread("image.jpg",1);
cv::namedWindow("My Window", CV_WINDOW_AUTOSIZE);
cv::imshow("My Window", img1);
Visual Studio returnes an unhandled exception and the Console returns:
OpenCV Error: bad flag (parameter or structure ...
Can I use Visual C++ 2010 Express compiler for commercial use?
As far as I know, it was always permitted prior to 2010 version, but now when I start IDE, it writes "For Evaluation Purposes Only". I can't find the full license file anywhere (not in installed files, not in Google), so I'm in doubt, should I use it, or should I downgrade to...
I've used a few profilers in the past and never found them particularly easy. Maybe I picked bad ones, maybe I didn't really know what I was expecting!
But I'd like to know if there are any 'standard' profilers which simply drop in and work? I don't believe I need massively fine-detailed reports, just to pick up major black-spots. Ease o...
I looked at previous post based on this but they do not relate. I am receiving the following error.
1>c:\users\numerical25\desktop\intro todirectx\introtodirectx\chapter 4\init direct3d\init direct3d.cpp(9) : fatal error C1083: Cannot open include file: 'd3dApp.h': No such file or directory
But clearly from the image shown below, its ...
I'm noticing a problem that has crept up a few times over the years, and seems to be happening a lot under Windows 7 in our current build.
When I test for the existence of a file, using ::GetFileAttributes(filename), I am often getting back INVALID_FILE_ATTRIBUTES, and GetLastError() is ERROR_PATH_NOT_FOUND (3).
However, the file does ...
Disclaimer: I am a C# guy with virtually no VS C++/MFC experience.
I am trying to get some projects built on my machine that are mixed C++/.Net. When compiling a C++ project via the command line on my machine I am getting this error:
LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage [SOURCE_CODE_PATH_TO_VCPROJ]
My v...
I have the TreeView class using in my project. I use icons for it.First i load icons so:
ImageList^ il = gcnew ImageList();
il->Images->Add(Image::FromFile("DISK.ico"));
il->Images->Add(Image::FromFile("FILE.ico"));
il->Images->Add(Image::FromFile("FOLDER.ico"));
treeView1->ImageList = il;
All was good. But i dont like that if i delet...
I am trying to integrate PJNSMTPCONNECTION CLASSES in my project; they say that those classes do not use MFC.
My project is with the setting like MT, and using standard library linking.
When I try to compile, I am getting
CSTRING not defined and
fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <win...
I am compile idl file using MIDL compiler and generating header file. I need to get smart pointer implementations for interfaces defined in my idl file. How to get smart pointers for my interfaces by compile idl using midl?
...
Ihave the tree view in which i have file system of logical disk. When user select some files and folders and press button programm evaluate the size of selected files and folders. this function may takes a long time. i decide do thread which will run this function. This function works with array of TreeNode. but then i want to now was it...
HI,
I am using CFIle in my application and when i compiled my code i am getting error
'WriteHuge' : is not a member of 'CFile'
'ReadHuge' : is not a member of 'CFile'
I included
#include "afx.h"
CFile file;
file.WriteHuge(m_pDib,bmpFileHeader.bfSize-nBmpFileHeaderSize);
file.ReadHuge(m_pDib,bmpFileHeader.bfSize-nBmpF...
Can I use Microsoft Development Studio (a.k.a. Visual C++ 6), but replacing its awful compiler with that of Visual C++ 2005 or, even better, GCC? If so, how?
...
Hello,
I wonder, if there is a way to make VS C++ Express console window appear as tab, like 'Output' or 'Code Definition Window', rather than new window (the same way like Eclipse does). Any IDE settings or plugin?
Thanks in advance,
Regards, Pawel (PL)
...
I'm trying to debug a problem in a DLL written in C that keeps causing access violations. I'm using Visual C++ 2008, but the code is straight C.
I'm used to Delphi, where if an exception occurs while running under the debugger, the program will immediately break to the debugger and it will give you a chance to examine the program state...