|
hi,
Is that file is a valid assemly or component ?. What is the real use of that .dll file ?
If you see a your solution explorer you can see a References(lite brown color) folder. Please try to add your file in that folder.
Right Click and choose Add reference option. then try to browse the location of your .dll file( c:\winnt\system32) and click on open button.
Then tell me it is added properly or give you any error message.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
You do not include MFC. You use a merge module for that, and it should never be registered from a directory other than the [SystemFolder] . Merge modules take care of this for you.
Besides, mfc70.dll - or any MFC library - does not export DllRegisterServer so it is not registerable.
System DLLs should only be added via merge modules, and just about all of them are. This makes sure that DLLs are installed and uninstalled (if applicable) correctly.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Hi,
How do we get the exe name and location of a console/window application in C# ?
Any help will be greatly appreciated.
Thanx
saleem
|
|
|
|
|
Take a look at the Application class which provides some static methods to retrieve the information you want.
www.troschuetz.de
|
|
|
|
|
See System.Diagnostics namespace Process class etc. which lets you get all kind of data regarding the process. You will also be able to iterate through the collection of all the processes running on the system.
|
|
|
|
|
you can use
AppDomain.CurrentDomain.SetupInformation.ApplicationBase
and
AppDomain.CurrentDomain.SetupInformation.ApplicationName
to determine your applications location and name.
|
|
|
|
|
there are two pictures,i want make ALPHA ,how can i do?
i want a sample. thanks!
|
|
|
|
|
|
|
HI .
I have a Web Page , i want to access an IP and Port through this Web page . I want to send and recive data on that IP and Port.
1... Is ASP.NET is better for Web page writting.
2... IS i need a web service that Connect to that IP and Port. and send and recive data.
if yes then how can i handle soockets in Web Service.
or is there any otehr way to connect through web page .
my Client is written in VC++ 6 ,with which Web page will connect .
thanx
Regards.
|
|
|
|
|
(1) I am not sure whether or not an asp.net page will let you have native code to connect to a socket. I think it should. Anyway, you can always have call to an external COM object or a .net library which will encapsulate the socket part.
(2) asp.net will offer better performance and faster development for complex web pages. For a simple web page it will hardly make any difference what platform you are using.
(3) You can handle sockets by using the Socket class in .net class library (or CSocket in MFC). Read on MSDN or several articles on Code Project about how to use sockets.
Best of luck !
|
|
|
|
|
Hello,
can anyone help me in solving this issue.
I have a string like
"76/78NagdeviSt2ndFlrNagdeviM3" using regular expressions
I would like to change it to
"76/78 Nagdevi St 2nd Flr Nagdevi M3"
Thanks in advance.
Regards,
Abraham
|
|
|
|
|
First can I suggest you get hold of Expresso or one of the other tools that lets you play with Regexes so you get the correct one.
I believe you are trying to insert a space in front of every upperCase character, so the simplest Regex is ([A-Z]) . Unfortunately however you cannot just Replace these as then you would end up with 76/78 agdevi t2nd lr agdevi 3
<br />
Regex regex = new Regex("([A-Z])");<br />
input = regex.Replace("76/78NagdeviSt2ndFlrNagdeviM3"," ");<br />
Instead use a MatchEvaluator. This example demonstrates named targets, which is not the simplest way to achieve what you require, but does scale better with more complex Regexes.
<br />
private string UpperEvaluator(Match match)<br />
{<br />
return " "+match.Groups["upper"].Value;<br />
}<br />
<br />
public string AddSpaces(string input)<br />
{<br />
Regex regex = new Regex("(?'upper'([A-Z]))");<br />
return regex.Replace(input, new MatchEvaluator(this.HtmlStripEvaluator));<br />
}
|
|
|
|
|
dear all,
i need to write a program (.dll or .other) in C#,
i'll use to make a query to a database (MS Access) through IE (Web)
1. I Have a database (MS Access)
2. My friend will use my site to take a string from database using parameter e.g http://mysite/grade.something?id=bryan
3. i'll use the parameter bryan to make a query to database
4. the result will be sent to my friend (he'll use get method)
5. the result must be free from HTML tags (only the result)
anyone can help me...
i realy have no clue on this
i need to write it in ASP.NET (C #)
thanks...
Alit Atmaja
|
|
|
|
|
Perhaps you should ask this question in the ASP.NET forum, then?
Seems to be a more appropriate place.
Regards,
mav
|
|
|
|
|
Yes Alit, please use asp.net forum for such queries. For this time I have the following reply:
Any Web Server based response would contain some amount of HTML irrespective of whether you are working with IIS, Apache, a .net Web Service or whatever… So you can’t have that condition.
But with asp (or asp.net) you will have enough luck, to custom format your returning HTML. So you can embed your answer in any HTML tag of your choice and let your friend know the tag name to parse for getting the answer. The rest of the HTML can be ignored.
|
|
|
|
|
Is there anyone willing to help me figure out how to get a basic restaurant program working? it uses a microsoft access database and has basic things such as showing a menu, showing an order etc. If anyone will let me email them the files so they can take a look to see where i have gone wrong it would be much appreciated.
Thanks!
|
|
|
|
|
I would be willing to take a look. I recently was working on a general quiz program that drew its info from an Access DB.
|
|
|
|
|
I am trying to create a Scheduling/appointment control that look similar to Outlook's scheduling.
I have already created most of the control and can draw appointments the way I want. The one issue I am having has to do with displaying conflicting appointments on the schedule in a way that is similar to Outlook.
Does anybody have some tips or can point me in the right direction to learn how to do this?
Thanks,
Eric
|
|
|
|
|
Hi all,
I am writing a fairly simple VS.NET addin (my first). One of the things I need to do: add an item (or a few) to the default context menu in the editor window. My guess is that I need to manipulate some member of the Commandbars collection, but I don't know which (there are about 210) or quite how. Can anyone point me to a good resource? None of the Addin examples I looked at here did this...unless I miss it...which is always possible
Thanks in advance,
Bill
|
|
|
|
|
First, be sure to read the Automation and Extensibility Reference[^] in the Visual Studio .NET documentation if you haven't already.
Second, MSDN[^] has had many good articles in the past about extensibility in Visual Studio. You can find most of them under Extensibility Articles[^].
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Hi !
I search some tutorials for Irda programming with the .NET Framework, i want to write some application to exchange datas with my mobile phone via Irda and my laptop
Thx in advance
Alex
|
|
|
|
|
Any replacement for VB replace function in C#? Thanks. 
|
|
|
|
|
Would you mind elaborating? There's Regex.Replace , String.Replace , and StringBuilder.Replace in the .NET BCL (base class library). I recommend searching the .NET Framework SDK documentation which should be installed on your machine (installs by default with Visual Studio .NET, as by default with the standalone .NET Framework SDK).
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
You can call the Vb replace function from C#.
First, add a reference to the Microsoft Visual Basic .Net Runtime componet to your project.
Then call
Microsoft.VisualBasic.Strings.Replace("123456", "234", "789");
--
Aaron Eldreth
|
|
|
|