Hi Folk

An aside from the computability issues. I am running into a specific error where the
best solution eludes me. Suggestions please!

I am looking for advice from someone who may have seen this before:

Compiling manifest to resources...
Linking...
sub_proc.obj : error LNK2019: unresolved external symbol __imp__InitializeSecurityDescriptor@8 referenced in function _process_init
Debug/make_msvc.net2003.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\cygwin\usr\src\make-3.81-2\Debug\BuildLog.htm"
make_msvc.net2003 - 2 error(s), 205 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

This is apparently from:

/* We can't use NULL for lpSecurityDescriptor because that
	   uses the default security descriptor of the calling process.
	   Instead we use a security descriptor with no DACL.  This
	   allows nonrestricted access to the associated objects. */

	if (!InitializeSecurityDescriptor((PSECURITY_DESCRIPTOR)(&sd),
					  SECURITY_DESCRIPTOR_REVISION)) {
		pproc->last_err = GetLastError();
		pproc->lerrno = E_SCALL;
		return((HANDLE)pproc);
	}

*ANY IDEAS?*

I love this group and have been reading it for a long time, but rarely posted. I imagine
my posts will be more frequent now that I am working with these tools. Thank all of
you for a great thread.

73
-Grace
NNNN
z

Linking...
sub_proc.obj : error LNK2019: unresolved external symbol __imp__InitializeSecurityDescriptor@8 referenced in function _process_init

You need to link with Advapi32.lib.

Thank you for your response. I am having trouble now locating Advapi32.h and there is no referance to this library in the Cygwin sources (gnu) for this library. I do see an advapi32.h in the Debugging tools or Windows Directory. I see that there is a file named AdvAPI32.Lib in the Platform SDK\Lib folder. Specifically, how should I modify the code to use the appropriate library? 73 -Grace NNNN z

Using the IDE, navigate as follows (more or less)
Project->settings
Find the linker tab
Find a dialog which says "additional libraries"
Add "AdvAPI32.lib" to the list of libraries already present.

Then build again.

Thank you very much. I added advapi32.lib to the link by right clicking the
project and clicking "properties". I also change wsprintf to sprintf because
that was not working. magic happened. success. Thanks again!
73
-Grace
NNNN
z

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.