Answer Questions
wyx2000 datagrid from vc6 to vc8 can not work
i copy the .h and .cpp file about datagrid control which used in vc6 to vc8(because i do not master the datagrid control which in vc8),it can build and excuse successful on the machine which have vc6.but can not work on the machine which do not have vc6. the solution use shared MFC DLL,because i use extended MFC dll in the solution. and i already register the control in the machine which do not have vc6. before i resgiter it show me some e ...Show All
boulderbum Deploying a DLL
Greetings, I have a DLL that gets loaded from (my) javascript subsystem that executes within the environment of a major, industry stanard, trading application. The DLL was developed using C++ and VS2005. The DLL does NOT use the Common Language Runtime. It uses MSMQ via importing: #import "mqoa.dll" no_namespace The good news is that the DLL works perfectly, on my system. The bad news is that if I send it to ...Show All
Ian Picknell warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
I have a .NET Class Library that is linking in a static library which has code callbacks defined with __stdcall. On compile I get the warning: warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead How can I correct this is does it not matter There isn't any code to show -- these are just functions in a static lib that are native Win32 with calling convention __ ...Show All
IainDowns pow(2,31)
In Microsoft visual studio .net 2003 C++ it seems that pow(2,31) returns a negative number and pow(2.0,31.0) returns a positive number Is there a service pack that corrects this problem Thanks, Tom I’d wager good money that you are capturing the return value of pow(2,31) in an int... the return value of which is a 1 followed by 31 zero’s and that a signed int as being negative... which ...Show All
Chike Link warning:LNK4199
Hi, I am compiling a code in Visual Studio 2005. I could not find, How to remove warning. Follwing warning is showing: Linking... LINK : warning LNK4199: /DELAYLOAD:OleAcc.dll ignored; no imports found from OleAcc.dll Please suggest me. Regards Piyush Jain I don't know if this works in previous versions but to get rid of this warning in VC2005, you need to go to the Input section of the linker, then g ...Show All
punkrock Passing variables to threads
Hi all, I have a question regarding the use of threads and passing variables. I am using the _beginthread. I would like to pass variables such as some strings, ints and class objects to a thread which I want to use to save files with. I.e. there is a bitmap/object/whatever, I have a file name for it, and some additional information in type int. What is the best way of passing those variables to the thread Many thanks in advance. ...Show All
Barry Mavin std::string Construction
I have created a standard C++ Win32 Console application in Visual Studio.NET 2005. The code is as follows:- // StdTest.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <string> int _tmain( int argc, _TCHAR* argv[]) { std::string s( "Test" ); return 0; } Building and single stepping this code in Debug mode is fine and the varia ...Show All
BMA Error including wab.h
By including wab.h I get a wchar redefinition in wabdefs.h: E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\wabdefs.h(78) : error C2371: 'WCHAR' : redefinition; different basic types E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(266) : see declaration of 'WCHAR' when I use VC8. How can I solve it If you compile without /Zc:wchar_t (i.e. /Zc:wchar_t- ) it should be ...Show All
Linda stdafx.h(15) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory
Created in VS6 Tried to compile in VS2005 Express and got the above error. Installed the latest Platform SDK which contains afxwin.h, but get the same error. Here is the code: // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if ! defined (AFX_STDAFX_H__38F261C7_B9D0_11D1_94AA_444553540000__INCLUDED_) #define AFX_STDAFX_H__3 ...Show All
Joe Pontes wtsapi32.h missing
Hello everyone, wtsapi32.h seems to be missing in whidbey beta2. It is in the platform sdk releases. What is the reason behind this and how do I overcome this I need to detect if the program is running under terminal server or not. Thanks in advance. I just looked at my beta installation and wtsapi32.h seems to be there. It should be in the same directory as windows.h at Microsoft Visual Studio 8\VC\PlatformSDK ...Show All
rtconsultant LPCTSTR
Hello all, I've got another question. I'm using a bit of code written by Nishant Sivakumar ( http://www.codeproject.com/tips/CSMTPConnection2.asp ) to send an email programmatically. The code is relatively straightforward and there are no problems during compile EXCEPT... Error 3 error C2664: 'ATL::CMimeHeader::SetSender' : cannot convert parameter 1 from 'const char [19]' to 'LPCTSTR' SetSender is a member of CSMTPConn ...Show All
Lucio F BOOST with visual c++ 2005
Has anyone been able to get the full BOOST suite compiled and working with vc++ 2005 (and as in full I mean threads, bgl, lambda, date and time etc) Arash Partow I completely agree that.. The memory leaks in the fundemental stream classes is a 'show stopper' . Before thinking of BOOST or any other libraries, we need to get a non-leaking version of iostream classes. Thanks, Madhu. ...Show All
Brack0893 First painful steps with VC++ Express 2005 Beta 2 and DirectX9
Hi! I am currently making my first experiences with .NET programming and the Beta 2. My first questsion is simple: Is there any way to rename the default "Form1" class/files (which are created when generating a new Forms project) in an easy way I solved the problem by searching for all occurences of "Form1" through the whole solution and replacing them by e.g. "MainWindow". This seems very complicated. My second question is more complex. I tr ...Show All
Sal M 64 bit porting Issues
Hi Albert! We are planning to port our COM, mfc applications to 64 bit platform. Any pointers to the resources for 64 bit porting issues, guidelines, casestudies, newsgroups and forums would be of great help. See: Porting 32-Bit Code to 64-Bit Code http://msdn.microsoft.com/library/en-us/vccore/html/vcgrfPorting32BitCodeTo64BitCode.asp See: Overview of the compatibility considerations for 32-bit program ...Show All
KevinSwiss SetDlgItemInt it only show Integer If i want to show float number what should i do ?
i want to SetDlgItemInt by Float Number. but it is not have a function SetDlgItemFloat can some one help me to show Float Value in DialogBox. int a = 0,b = 0; float dx = 0.0; UINT Ai = GetDlgItemInt(IDC_EDIT1,&a,TRUE); UINT Bi = GetDlgItemInt(IDC_EDIT2,&b,TRUE); dx = (Bi-Ai)/100; UINT sum = dx; SetDlgItemInt(IDC_EDIT3,sum,TRUE); 1>d:\work sheet\integrate\integrate\integratedlg.cpp(168) : warning C4244: ...Show All
