|
-
February 10th, 2010, 04:38 PM
#1
C sharp assembly
Hi guys,
Im new to programming and I am having lots of trouble with an issue. I would be very greatful if anyone could offer any advice. I have an application that makes calls to a dll in c#.net. I will call this app1. I am not able to modify this application.
I know that the application takes the values of six variables that iv defined in the dll. (x,y,z,xangle,yangle,zangle)
I also have a second application, a vb windows form. I am attempting to modify the values of these variables through this windows form so that hopefully app1 can take these modified values from the dll.
I modify the values through the windows form, but when app1 takes these values they have gone back to zero. Obviously the values are not changing in the dll.
I dont know much about programming but I beleive I probably need to change some assembly configuration to allow this to happen. I am aware that there are probably easier ways to do this but I am confined to this method. Any help would be greatly appreciated.
-
February 11th, 2010, 03:48 AM
#2
Re: C sharp assembly
and you're doing some kind of virtual programming, aren't you? where's the source code? do you want us to guess?
win7 x86, VS 2008 & 2010, C++/CLI, C#, .NET 3.5 & 4.0, VB.NET, VBA... WPF is comming
remeber to give feedback  you think my response deserves recognition? perhaps you may want to click the Rate this post link/button and add to my reputation
private lessons are not an option so please don't ask for help in private, I won't replay
if you use Opera and you'd like to have the tab-button functionality for the texteditor take a look at my Opera Tab-UserScirpt; and if you know how to stop firefox from jumping to the next control when you hit tab let me know
-
February 11th, 2010, 12:42 PM
#3
Re: C sharp assembly
 Originally Posted by Andre2
Hi guys,
Im new to programming and I am having lots of trouble with an issue. I would be very greatful if anyone could offer any advice. I have an application that makes calls to a dll in c#.net. I will call this app1. I am not able to modify this application.
I know that the application takes the values of six variables that iv defined in the dll. (x,y,z,xangle,yangle,zangle)
I also have a second application, a vb windows form. I am attempting to modify the values of these variables through this windows form so that hopefully app1 can take these modified values from the dll.
I modify the values through the windows form, but when app1 takes these values they have gone back to zero. Obviously the values are not changing in the dll.
I dont know much about programming but I beleive I probably need to change some assembly configuration to allow this to happen. I am aware that there are probably easier ways to do this but I am confined to this method. Any help would be greatly appreciated.
I think you've created a new post about this subject. I'm not sure you gave some details here in the other post. It looks like you can't change App1. But you can change the VB form. By the way is VB.NET or VB6? The ideal solution would be to define a service that you can call directly from the VB app and from the C# dll assuming you can change the DLL. That way the App1 will be able to benefit without having to change.
-
February 11th, 2010, 10:49 PM
#4
Re: C sharp assembly
On a fundemental level, although you share a single dll between the two applications, in reality a copy of the dll is loaded into each process space of the app.
So unless the dll has been designed with interprocess communication in mind, changing values in [one copy of] the dll through the first application won't show up in [the other copy of] the dll in the second application.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|