TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Surya Mukherjee
NA
2
646
LoadLibrary fails
May 21 2019 11:57 PM
I am tying to create WebApp (using Asp.Net Core 2.2) for existing desktop app which is written in C++. From my webapp I am trying to invoke the process. Inside the c++ exe it is trying to load some DLL which is failing in my case. Same thing is working fine when i directly invoke the desktop app from cmd.
Please suggest how to rectify this problem.
This is my webapp code where i am invoking the exe -
ProcessStartInfo sprbProcessInfo =
new
ProcessStartInfo();
sprbProcessInfo.FileName = @
"C:\Program Files\SmartPlant\Interop Publisher\SPRB.exe"
;
sprbProcessInfo.Arguments =
"\""
+ strSrcFileFullPath +
"\""
+
" -b "
+
"\""
+ strDestFileFullPath +
"\""
;
sprbProcessInfo.RedirectStandardOutput =
true
;
sprbProcessInfo.UseShellExecute =
false
;
Process oTranslateProcess =
new
Process();
oTranslateProcess.StartInfo = sprbProcessInfo;
oTranslateProcess.Start();
oTranslateProcess.WaitForExit();
oTranslateProcess.Close();
This is what I am trying to do in my exe -
LoadLibrary (csSolidsFile); ===> this call is failing
Reply
Answers (
1
)
ASP.NET SignalR real time projects
Xamarin forms Backed using heroku