Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CoInitializeSecurity

Status
Not open for further replies.

skiflyer

Programmer
Joined
Sep 24, 2002
Messages
2,213
Location
US
So, I wrote a COM based app with managed extensions in Visual Studio .NET 2003.

It worked, all was good in the world.
I decided I don't want to install the .NET framework with my program.
I made a new project (Win32 Console), turned of the managed extensions, added some header files, commented out a few, got rid of this, added that... all sorts of little tweaking to get it to compile.

Leaves me with two errors left...
CoInitializeSecurity : identifier not found, even with argument-dependent lookup.
CoInitializeEx : identifier not found, even with...

Now, I was able to replace CoInitializeEx with CoInitialize, and then just comment out the CoInitializeSecurity section... and it compiled, and it runs. But my call to WaitForSingleObject(waitEvent, INFINITE); clause now waits forever. My guess is that since I'm not running CoInitializeSecurity my event handler doesn't have permission to signal the event.

Now I'm confused as to what may be happening, CoInitializeSecurity should be found, and even the IDE pops up all its helpful hints for me when I enter it.

Any ideas?

-Rob
 
Question solved and withdrawn... it's not as if it's a single answer, so I won't bother answering it here... but if anyone else runs into this problem I'll leave the thread on notify and you can ask me.

-Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top