Answer Questions
brigitte MFC Class Wizard
I am using VisualC++ 2005 beta 2. I created a dialog template in the editor and then double clicked on it to create a class. Added the Class name. The application correctly created the default .h and .cpp file names. When I clicked on browse button next to the .h and .cpp file name edit boxes, I was taken to the correct folder. I asumed that the files will be created in the right folder. I clicked on Finish. However, no files were cre ...Show All
ERK33136 2d array delete problem and question
Here is the basics of the code: class MyClass { public CString m_Value1; CString m_Value2; }; class MyWrapper { private: MyClass** m_pMyClass; public: void Create2dArray(int nHeight, int nWidth); void Delete2dArray(); }; void MyWrapper::Create2dArray(int nHeight, int nWidth) { m_pMyClass = new MyClass*[nHeight]; for (int i = 0; i < nWidth; i++) m_pMyClass[ i ] = new MyClass[nWidt ...Show All
LoserDude27 LNK problems continued
Hard life in C++ lane, I'll tell you. Trying to compile code with unmanaged CAsyncSocket class I got LNK errors: Build Log Build started: Project: SocketCplus4, Configuration: Release|Win32 Command Lines Creating temporary file "c:\Documents and Settings\....\My Documents\Visual Studio 2005\Projects\SocketCplus4\SocketCplus4\Release\RSP00000E1064772.rsp" with contents [/OUT:"Release\SocketC ...Show All
Anand Makefiles in Visual C++
Hi, I am no professional programmer, nor am I a developer, nor do I have 40 years programming experience, so please don't laugh at my stupid question. My question is this: Is there any way to add Makefiles to Visual C++ The reason I ask is this: Suppose I have multiple C files in my project, and I have 2 different driver files with 2 different mains ...how does visual C++ know which main to begin executiion in ...Show All
VandyDave Open File Dialog
Hi I`m trying to play a mp3 file with c++ a console application.. so i need the exact path to it.. i figured out how to show the open file dialog .. but i still have some problems CODE: OPENFILENAME ofn; char szFileName[MAX_PATH]=""; ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); // SEE NOTE BELOW ofn.hwndOwner = GetActiveWindow(); ofn.nFileOffset=1; ofn.Flags=OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT; ...Show All
merrickchaffer Include files build order
All, line 222 in winnt.h reads like this: typedef void * POINTER_64 PVOID64; and creates the error message Error C2146: syntax error: missing ';' before identifier PVOID64. I am trying to throw VC++ 2005 Express on Windows 2000 Pro SP4 at a modifed version of the amcap sample program of DirectShow. This is the version I have downloaded with DirectX 9.0b on 11 Oct. 2004 and ...Show All
adshah Project Build Error PRJ0003 "error spawning cl.exe"
Help! None of my projects will start. I keep getting the same build error. I have already added the directory that houses cl.exe to the VC++ executable directory and now it gives me a dialog box that states "These project configurations are out of date. Would you like to build them " Upon clicking yes, it states "There were build errors, continue Upon clicking yes, it states "Unable to start debugging. Unable to f ...Show All
Nitin Chintamani MSVCR80D.DLL Not Found Problem
Hi, I've just returned to programming, downloadd the April 2005 DirectX SDK and found my Visual C++ 6 STD no longer works. I have downloaded Visual Studio 2005 Express and then downloaded the x86 version of the Microsoft Platform SDK For Windows Server 2003 SP1. My computer is updated daily with all the latest downloads available for my Windows XP Home Edition which I believe is using SP2. I followed the setup as described adding the direc ...Show All
Hongtao Liao Print Preview Crashes
When I click close button of CPrintPreview the application crashes. Before explaining what I have done, I find it noteworthy to mention that when application was launched from VC 6.0, no crash of application watsoever occured. But after migrating to VC.NET, I am encoutering this problem. and let me focus what I have done: I have derived a class from CPreviewPrint and call OnPreviewClose to close the print preview. Since the class is ...Show All
Isythica DateTime format{ts 'YYYY-MM-DD '} used with SQL
I am using instances of DateTime within my application and i need their values to be used as selection criteria in an SQL select clause. So i need them to return a literal string representation of themselves in the following format '{ts '1990-01-01 00:00:00'}' Where the date can be any valid date as contained in the DataTime instance. How can i get them to do this I Thanks Martin, that neally w ...Show All
Roman Az problem with afximpl.h in VC2005
I'm working on a library that has to continue to compile in VC6, but also support up to VC2005. We have this block of code all over the place: #ifndef __OXMFCIMPL_H__ #if _MFC_VER < 0x0700 #include <..\src\afximpl.h> #else #include <..\src\mfc\afximpl.h> #endif And src\MFC\afximpl.h continues to exist in VC2005, but I get these errors: Error 1 error C2143: syntax error : missing ';' before '<' ...Show All
confuced! how can i detect why the error caused by new()?
I have wrote a program to handle the packets by VC7.1,which used new() and delete() to generate packet and delete it. but in some occations the new() will cast a exception.I could't determine when it will occur, and sometimes it will run well through to end. I am very puzzle about it. how can i debug it some one can tell me a good solution. And by the way,who can tell you that in what way or when the new() will failed . I only kn ...Show All
Mario Chenier difference between value type and ref type (C++ CLI)
Hi all, I'm programming with C++/CLI and I'm not sure of this concepts. I hope you can make it clearer for me. What exactly are value type, using the value keywork What exactly are ref type, using the ref keywork And specially, What are the difference between the two Thanks a lot in advance for you help. Best, Nicolas Thanks Oshah for your answer. I will look after your exercise, to know better the us ...Show All
doomgaze Getting started with a plain c++ program!!
How do I just open and compile normal c program, without it being a "win32 console application" or any other fancy-shmancy stuff The simplest way through the IDE is to use an empty console application. You just need to choose "Console Application" and then click next. You will have different types of Console Applications, choose the empty one. This way you are free to add what ever simple code you want. Another option is to use ...Show All
Ratheesh please help me to convert a C++ code into .dll
Hello, I have an already made project in C++ and I need to use its functions in my C# project. I think that I must convert it into .dll file, but I am very confusing in how to get a .dll file , that can be referenced in C# project , from a C++ code files. I am reading many articles about that but I can't apply any one. Please help me to doing that. If anybody can help me please give me the e-mail to send the C++ code. Or it ...Show All
