Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
[0] Download the attachment and save it after removing the underline at the end of dexpert.zip_.
=> Since I can't upload zip file, send me an empty email to ehaerim@gmail.com. Then I will send the source project zip file.


[1] Build CLSCTX_ACTIVATE.sln inside COMExe32 folder

=> COMExe.exe gets created in the folder 32.

[2] From DOS prompt, COMExe /RegServer

[3] Build Tes.sln inside COMExe32Test folder

=> COMExeTest32.exe gets created in the folder parent folder of 32.

=> rename it to COMExeTest32_CLSCTX_ACT.exe.



[4] Comment #define USE_CLSCTX_ACTIVATE in Test.sln's stdafx.h and rebuild the project.

=> COMExeTest32.exe gets created in the parent folder of 32.

[5] Run both COMExeTest32.exe and COMExeTest32_CLSCTX_ACT.exe from:

- win 7 64 bit : both the same results

- win xp 32 bit : COMExeTest32_CLSCTX_ACT.exe gives 0x80070057(E_INVALID_ARG) error.



[6] According to MSDN, both should have the same results on any platform.



[7] Could you check why I get E_INVALID_ARG error on win xp 32 bit?



thank you.

HaeRim



MSDN says about CLSCTX:


The flags CLSCTX_ACTIVATE_32_BIT_SERVER and CLSCTX_ACTIVATE_64_BIT_SERVER flow across computer boundaries. If the computer that hosts the server is running the 64-bit Windows, then it will honor these flags; otherwise it will ignore them.
Posted
Comments
Richard MacCutchan 21-Nov-12 9:04am    
I don't think anyone is likely to do this. Try to explain the problem in more detail so people can make an attempt to help you.
ehaerim 21-Nov-12 9:12am    
Please tell me how to upload a test project file.
It's the best way to explain the issue.
thx
Richard MacCutchan 21-Nov-12 9:30am    
That will not help either. Most people here do not have the time or the resources to download your project and run a lot of tests. You need to do the diagnosis and explain what is happening and what you expect should happen.
ehaerim 21-Nov-12 11:27am    
[1] Create a COM exe singleton server and register it.
[2] Run a client to CoCreateInstance(CLSCTX_ACTIVATE_32BIT_SERVER)
[3] On windows 7 64 bit, it will work ok. In Windows xp, it will give you E_INVALID_ARG. But MSDN says it will simply be ignored on Windows xp, not E_INVALID_ARG error.

Richard MacCutchan 21-Nov-12 12:12pm    
Well, I guess you should be reporting this to Microsoft.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900