According the The file "Casting Difference Between C and C++ May Cause C2105" (please see http://support.microsoft.com/kb/q88434/#appliesto), We know the following code: void main() { char *p; ((long *)p)++; // If the file is saved as a .CPP, this } will be have error C2105 need l-value for c++. but for .c file is ok. Now I have very some problem (when i try to translate some codeing from c => c++ ). So how to fix the problem? func() { MIDL_STUB_MESSAGE _StubMsg; int __RPC_FAR *nCount; RPC_STATUS _Status; ... *(( int __RPC_FAR * )_StubMsg.Buffer)++ = *nCount; ... } I got erro messsage for "*(( int __RPC_FAR * )_StubMsg.Buffer)++ = *nCount;" the message is "error C2105: '++' needs l-value" How to fix the problem? Thanks!!!
rat crown
Posts
-
How to Fix error C2105 ? -
Platform SDK problen!I got the reason, I have to change the VC/tools/option/directory! Now every thing are OK. Thanks! Its my first using SDK.
-
Platform SDK problen!Thank! I got some mistake. I forgort change the directore in the VC++ tools/option. Any way thank you for fig out my problem.
-
Platform SDK problen!Thank you. You fig out my mistake, Sorry for that! But why I can not built the project? The error message is "rror C2065: 'PDWORD_PTR' : undeclared identifier" ? I use the $inlcude statment as following... I think it sgould be OK. #include "C:\Program Files\Microsoft Platform SDK\Include\BaseTsd.h" Thanks
-
Platform SDK problen!===================== BaseTsd.h File Size: ===================== Name Size Modified BaseTsd.h 9 KB 4/14/2005 ============================================================== Windows® Server 2003 SP1 Platform SDK Web Install Description: ============================================================== [Overview] The Microsoft® Windows® Software Development Kit (SDK) provides the documentation, samples, header files, libraries, and tools you need to develop applications that run on Windows. The applications you develop with this edition of the SDK can run on the x86, x64 and Itanium-based versions of Windows Server 2003 SP1, Windows XP SP2, Windows XP x64 Pro Edition, and Windows 2000. A new custom install allows you to select components you wish to install on a more granular level. [System Requirements] Supported Operating Systems: Windows 2000; Windows Server 2003; Windows XP 64-bit; Windows XP Professional Edition ; Windows XP Service Pack 1 Development Tools. To build the C/C++ samples, you must have a C/C++ compiler. If you are using Microsoft Visual C/C++®, run it at least once before installing the SDK. This will ensure that the environment variables are correctly configured. To build the Visual Basic samples, you must have Microsoft Visual Basic®. This SDK does not support working with Microsoft Visual C/C++®, 6.0 as support for VC 6.0 has ended. The last SDK that will work with VC 6.0 is the February 2003 Edition, you can order a CD on the fulfillment site. Side by side installations are not supported. ======================== BaseTsd.h File content: ======================== /*++ Copyright (c) Microsoft Corporation. All rights reserved. Module Name: basetsd.h Abstract: Type definitions for the basic sized types. Author: Revision History: --*/ #ifndef _BASETSD_H_ #define _BASETSD_H_ #if !defined(_MAC) && (defined(_M_MRX000) || defined(_M_AMD64) || defined(_M_IA64)) && (_MSC_VER >= 1100) && !(defined(MIDL_PASS) || defined(RC_INVOKED)) #define POINTER_64 __ptr64 typedef unsigned __int64 POINTER_64_INT; #if defined(_WIN64) #define POINTER_32 __ptr32 #else #define POINTER_32 #endif #else #if defined(_MAC) && defined(_MAC_INT_64) #define POINTER_64 __ptr64 typedef unsigned __int64 POINTER_64_INT; #else #if (_MSC_VER >= 1300) && !(defined(MIDL_PASS) || defined(RC_INVOKED)) #define POINTER_64 __ptr64 #else #define POINTER_64 #endif typedef unsigned long POINTER_
-
Platform SDK problen!Hello I have some problem about Platform SDK using, I need help, but please read carefuly to know the problem and the situation first, Thanks!!! Problem: ======== Windows Data Types: for examples: ULONG_PTR PDWORD_PTR are undeclared identifier in MFC/VC++/Platform SDK!!! Installation' situation: ======================== I have intalled the Platform SDK on my computer. The SDK install file was downloaded from MicoSoft website ( Windows® Server 2003 SP1 Platform SDK Web Install ). The setup file name is: PSDK-x86.exe. The address is : http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3- A93E-40C0EC4F68E5&displaylang=en Platform SDK files situation: ============================= After installed, on my computer, under the folder C:\Program Files\Microsoft Platform SDK\Include, I got the file BaseTsd.h, but in the file, there are no these Data types declarations!!! Ms Platform SDK documentation Say: ================================== All these Windows Data Types are declared in BaseTsd.h So, some body can fig out the problem? Thanks So, some body can fig out the problem? Thanks So, some body can fig out the problem? Thanks
-
Help for Platform SDK!!!I download the file:PSDK-x86.exe from the microsoft website ( Windows® Server 2003 SP1 Platform SDK Web Install ) http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en Then I installed it on my computer. In the folder: C:\Program Files\Microsoft Platform SDK\Include , I got the file BaseTsd.h, But in the file, there are no the Data type declared!!! Thanks
-
Help for Platform SDK!!!I download the file:PSDK-x86.exe from the microsoft website ( Windows® Server 2003 SP1 Platform SDK Web Install ) http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en Then I installed it on my computer. In the folder: C:\Program Files\Microsoft Platform SDK\Include , I got the file BaseTsd.h, But in the file, there are no the Data type declared!!! Thanks
-
Help for Platform SDK!!!Windows Data Types: for examples: ULONG_PTR PDWORD_PTR are undeclared identifier in MFC/VC++/Platform SDK!!! But I check the <> all these Windows Data Types are declared in BaseTsd.h??? Whay? How can I got these Windows Data Type's declare?!! Thanks
-
Help for Platform SDK(1) Some Windows DataType are not declared! for examples: DWORD_PTR, PDWORD_PTR, ULONGLONG... I check the SDK Document, Say these data type declared in BaseTsd.h! But I opened headfile, I did not found these data type declare. Whats wrong? Thanks!
-
Help for Platform SDKI have tried Platform SDk, I download the SDK from MS-Website, and installed it. But i found the Platform SDK seem not well! My question are: 1) Some Windows DataType are not declared! for examples: DWORD_PTR, PDWORD_PTR, ULONGLONG... I check the SDK Document, Say these data type declared in BaseTsd.h! But I opened headfile, I did not found these data type declare. Whats wrong? 2) After install Platform SDK, int the c:\C:\Program Files\Microsoft Platform SDK\ folder, there are many head file'name and system files'name are same as in the folder : C:\Program Files\Microsoft Visual Studio\VC98 So which file I will be useing in my projects? And how do I use the different fiels?
-
Layered Service Provider - WSCInstallProvider problem!Hi, I got error code 10013 for the follow fuction. But I can't fix the problem, some body help , please!!! if(WSCInstallProvider( &filterguid, (unsigned short *)filter_path, &iplayerinfo, 1, &errorcode) == SOCKET_ERROR) { AfxMessageBox( "WSCInstallProvider Error : " + itos( errorcode ) ); return; }
-
new user' test onlyhi