Answer Questions
CompiledMonkey CBitmap - Simple example
Hi, I am trying to load some images in a Picture Area. I only have the pointers to the images, and this pointers are of the type unsigned long* (I can also convert it to IplImage* to use with OpenCV). This unsigned long* get the images grabbed from an camera and I would like to display these images in this Picture Area (it is real time, I get the images from my camera and display them). I have tryied to use this (HBITMAP)LoadImage function, but ...Show All
hsacks Connection pointer in ATL with Visual Stadio 2005
I created a ATL project using wizard, added an "ATL sample object" class supporting connection points. For instance:The library name is TestATL, the object's short name is Test, I got four classes:ITest, _ITestEvents,CTest, CProxy_ITestEvents But I can find tow enties in "Class View": the root node and TestATLLib. I added method for _ITestEvents with wizard displaying after right click the node under the TestATLLi ...Show All
MichaelVictoria GetTapeParameters
Hi, I'm trying to retrieve the block size from a tape. I'm using the method GetTapeParameters, with the flag TAPE_GET_MEDIA_PARAMETERS. The block size returned is 0, although I know that the block size used to write the tape was 64k. Is there anything more I need to do to retrieve the tape block size from a tape Here's the code snippet: TAPE_GET_MEDIA_PARAMETERS m_TapeMediaParameters; DWORD dwSize = sizeof (TAPE_GET_MEDIA_PARAMETERS ...Show All
programmerjoey Using an ArrayList to store instances of a class in VS2005
Hi all, As you may gather from the title I am trying to use an arraylist to hold instances of a class, so I can later loop through the values held in the different instances of that class easily. The class declaration is: public ref class Notes { public: Notes(void); int note; int duration; }; this is then instantiated in another class along with the arraylist: public ref class Score { public: Score(void); //arra ...Show All
Svetik __stat64, redefinition; different type when including sys\stat.h after wchar.h
#include <windows.h> #include <wchar.h> __stat64 a; #include <sys\stat.h> __stat64 b; // <-- compiler error Example compiler output: d:\temp\t3test1\t3test1\stdafx.h(20) : error C2146: syntax error : missing ';' before identifier 'b' d:\temp\t3test1\t3test1\stdafx.h(20) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\temp\t3test1\t3test1\stdafx.h(20) : error C237 ...Show All
Sebastian Chiariello migration from Visual c++ 2003 to visual c++ 2005
Hi, We are in process of migration from Visual c++ 2003 to visual c++ 2005.(VC 7 to VC 8) My question is that ..... Will VC 8 binaries work with VC 7 binaries. Suppose there are 100 dll in my Application which are generated under VC 7. Now I migrate only 50 of them to VC 8. and let other binary be in VC 7. Now I make integration(create a setup) and install it on clean/fresh machine. will my application will work under ...Show All
Nidal-Fouad-Hajj-Youssef 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
CTY Problem using argv in main
Hello there, I am pretty new at this C/C++ I am writing a console program, and from what I read here, and around the internet is that the argv array in main() is supposed to hold any arguments entered on the command line... argv[0] is the name of the program, and argv[1] to argc is the arguments. So if I were to write a program that opened a file in binary mode. To run it I would type executable and then the file I want to open and oper ...Show All
rhc_advent OpenFileDialog
I have this code that I want to put in my project but I do not know exactly where to put it or how to complete it, if someone could please help me with this CommonDialog.Flags = OFN_FILEMUSTEXIST + OFN_HIDEREADONLY + OFN_ALLOWMULTISELECT CommonDialog.DialogTitle = "Select Map" CommonDialog.Filter = "Map Files (*.map)|*.map|All Files(*.*)|*.*" CommonDialog.FilterIndex = 2 CommonDialog.CancelError = True CommonDialog.Action = ...Show All
Rajeev Gupta About unicode settings in visual studio 2005, it really puzzled me a lot
When I tried to open a file whose name contains non-english words by using ifstream in vc6, everything was OK. But in vc2005, any file path contains non-English words will never be openned successfully. How to do it the right way My code is as below: ifstream f; f.open("C:\\Documents and Settings\\Could\\桌面 \\hehe.txt",ios::in ); //f.open("F:\\My Cpp\\Projects\\__stl_read\\__stl_read\\hehe.txt",ios::in); assert(!f ...Show All
Becky N Optimization problem
Our application crashes during execution a floating point instruction. It seems to be an incorrect optimization. When the method 'CLPController::StopPlaying' is called from the 'CLPController::SetLogTime', a floating point value is remaining on the top of the FPU stack: 00AC4575 call CLPController::StopPlaying (0AC3090h) 00AC457A fstp qword ptr [es ...Show All
Mike_Toth porting expression templates to generics
I'm trying to port simple expression template to generics but I get this errors (The code is shown below): (1) left of '.Apply' must have class/struct/union (2) left of '.GetRowNum' must have class/struct/union (3) 'return' : cannot convert from 'Expression<Lhs,Rhs>' to 'Expression<Lhs,Rhs>' Cannot copy construct struct 'Expression<Lhs,Rhs>' due to ambiguous copy constructors or no available copy constructor ...Show All
John Vulner - MSFT Manifest missing info about msvcr80.dll (NET 7.1 -> 8)
Hi, I converted a C++ project from VS .NET 7.1 to VS .NET 8. The project uses old fopen methods and similar. Under 7.1 the project compiles and runs, but under 8, I am unable to run. First, when running the application, it complains about missing msvcr80.dll. Then, when I locate it (somewhere) on the computer, I get the error that the application tried to load the dll in an illegal manner. When searching for info on this, I stumble int ...Show All
deadlycow1337 Creating Strings
Hello, I've been wondering how is it possible to create a global String variable When I write "String^ str" it says: global or static variable may not have managed type 'System::String ^' 1> may not declare a global or static variable, or a member of a native type that refers to objects in the gc heap But when it's in a private operation it works. With Thanks, ...Show All
John Dallman Question about the express edition(switching the compiler)
I have a purchased copy of visual C++ 6 standard. I recently decided to try the 2005 express edition as i was considering upgrading. I found that while I like the ui better, it lacks a large amount of the header files that came with VC++6. I was wondering how i would go about switching 2005 to the compiler and header set of 6.0 or if that is even possible. Yep, thats what i needed, thanks :) ...Show All
