If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

How to make software to run outside visual studio environment

Hello,

I need some help with this "simple" problem...
my project solution looks like this:
1. project written in cpp in order to operate some old api (also written in cpp) the output here is lib file.
2. project that wrap the lib file and export a dll file
3. main project, written in c# that basically makes GUI for the first project.

when I compile wnd run in debug/release everything works fine.
I tried to publish the main project, or make new installer project
and everything looks ok except that when the program tries to works with the wrapper (my dll file) it crashes...

does anyone have any idea??
what do I need to do in order to run my software independently?

Re: How to make software to run outside visual studio environment

The only information I get is that the wrapper is missing some files..
my guess is that VS did not imported all necessary lib files (came with the API)
but even when I get these files manually, it still doesnt work outside the VS.

Re: How to make software to run outside visual studio environment

the api I'm using is wvapi.h taken from Tornado 2.2 .
the purpose of the program is to analyze vxWorks report..

In order to do that, I had to add to the environment variables some definitions,
add some additional include directories and make a lib project that communicates with this api.

After that, I've wrapped the lib file in dll , add it to my project, put some GUI around it and everything worked perfectly but only under the VS2010 environment.. (both release and debug modes).

The program is running. but, when I get to the part where I want to start analyzing a file,
(this is the place in the code where a new instance of an object is generated, this object needs to communicate with the lib project)
at this part I get an exception (its source is at the wrapper) that files are missing..
and the program cannot start some functions..

it looks like for some reason, my program does not know work the same in release mode and outside VS .

Re: How to make software to run outside visual studio environment

Re: How to make software to run outside visual studio environment

Windows has to be able to find the dlls your application depend on.

If your application doesn't work when runned on the same machine as you use for developing it (i.e. outside Visual Studio) that indicates that the dll you've built can't be found. See here for how Windows search for dlls http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx

If the issue occur on another PC .NET and/or msvc runtime might be missing on that machine.

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.