Answer Questions
Elliotte __invalid_parameter_noinfo is resolved by LIBCMT.LIB but not LIBCMTD.LIB
Hi I'm having to define _SECURE_SCL=0 when compiling debug builds of my C++ applications which are built using the /MTd switch, otherwise the linker cannot resolve reference __invalid_parameter_noinfo. When the release build is generated using the /MT switch, there are no problems, since this reference is resolved by LIBCMT.LIB. I've used DUMPBIN to try to find __invalid_parameter_noinfo in all the standard installed libraries, but it ...Show All
MDougC Duplicatable INTERNAL COMPILER ERROR from forward declarations, Visual C++ / Visual Studio .NET 2003
I have run into a very annoying problem. You can duplicate this problem as follows: 1. Setup a new empty project 2. Create 3 files: main.cpp, class1.h, class2.h 3. In class1.h setup an empty struct 4. In class2.h setup forward declaration to a "class3" and then setup an struct that is entirely empty except for a single value of type class3 5. main.cpp contains: #include "class1.h" typedef class1 ...Show All
ms citizen Enabling themes in Vc6 app converted to Vc8
Hi there, I used to use a manifest file in the resources. But now with vc8, for the same app, I want it to get autogenerated (just like when you create a new project). Where's the setting that enables themes in the app and gets the right manifest to get generated Please help... I checked all the project settings between a new project and my vc6 converted one, and have also pasted in the special #pragma's at the bottom of StdAfx.h. Anything ...Show All
Eljefe909 Structure deletion?
I got a dynamic structure array in a class. In that classes destructor I delete a pointer to the said array. That deletion causes an error! After that, I tried to free(pArray) but this also causes an error. Is it necessary to delete this pointer at all Hi! Can you post code that cause troubles Generally you must simply delete array pointer. I heard that sometimes C# performance in Direc ...Show All
GarthK c/c++/c#
I am currently an intermediate programmer in visual basic .net. I want to learn a C language and was wondering which I should learn first and the main differences between them. Between C, C++ and C#. Thanks, Korab C as a language has beeen around since the 70's. It is a very low level language (no classes as such) and while its popularity has been on the wane it is still the language of choice of developers who really want to get right d ...Show All
ChrisBradley fatal error C1001: INTERNAL COMPILER ERROR
I have an application with VisualC++ ,I use VS2003 as an IDE when I compile the application in debug mode It works fine but when I convert it to release mode and try to compile I get the following error fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'f:\vs70builds\3077\vc\Compiler\Utc\src\P2\main.c', line 148) and when I click on it it refer to the following lines in my code int nRep=RemoteObj.ObtnKeys("Software\\JavaSo ...Show All
Gregor Jovan Comparing ref pointers for equality
Now that operator overloading allows to ref classes to be compared for equality using == syntax, how does one compare the actual ref pointers ( ^ ) for equality instead As an example: SomeRefObject ^ obj1(..initialized somehow); SomeRefObject ^ obj2(..initialized somehow); if (obj1 == obj2) // This compares the objects themselves for equality in C++/CLI I assume. How do I compare the ref pointers themselves ( ^ ) for eq ...Show All
MikeGdecat Ok I am in dire need of some help here :/
I cant even get a hello world console app to work. I downloaded Visual C++ 2005 express beta 2, and the Platform SDK. I just chose to do a Win32 console application, chose to use the pre compiled header, and typed in the very simple code. #include "stdafx.h" int _tmain( int argc, _TCHAR* argv[]) { cout<<"Hello World!"<<endl; return 0; } When I go to compile it, I get a compi ...Show All
Marc A1 zipping a project
I have Windows XP and I'm using Visual C++ 2005 Express beta version and I created a Win32Console application project with 2 driver files and a header file. It compiles and runs perfectly. In windows explorer, I right clicked on the project folder and selected send to compressed (zipped folder). When I open the zipped folder and click on the project, it does open but when I click on any of the files in the solution explorer, I get this error: ...Show All
Henrik Dahl using WM_KEYDOWN to find which non system key was pressed.
Hey all, I,m starting to learn MFC and I'm trying to write a program that will display which keys a user has pressed. I use WM_CHAR for normal keys and that works fine. I want to use WM_KEYDOWN for non-system keys that aren't supported by WM_CHAR. The problem I'm having is that I cannot display which key is being pressed when OnKeyDown() is called. Here is a sample of code that I unsuccessfully implemented: afx_msg void CMainEIWin::OnK ...Show All
Steven W. Reading Bytes In IStream Object
I'm saving an image in IStream Object as following long len = GetLen(hBitmap); LPBYTE lpBits = (LPBYTE) GlobalAlloc(GMEM_MOVEABLE, len); IStream *pStream; HRESULT res = ::CreateStreamOnHGlobal(lpBits,TRUE,&pS tream); if(res == S_OK) image->Save(pStream,&encoderClsid,NULL); i need to read the pStream byte-by-byte, how can I do this IStream implements the Read function: ULONG ulRead; BYTE byte ...Show All
JohnnieK Need construct for member relative location placement in huge structures
Here is the problem : I have this huge structure whose members have address restrictions (e.g. member x starts from relative address y from the base pointer B). The address restricted members(from base) are needed to satisfy the hardware device register specification of the device. For example, typedef struct _DeviceRegMap { struct PCIDeviceHeader PDH; // Bytes 0 - 199 &n ...Show All
Dan Heskett access violation when running ported database solution (from VC++6 to VC++8)
I am maintaining a supply chain database solution & am attempting to port it from VC++6 to VC++8(2005 native -NOT /clr) - the solution is composed of 45 projects (an .exe & 43 dlls & a lib) - it uses COM & ATL. I have managed to compile everything successfully after solving some initial errors caused by greater ISO C++ compliance(I think) of the form: was : m_spDBStock = m_spBLStock; now: m_spDBStock = ( const IDBRecords ...Show All
Woody1 How to Create A Skinnable Application
Dear Friends, Hi to all, i want to develop a skinnable application using vc++. i don't know how to start. Please give some Intro to develop a skinnable application. Thanks for your Replay. Dear Martin, Thanks for your replay. link which was given by you in usefull to me. Thanks Look here: http://www.codeproject.com/dialog/ezskin.asp We are using BCG control library that also supports ...Show All
Jombi Using MFC regular mixed mode dll (/clr) from a managed application with Visual Studio 2005 Beta 2
Hello all, I am having problems using MFC within a managed application in Whidbey. What I try to do is the following: Writing a dll in C++/CLI that uses MFC. In this dll I implement managed wrapper classes around e.g. MFC dialog classes. Using these wrappers I want to display the dialogs in a managed application, written e.g. in C#. This used to work with Visual Studio 2003 and managed extensions for C++ but, but it doesn't with Whidbey. I used ...Show All
