Answer Questions
Jesse Albert Running a very simple Win32 app on a comp without VC++ 2005 Express
Hi! I have installed VC++ 2005 Express and the Platform SDK according to the instructions on MSDN: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx Compiling and running the following program on the dev computer works like a charm: http://www.winprog.org/tutorial/simple_window.html I then changed to release-mode, turned off debugging in the project properties and copied the .exe to another computer without VC++ 2005 Exp ...Show All
Jordi How to check my ODBC data connection open or not?, pls help
VC ++ 6.0 CDatabase db; db.OpenEx(_T("DSN=DSNklse;UID=sa;PWD="";")); TRY { db.ExecuteSQL(sqlQuery); } CATCH(CDBException, pEx) { TCHAR buff[80]; pEx->GetErrorMessage(buff,80); AfxMessageBox(buff+sqlQuery); pEx->Delete(); } END_CATCH I need to execute an insert query atleast 3 seconds once in my program, i dont want to open ODBC connection everytime i excute the "sqlQuery" like above. if i ...Show All
Snakiej error C2065: 'GWL_USERDATA' : undeclared identifier
Hi all I am trying to convert a VC6 project to x64 with VS2005 beta 2. Most of the stuff comes over fine except for warnings. One issue however that has me stumped is this error from the subject line. Somehow it doesn't seem to be able to find GWL_USERDATA (the same happens with GWL_WNDPROC btw), however, when hovering the mouse over these defines, they come up in the tooltip just fine. Any ideas anyone They ...Show All
esteth Linking Error
Hi I am currently working on porting an application to a 64-bit environment. While linking, i am getting an error as: LINK : warning LNK4068: /MACHINE not specified; defaulting to X86 Here, if i dont specify the machine type it is defaulting to X86, which i dont want. My machine is 64-bit AMD-Opteron. The OS i am using is Windows 2003 server x64 edition. I want to know, what option i should use to specify my machine type. Options whi ...Show All
BarrySumpter Explanation of code required
Can anyone explain me this code. I want detailed explanation. like what is "GetHeight()*info.dwEffWidth" doing in code. BYTE* pData= new BYTE[GetHeight()*info.dwEffWidth]; BYTE* pSrc=GetBits(head.biHeight- 1 ); BYTE* pDst=pData; for ( long y= 0 ; y < head.biHeight; y++){ memcpy(pDst,pSrc,info.dwEffWidth); pSrc-=info.dwEffWidth; pDst+=info.dwEffWidth; } plz reply... Hi, than ...Show All
VB.net Marcel Image Color Management in VC++ 8 Platform SDK
I'm converting a VC++ 6 MFC app to VC++ 8 using Visual Studio 2005 Standard. The existing app uses Image Color Management, so it #include's icm.h. In the VC++ 6 environment, it is included from the Platform SDK [$(ProgramFiles)Microsoft SDK\include] directory. A Visual Studio .Net installation delivers a version of the Platform SDK in a subdirectory of the VC directory [$(VCInstallDir)PlatformSDK] and this directory is setup to be used for in ...Show All
dron747 Help ID generation not available for ActiveX Control
Hi there, Well we have been using an ActiveX control in VC6 for quiet a long time and generating help ID for them but , when We start using newer versions of VC Studio the Option for generating Help IDs for ActiveX control is not displayed and we have difficulty using Context Sensitive Help, If there is any work around Please help us out. Regards Usman Mahmood In VC6 the option is located in the Control pro ...Show All
circusfire CHTMLView bug with IE7 beta 2
I am using Visual Dev 2003 with a CHTMLView derived Class as part of a larger application. The content pages have HTML wrappers with Flash content. It's been working fine with IE 5 & 6, but after installing IE 7 beta 2, I get the equivalent of "cannot display web page" on the first clicking of an internal or external link after timing out. When I return to the previous page and click the link a second time, it works! Anybody else r ...Show All
Feldhege Manifest file when using both /MD and /MDd DLLs
I have an application that can be built in debug (/MDd) or release mode (/MD). This application uses third-party DLLs that are built with /MD; for example the Microsoft PDH.DLL. There is no memory-mismatch issue since these third-party DLLs handle properly all memory allocations/deallocations. When I build my application in release mode (/MD), everything works. When I build it in debug mode (/MDd) and run it, I get the&n ...Show All
Chris Forbes finding book.
I need some book about windows message mechanism,hook,event,instance.,handle,ect.... I have learn the c++,now begin to learn vc++,but, for this kind of concepts to me is a puzzle. who may tell me this kind of book thanks. this one http://www.charlespetzold.com/pw5/ ...Show All
Rafael Turon Exception at same memory location
I am debugging a multithreaded server application that is giving me a buffer overrun error unexpectedly when I run large number of requests through it. I was able to use techniques suggest by a previous question I posted on this forum. Now, the debugger is breaking on the following error: First-chance exception at 0x003a4072 (ApxString.dll) in PriceService.exe: 0xC0000005: Access violation reading location 0xbaadf011. void A ...Show All
evil KID BUU vs2005 and the C runtime library
Hello, I've got VS2005 and I'm producing a standard C application, not using .NET/clr or MFC, ATL, etc. I wish to simply produce an executable without any manifest or reliance on any files other than the executable itself and the C runtime. Do I need to set 'Allow Isolation' to No (/ALLOWISOLATION:NO) in the Linker/manifest configuration section and in the Manifest Tool/Input and Output set 'Embed Manifest' to No (this changes the flags to /o ...Show All
cvwilletts C2825 error ?
the following code will generate a C2825 error in VS2005Beta2 July: #include "stdafx.h" #include <vector> #include <iostream> int _tmain( int argc, _TCHAR* argv[]) { int i = 3, j = 6; std::swap< int >(i, j); //C2825 //but use std::swap<> <i, j>; will be ok return 0; } I don't know why this , but who else can explain it to me many th ...Show All
Niall Baird GetDC function
"anonymous@discussions.microsoft.com" <lewix@discussions.microsoft.com> wrote in message news:5c171357-414c-4815-a105-05f8076d448d_WBRev3_@discussions.microsoft.com > This post has been edited either by the author or a moderator in the > Microsoft Forums: http://forums.microsoft.com Hi, > i hope i'm not posting a newbie question. > I have to get current DC handler of my window dialog, so (as > ...Show All
Suncity break point is n/a while debuging
I have a porblem while debug a class: Althout I clean and recompile/relink a project successfully with "debug|win32" configuration, the devenv always not allow me to debug a class. The devenv said " source files does not match the original version " - but I've clean and recompile it! At the same time, this class is debug-enabled before some modification. ;-( & ...Show All
