Answer Questions
ZoltanK Weird behaviour of "Textout" ...
Gentle people, This drives me nuts! Please consider the following pieces of code: InitInstance: szBkwMsg = "Message1"; <----- ShowWindow( hWnd, nCmdShow ); UpdateWindow( hWnd ); SendMessage( hWnd, WM_COMMAND, IDM_BKW , 0 ); WndProc: case IDM_BKW: while (szInDs == "") { if (DialogBox(hInst, .... <----- { } } szBkwMsg = "Message2"; <----- UpdateWindow( hWnd ); DialogBox(hInst, ... <----- case WM_PAI ...Show All
kmdavisjr error C2259: cannot instantiate abstract class
I'm trying to make a Virtual Constructor Function to return a pointer to a new object; "ServerExt". My code is: class ServerExtApp : public ServerExt { public: virtual void execute() throw(ServerExtApp::Exc); }; ServerExt *virtualCtor() throw(ServerExt::Exc, bad_alloc) { return new ServerExtApp; } but when I compile I get these mistakes: Compiling... ServerExtApp.cpp E:\VICTOR\IN\INFITEL\SCRIPTS_PRUEBA\ServerExtApp.cpp(94) : ...Show All
gorshing Can symbols from an .exe file be imported into a DLL?
I would like to create an executable which uses multiple DLLs. I want to load the DLL's manually depending on execution. There is common code which resides in the .exe, which I would like to use in the DLLs. When I try and compile the DLLs I get unresolved symbol errors during the link. Is there a way for me to share the common code, residing in the .exe, with the DLLs Thanks. Omar Canon The cDatabaseDefn class needs to be includ ...Show All
Kathie351 Linking the microsoft platform SDK to VS 2005 express
Hi, i have read through various threads regarding methods to link the microsoft platform SDK to visual studio 2005 express beta 2. Personally i have tried changing the express.dll.config file to "C:\Program Files\Microsoft Visual Studio 8\..." where I include the path to where my microsoft platform SDK is located. Well that doesnt work. So i tried the "create a PlatformSDK folder under VC folder" method. N ow afxwin.h is located in C:\microsoft ...Show All
Marcel Meijer I'm stuck and cunfused. ARR U C++!
ok. i made a small ...small SMALL msdos program with Visual C++ express (yep a newbie) and all it was, was a whats ur name age and if u like this kind of music or game. now i figured out the whole press one if u like this or press 2 for no. but i want to make it a says YES FOR YES! and so on. get it good. here's my code. im really stuck #include <iostream> using namespace std; int main() { int number; /* This de ...Show All
Yottie VS2005 porting issue
Hi, I am using VS2005 Beta2 to compile the sources for x64 platform. I am getting following error: >D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\mapidefs.h(1142) : error C2371: 'BOOKMARK' : redefinition; different basic types 1> D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\sqltypes.h(283) : see declaration of 'BOOKMARK' I tried to refactor code little bit. But it didnt help. I cannot get rid of a ...Show All
Paul Rocca which situation does'error C2039' happen?
when i compile my code,i get this error error C2039: 'Import3dmax3DS' : is not a member of 'C3dWorld' see declaration of 'C3dWorld' but i have define 'Import3dmax3DS' in 'C3dWorld' which situation does 'error C2039' happen Show us some code. Deklaration of the class, and some llines were the error occurs. that's not the order class AFX_EXT_CLASS C3dWorld : public CObject { DECLARE_DYNAMIC(C3d ...Show All
ClydeL Resource Compiler Fatal Error in Visual Studio 2005 Beta
It's impossible to launch Resource Editor from IDE. Resource Compiler Fatal Error RC1107 is displayed. Your subject says Resource Compiler, but your message says Resource Editor. Which is it Given the error message, I assume the Resource Compiler. How are attempting to invoke it Custom build step Help for that message says, "An invalid Resource Compiler option was specified. Valid options are /r, /v, /d, ...Show All
sentonal performance VC++ 2005 vs. VC++ 2003
The code below runs in 17 seconds on my machine when compiled under Release mode on VC++ 2005 and in 13 seconds on VC++ 2003. This is an extract of the code so don't worry it does not make much sense. First I though it was because of checked iterators but it does not make a difference if I use #define _SECURE_SCL 0 or not. What else could it be Thanks, Bumbrlik -------------------------- // #define _SECURE_SCL 0 #incl ...Show All
mjschwenger Possible Bug in Reference to Pointer to Const
This is with VS 2005 void F( const char *&pChr) { pChr = "Test" ; } int _tmain( int argc, _TCHAR* argv[]) { char *pChr1; const char *pChr2; F(pChr1); // Fails: cannot convert parameter 1 from 'char *' to 'const char *&' F(( const char *)pChr1); // Fails: cannot convert parameter 1 from 'const char *' to 'const char *&' F(pChr2); // Succeeds return 0; } ...Show All
mikrosuft iostream.h
Ciao a tutti, sto provando a usare visual c++: ho creato un'applicazione console con il seguente sorgente: // // PRIMO.CPP // Il primo esempio in C++ // #include <iostream.h> main() { cout << " CIAO MONDO! "; return (0); } Ma compilando mi da errore: dice che non puo includere il file iostream.h Io pensavo che le librerie venissero trovate in automatico. Cosa devo impostare grazie ciao:) ...Show All
AJNothing82 stringstream causes memory link VC++ 2005?
This simple program seems to leak LOTS of memory when compiled in VC++ 2005: int _tmain( int argc, _TCHAR* argv[]) { for ( int i = 0; i < 100000; ++i) { ::Sleep(1); std::basic_stringstream<TCHAR> str; str << _T( "Current iteration: " ) << i; } return 0; } CRT: Multi-threaded debug or Multi-threaded I compiled and ran the same piece of code in VC++ 2003 and I don't see ANY leaks! Any ideas ...Show All
spirit_of_pk Strange compiler error (C2664)
void f1(const int a[2][5][3]) { } void f2() { int b[2][5][3]; f1(b); } Causes the following error in VS6: C:\Roman\Projects\simulator\tmp\src1.cpp(6) : error C2664: 'f1' : cannot convert parameter 1 from 'int [2][5][3]' to 'const int [][5][3]' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast I note also that with only 2 or 1 dimension ...Show All
bugra Bitmap -> blob
I have an object of type Bitmap that I'd like to save in an SQL server (type blob), and then retrieve it. I can find a few examples of how to do this using MFC, but I'm not using MFC. :) I can't find anything in the documentation about this. Actually what I have is of type Bitmap. Ok, I guess you have a handle (HBITMAP) with your image so the next step is make a call ...Show All
angela221 UTF-8 related defect in fclose in msvcr80.dll and msvcr80d.dll
I have found a defect related to UTF-8 handling in the msvcr80 library. The first is quite simple to duplicate with a windows-32 console application as follows // test_utf8.cpp : Defines the entry point for the console application. // #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { FILE *fp; errno_t err; err = fopen_s(&fp, "utf8_file.txt","wt, ccs=UTF-8"); fwrite("1",1,1,fp); fclose(fp); return 0; } ...Show All
