|
I built the DLL (Message.dll) using VB6 as an ActiveX DLL.
In VS 2003:
I used the Add Reference utility, COM tab to select the DLL and add it to my project.
Intellisense shows me the single function I created in the DLL.
I then added functions to the DLL and I want to reference them in my C# code. The IDE tells me I need to remove the reference to the old DLL before I can use the new one.
I see the Interop.Message.dll in the bin-Debug directory of my project.
I assume something needs to be removed/unregistered from the project before I can reference the DLL but I don't see how to perform the task.
|
|
|
|
|
I found the reference in the solution explorer and removed it there.
|
|
|
|
|
since your Dll not resides in GAC
The solution is so simple
In your project
1)Go to Add reference tab
2) then remove the dll who have added before
3.apply
4.Add the new dll once again
5.Now check that ur newly added functions will be
there
Hint:whenever u change the functions or methods in
the referring Dll (if u want that changes have to
be get reflected in ur application) then remove
the reference and add the reference once agian
Good Luck!
|
|
|
|
|
Thanks for the reply.
The problem is that the only place the dll is displayed is on the COM tab. I don't see how you remove a reference using that dialog box.
I used the Browse window to find the interop assembly and deleted the file thru that dialog. But the project still builds OK so that did not remove the reference.
Your statment 2) says "remove the dll".
Which tab are you referring to?
Where exactly am I viewing the dll to remove it?
I have since found the references in the solution explorer. I can remove the dll reference there. But for my understanding, I would like to duplicate your method.
|
|
|
|
|
1)-Click Reference
2)Select the dll u have added
3)Rt click and Remove it
Regards,
CVP
|
|
|
|
|
Hello,
I have the following problem creating a screen saver with multihead support:
I create a windows form that spans multiple monitors. In the constructor I resize the form to match the whole desktop - that works fine. As the last step, I change Location.X and Location.Y to the offset of the upper left edge of the desktop. In my testing case this is -1024, -768, since I moved the secondary display to the upper left of my primary screen.
The problem is, even when the values are set correctly (at least the debugger tells me that), the values will be reset and the window will be displayed at 0,0.
How can I force the form to be shown at the location I define in the constructor?
Thx,
Sebastian
|
|
|
|
|
Okay, I should have tried to set the startup form position property to 'manual'...
|
|
|
|
|
Hi
I'm looking for a C# implementation of the C++ sample, included in the DirectX 9 SDK. I tried google-ing and searching The Code Project, but didn't find anything. So I think I have to 'translate' the C++ files to C# ones. If anyone who knows where I can find C# "Depth Of Field" sample, or would like to help me translating the C++ files, please, contact me - f3r0[at]hotmail[dot]com
Thanks in advance,
Stan
|
|
|
|
|
Is it possible in VB.NET IDE to view the RESULT of the select statement if you're debugging an stored procedure on VB IDE? If not is there a tool that I could use so i could view the result of the query and even view the data on any temp table i created on stored procedure. Because i'm having problems seeing what data is injected on my temp table during debug mode.
Thanks.
|
|
|
|
|
I m writing a simple Chatting app'n using .Net Remoting.I kept a Client side remote object and one at serverside .The serverside remote object is published ! All the clients who register with it will be having a remote object.Server responds by calling back the client side remote method.
During registration process, i m passing the client side remote object as a parameter by reference only ,as the class of client side remote object is inheriting from MarshalByRef class.But it s raising the following exception:
Because of security restrictions System.Runtime.Remoting.ObjRef cannot be accessed.System.Security.SecurityException
Can some body help me in this regard please.
|
|
|
|
|
Remoting of MBR objects changed from .NET 1.0 to 1.1.
Here's an article by Ingo Rammer explaining what to do.
Regards,
mav
|
|
|
|
|
Hi,
On heading it says:
UploadmyFile.exe - Common Language Runtime Debugging Services
Application has generated an exception that could not be handled.
Process id =0x4fs(1268), Thread id=0x96c(2412).
Click OK to terminate the application.
Click CANCEL to debug the application.
I have this application written in VB.net that uploads data. I have few clients that does uploads data using ‘UploadmyFile.exe’ that’ s the vb.net application they only needs .net framework to run this .exe.
I have few clients which are able to upload without any error but 3 guys are having a problem. they are getting an error message box pop up where they get above error.
They reinstall the .net framework. They are not using win98 or dell.
Any idea what else can be wrong? and how to fix i? Again not all users are getting this error and they all are using the same UploadmyFile.exe.
Thanks,
|
|
|
|
|
I have seen these too! normally i find it happens when the app is compiled with one version and trying to run it on another, but why it happens I dont know....
top secret xacc-ide 0.0.1
|
|
|
|
|
by default the compiled assembly is placed inside the \bin directory
is there a way to alter this path? to set it to a folder out side of the solution?
thanks
Mahasen Bandara
|
|
|
|
|
Go to Project in the Solution Explorer. Right click it
Properties-->>Configuration Properties--->Build--->Output Path ...set here which u require
Hope this works
Naveen
|
|
|
|
|
Just wonder if there's a build in class in .NET Framework for unit conversion like converting meter(m) to kilometer(km), or pound(lbs) to kilograms(kg)
cheehool
|
|
|
|
|
...would be easy right?
Select the shortcut, from the file system view, and:
Press the delete key - NOTHING
Select Edit->Delete - NOTHING
Right click on the shortcut and select "Delete" - NOTHING
Great, so how do you delete one of these???
Aaron.
|
|
|
|
|
I used .net to build a gui, but the GUI was managed code. I'l like to get away from managed code by using win32. But the GUI builder doesn't seem to want to build a MDI User Interface? Am I missing something, are the preferences set incorrectly? What's the best way to build a GUI in Native C++ on a win2000 machine?
-Rob
|
|
|
|
|
|
I recently installed visual studio .net 2003 on my laptop that also has visual studio 6.0 installed.
When I invoked the help/search menu option and search for 'anything', it returns a list of search results in the 'Search Results' but the Title column contains a list of Titles each containing the single letter 'a'.
I suspect this might be a compatibility issue between vs 2003 and and artifacts left over from previous installs; I shudder to think about uninstalling and then re-installing all the current 2003 tools/toolkits, etc. I have on my machine.
Before I attempt this nightmare, I thought I'd ask around and see if someone ran into this problem and might have found a simple solution.
I looked on the internet for a solution, but so far I've had no luck.
Any help would be greatly appreciated.
Clyde Imagna (cpimagna@att.net)
|
|
|
|
|
anyone please me too, I'm crashing in the same problem.
I think that It maybe occurred from the permission of vs's service.
Please help us.
|
|
|
|
|
HI~
using C# compact framework, How can I:
1.add items in the start menu of pocket pc
2.add items in "new" in task bar in today screen of pocket pc
3.add an icon in the taskbar of the today screen of pocket pc. A menu appear when the user click the icon.
Thanks~
|
|
|
|
|
Is there some way to tell from within an assembly whether an app is running as a Web app or a Windows app?
Chen Venkataraman
|
|
|
|
|
I don't exactly understand ur question.
All web projects has to use the system.web
namespace to run as a web app.
U can use Ildasm.exe provided by .net framework
and check its mainfest if u see something like
.assembly extern System.Web u can know that it is
supposed to be deployed as a web app else win app.
cool man
|
|
|
|
|
Hi folks,
I'm new to Managed C++. I would like to know how can I implement a function
like this:
CWhateverClass **GetPointer()
{
}
Any help would be highly appreciated,
Mehdi Mousavi - Software Architect [ http://mehdi.biz ]
|
|
|
|