troubleshooting Question

including exe file and using uuidof

Avatar of jadixon
jadixon asked on
System ProgrammingEditors IDEs
9 Comments1 Solution568 ViewsLast Modified:
I am attempting to use a keyboard application within a visual c++ solution. I have copied their example and put the following lines in the beginning of the cpp file:

#import "C:\Program Files\MountFocus\Keyboard\Kbd.exe"

Kbd::ImfSoftkeysPtr keybd(__uuidof(Kbd::mfSoftkeys));

If i run the solution I don't have a problem. My problem comes in when I execute the resulting exe from within another solution using CreateProcess. When I try to create the process it aborts. The main application still runs, but the one I am attempting to execute aborts with "This application ha srequested the Runtime to terminate it in an unusual way"

I am not well versed in C++, so any advice is appreciated!

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros