|
|
Thanks a lot, I'll see these things.
|
|
|
|
|
I switched from Visual C++ 6 to a C# .NET solution. In my original VC 6 project I was linking a .lib file to my code. The .lib was providing me some functions to a CORBA orb.
This .lib file doesn't seem to be working with my new .NET project. Does anyone know if you can use libraries coded in legacy VC++ 6 with the new .net framework or do I have to rewrite the libraries in C# .net as well?
Thanks,
Zahid
Regards,
Zahid
|
|
|
|
|
You should be able to, but I don't know how.
Kevin
|
|
|
|
|
I have many VC 6 libraries that just work in both the 2002 and 2003 Visual Studios. Now, you didn't mention, but your still compiling C++ code, right? The C# or VB.NET stuff won't be able to use those libs.
If you still can't get the libs to work, how about listing what the errors are? Perhaps something might need some tweaking.
--
Joel Lucsy
|
|
|
|
|
Some header includes are now officially redundant in 2003 so Microsoft is more 'ANSI compatible' and portable. If these lib headers include some now redundant libraries, you will have problems. A colleague of mine had linker errors. If these circumstaces sound familiar then changing your projects build order is needed to remove them.
Al.
"When I left you I was but the learner, now I am the master" - Darth Vader
|
|
|
|
|
There seems to be a lot of headaches that become apparent on this message board when it comes to topics such as "enforcing database constraints" or "enforcing complex business rules in the database" or just plain trying to automate the simple tasks that it seems we developers do all the time. From nudging controls around on a form, to getting 30-50 forms created for a simple application. These mundane tasks take a lot of time away from what you really want to do - program.
I work for a company called Dataphor with a new development tool that not only automates the application development process, but also allows for a declarative approach to enforcement of complex business rules, constraint enforcement, etc.
The product I am speaking of is Dataphor - an automated application environment. By combining the power of a businews rules engine, the automation of a meta-data repository, and the flexibility of a RAD environment, Dataphor provides an unprecendented level of prductivity and maintainability.
Dataphor is a product of Alphora and is built on the .NET Framework in C#. More information may be found at alphora.com.
-Brady
|
|
|
|
|
Does anyone know if .net contains any functionality that can be used to break apart asian language text into words? I.E. Thai, Japanese etc?
I'm looking for some way to support Asian languages in an indexing routine that our app uses to make a dictionary of terms from a lot of user entered records so they can be quickly searched for.
An election is nothing more than the advanced auction of stolen goods.<br />
- Ambrose Bierce<br />
|
|
|
|
|
I am getting the following error:
"File or assembly name l1i5zqix.dll, or one of its dependencies, was not found".
The above assembly name is random.
The exception comes from an Exchange Event Sync, written in .Net as a serviced component, that gets registered on a public folder. The events sync is hosted by COM+ on Windows 2003. The problem happens when the event sync fires.
Any ideas are greatly appreciated.
thanks,
Jamil
|
|
|
|
|
I am developing a "smart program" of sorts in the sense that there are many client programs and one server. At the moment, the clients are communicating with the server using a NetworkStream. My goal in this software is to have multiple "module pairs" residing on the server that the clients can choose to run at their discretion.
This is the way that I have the framework for this suite set out right now:
- Client opens communication with server using NetworkStream
- Client requests a list of all installed modules on the server
- Client chooses a module to run. At this time the server launches its own executable for that module (i.e. something that would interface with the hardware sitting on the server to take test data). Additionally, the server sends the client an executable (down the NetworkStream) that it can use to view that data.
An example of this would be a module pair that displays outside temperature. The server would have the thermometer hooked into a port, and the server half of this module pair would just take readings every so often. The client half of this module pair would display the temperature reading and various options, and it would communicate with the server half of the module pair. I imagine that it would display a form to accomplish this, and I would like to have that form as a MDI child of the main application window.
I already have a method for the client and server halves of the module pair to communicate, so this does not concern me at the moment. However, I've detailed it here if it helps or if it piques your curiosity. The client and server (applications) expose a class conforming to the Stream interface, but this class just tags the communication with an ID and sends it across the common NetworkStream. The receiver reads the ID and forwards the data packet to the correct Stream. In other words, it's just like the client and server module halves have their own dedicated Stream, but in reality it's all being sent through one already established NetworkStream.
Ok, so now my actual question. I *don't* know how to get the client module half from the server's repository to the client itself. My original plan called for simply sending the executable itself and launching it client-side, but this doesn't take into account things like dependencies. Is there any way for me to transport a fully self-contained assembly to the client for it to execute? Am I making things overly complicated? Perhaps there's a much better way to do this that I'm not thinking of.
I'm using Visual Studio .NET (.NET 1.0). Any help or suggestions in this matter would be greatly appreciated. Thanks!
~ Levi
|
|
|
|
|
LeviB wrote:
Is there any way for me to transport a fully self-contained assembly to the client for it to execute?
Hi,
Why not prepare ZIP archives on the server which contain all the neccessary modules for running the "client half" on the client, and send them instead? Just unzip on the client to a folder per "client module half" and run.
Does this make sense in your project?
Btw, I really liked your app description
Regards,
Serge (Logic Software, Easy Projects .NET site)
|
|
|
|
|
Yeah, I thought about just zipping it up and letting it go, but that would require the people who write the modules to make a list of all necessary assemblies beforehand. I was looking for something more along the lines of the server determining which files are required at runtime, then sending the entire dependency tree down the stream until the client can reconstruct everything.
Thanks for the response!
|
|
|
|
|
Hi again,
Have you found a solution yet? If not, there is one more hint:
Use Assembly.GetReferencedAssemblies() method for determining all the neccessary assemblies for your application. It returns an array of AssemblyNames.
Regards,
Serge (Logic Software, Easy Projects .NET site)
|
|
|
|
|
|
Hi all,
is dynamic loading of appDomains also work in compact framework .net ?
I have run example in dynamic loading in .net framework,
but since compact framework dont have AppDomainSetup Class,
so what can I do ?
The code in dynamic loading in .net framework is in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp05162002.asp
but when the port the code to compact framework, the code doesn't work coz AppDomainSetup Class is missing in .net CF.
Can anyone point to sample code or articles on it ?
Thanks
|
|
|
|
|
Can somebody point me on an info, how to integrate smart tags into a visual studio editor?
Thanks,
Boni
|
|
|
|
|
Hi, this ia a simple question:
I want to popup a window (a Form derived class) and leave the Focus where it is. When I call "Show" on a Form with no parent, this Form gets the Focus and removes the Focus from the currently focussed Form, which results in the activ caption of my application becomming inactive. There is no problem, when the Form is a child window of some other Form or Control in my application, but then it is bound to the ClientRect of its parent. But I need it to show anywhere. The ToolTip class exactly behaves like I want my Form to behave, so there must be a way. I try to set the Focus back to where it was, but I cannot find out where it was and even if I could it makes the caption flicker.
Any Ideas?
Gerhard
|
|
|
|
|
I’m dabbling with some of .Nets reflection features and am running into the following problem…
I have the following code,
Assembly myAssembly = AppDomain.CurrentDomain.Load("MyAssembly");<br />
<br />
Type myType = localDataAssm.GetType("MyNameSpace.MyType", true, true);<br />
<br />
Object myObjectInstance = Activator.CreateInstance(myType);<br />
<br />
myType.InvokeMember("MyProperty", System.Reflection.BindingFlags.SetProperty , null, myObjectInstance, new object[] {"blah"});
The InvokeMember step fails with “Member Not Found”, even though the said property does indeed exist.
This seems to be straight forward to me so what am I missing??
Woke up this morning...and got myself a blog
|
|
|
|
|
Some things to check:
1) Is your property ReadOnly?
2) Is is private?
3) What does the QuckWatch window say when you open it for "myObjectInstance" ?
Regards,
Serge (Logic Software, Easy Projects .NET site)
|
|
|
|
|
Hi Serge, thanks for replying. The property is not readonly or private, it looks like this...
public string MyProperty<br />
{<br />
get<br />
{<br />
return _myPropertyValue;<br />
}<br />
set<br />
{<br />
_myPropertyValue = value;<br />
}<br />
}
However, the quickwatch window gives me what I expect to see. All the fields and properties are initialized to null or 0 (strings and ints)
Woke up this morning...and got myself a blog
|
|
|
|
|
Hi again,
Noticed one thing - you get a reference to the assembly to the var called "myAssembly" but you get a particular type with the following line (localDataAssm):
Type myType = localDataAssm.GetType("MyNameSpace.MyType”, true, true);
Object myObjectInstance = Activator.CreateInstance(myType);
I'll give an example on how I instantiate objects via Reflection:
<br />
' persistedType should be a full type name, e.g. "MyNamespace.MyClass"<br />
function myCreateObject(persistedType as string)<br />
return AppDomain.CurrentDomain.CreateInstanceAndUnwrap("HereGoesAssemblyFriendlyName", persistedType)<br />
end function<br />
Regards,
Serge (Logic Software, Easy Projects .NET site)
|
|
|
|
|
Thanks Serge, I didn't know about that particular method. In any case, it turns out I wasn't casting my parameter to the correct type and that was the problem.
Thanks for your help Serge, I appreciate it
Woke up this morning...and got myself a blog
|
|
|
|
|
|
I'm trying to use ExecuteCommand method of
System.ServiceProcess.ServiceController in my C# service controller app to
make a custom call to my service. I'm getting this exception and my service
never gets my custom message code? What's wrong?
Permissions?
Can ServiceControllerPermission help somehow? I'm lost a little.
Thanks a lot!
|
|
|
|
|
I would like to use Reflection to retreve the method in the dll.
Is the compact framework support it?
Because it throw an exception of with this message:
"An unhandled exception of type 'System.NotSupportedException' occurred in mscorlib.dll
Additional information: NotSupportedException"
with executing this code:
// loading a assembly
Assembly assembly = Assembly.LoadFrom("\\Program Files\\addintest\\calculate.dll");
// Invoking a method which is called "sum"
"foreach (Type type in assembly.GetTypes ())
{
object ibaseObject = Activator.CreateInstance (type);
object[] arguments = new object [] {10, 17.11};
object result = type.InvokeMember ("sum",
BindingFlags.Default,
null,
ibaseObject,
arguments);
this.textBox1.Text = result.ToString();
}"
|
|
|
|