Click here to Skip to main content
15,913,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Snapshots via ToolHelp Pin
David Crow14-Oct-07 17:09
David Crow14-Oct-07 17:09 
AnswerRe: Snapshots via ToolHelp Pin
Richard Andrew x6415-Oct-07 2:41
professionalRichard Andrew x6415-Oct-07 2:41 
QuestionSocket Connectioin via Proxy Pin
Ghasrfakhri14-Oct-07 8:31
Ghasrfakhri14-Oct-07 8:31 
AnswerRe: Socket Connectioin via Proxy Pin
Mike Dimmick14-Oct-07 9:40
Mike Dimmick14-Oct-07 9:40 
Questionbuild C++ COM for 64-bit platform Pin
George_George13-Oct-07 21:25
George_George13-Oct-07 21:25 
AnswerRe: build C++ COM for 64-bit platform Pin
Mike Dimmick14-Oct-07 10:00
Mike Dimmick14-Oct-07 10:00 
GeneralRe: build C++ COM for 64-bit platform Pin
George_George14-Oct-07 20:32
George_George14-Oct-07 20:32 
GeneralRe: build C++ COM for 64-bit platform Pin
Mike Dimmick15-Oct-07 11:38
Mike Dimmick15-Oct-07 11:38 
1. Yes, that's correct.

2. It sounds like you have a mix of native C++ and .NET projects in your solution. For this you'll probably have to define each of the projects manually (use the Platform drop-list next to each project in Configuration Manager).

Off-topic for this forum but relevant to your project: .NET code is inherently processor-independent - it's compiled for the specific processor architecture at runtime - but you may need to mark your code for x86 or x64 as appropriate. By default it's 'Any CPU', that is, it can run in either a 32-bit or a 64-bit process. If this is a class library (a DLL) it will be compiled to the right architecture for the process it's being loaded in. An EXE will be compiled to 32-bit code on a 32-bit OS, and run as a 32-bit process, and as 64-bit code on a 64-bit OS (and run as a 64-bit process).

You should check your .NET code for anywhere it invokes native code or makes use of the size of a pointer - perhaps casting an IntPtr to a specific-sized integer? - to ensure that you've defined the arguments correctly. Always use IntPtr when it's a pointer parameter.

If required to do things differently on the different platforms, you can mark the code explicitly as x86 or x64. You might do this if there's a function that you need that's only implemented on one or the other.

I'm guessing 'Mixed Platforms' is when you have some projects in the solution set for one platform and some for another.


DoEvents: Generating unexpected recursion since 1991

GeneralRe: build C++ COM for 64-bit platform Pin
George_George15-Oct-07 22:49
George_George15-Oct-07 22:49 
Questionhow to include esc character in a string? Pin
ShilpaPotnis13-Oct-07 17:00
ShilpaPotnis13-Oct-07 17:00 
AnswerRe: how to include esc character in a string? Pin
Mark Salsbery13-Oct-07 17:14
Mark Salsbery13-Oct-07 17:14 
GeneralRe: how to include esc character in a string? Pin
ShilpaPotnis14-Oct-07 11:41
ShilpaPotnis14-Oct-07 11:41 
QuestionNeed the registry contents for VC6 files Pin
followait13-Oct-07 15:51
followait13-Oct-07 15:51 
AnswerRe: Need the registry contents for VC6 files Pin
Joan M14-Oct-07 7:15
professionalJoan M14-Oct-07 7:15 
GeneralRe: Need the registry contents for VC6 files Pin
followait15-Oct-07 18:39
followait15-Oct-07 18:39 
QuestionEntry Point for Executable Pin
Richard Andrew x6413-Oct-07 14:28
professionalRichard Andrew x6413-Oct-07 14:28 
AnswerRe: Entry Point for Executable Pin
Mark Salsbery13-Oct-07 17:38
Mark Salsbery13-Oct-07 17:38 
GeneralRe: Entry Point for Executable Pin
Richard Andrew x6414-Oct-07 5:56
professionalRichard Andrew x6414-Oct-07 5:56 
QuestionMessage Removed Pin
13-Oct-07 11:24
Armond Sarkisian13-Oct-07 11:24 
AnswerRe: C++ -- Help Pin
Mark Salsbery13-Oct-07 11:36
Mark Salsbery13-Oct-07 11:36 
QuestionProblem with code from msdn AddAccessRights [modified] Pin
selecta13-Oct-07 10:37
selecta13-Oct-07 10:37 
AnswerRe: Problem with code from msdn AddAccessRights Pin
Mike Dimmick14-Oct-07 10:34
Mike Dimmick14-Oct-07 10:34 
QuestionC++ Help Needed Pin
vivekphlp13-Oct-07 8:23
vivekphlp13-Oct-07 8:23 
AnswerRe: C++ Help Needed Pin
Mark Salsbery13-Oct-07 10:00
Mark Salsbery13-Oct-07 10:00 
AnswerRe: C++ Help Needed Pin
bob1697213-Oct-07 13:54
bob1697213-Oct-07 13:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.