|
could anyone helpme out....i want to make a windows application that has phone, fax, answering machine facilites...this can be acheived through TAPI provided u have a TAPI compliant modem....how do i get strated on this...all the hlp on MSDN is in C/C++ and i cant make head or tails of it....and....i misgt be a little slow in replying as i am unable to access the internet everyday...
|
|
|
|
|
|
Do yourself a big favour. TAPI and C# are a bad combination, especially if you've never written any TAPI applications in C++ before.
My strategy when writing TAPI applications in C# was to use COM Interop with my own TAPI COM wrapper. I also built an XML service in C++ that fired the TAPI events via TCP as XML.
Until Microsoft come out with a better approach to managed TAPI, you are better off writing your TAPI code in C++.
Michael
CP Blog [^]
|
|
|
|
|
Hi~
The wparam and lparam is the pointer of the variable. I would like to pass string to the other window using sendMessage method in C# by P/Invoke. Then, as wparam and lparam is pointer and C# no support pointer. Then how to send the message with string in C# using sendMessage?
|
|
|
|
|
http://pinvoke.net/[^]
I'd give you a reference directly to the page you need, as there is an example of what you want, but the site doesn't allow you to directly go to a page. You have to search or browse for the API you are looking for.
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
Colin Angus Mackay wrote:
I'd give you a reference directly to the page you need, as there is an example of what you want, but the site doesn't allow you to directly go to a page. You have to search or browse for the API you are looking for.
Not entirely true, here is the link: SendMessage[^].
- Nick Parker My Blog | My Articles
|
|
|
|
|
For the pocket pc,
why, sometime when the program try to show a form by calling the .Show() method, the form was not shown. However, the form title appear in the task list(memory)?
|
|
|
|
|
Hi,
I am using the System.Web.Mail in a C# program to send email and i want to make sure my program will be usable. I would like to know if everyone who has dotnet installed (dotnetfx.exe for example) will be able to use the program.
I think there is an issue with the CDO/CDONT but i am not quite sure what it is. My application must support WinME, Win2000 and WinXP with dotnet installed. If anyone knows more about the System.Web.Mail compatibility, it would be really appreciated
Thanks
HM
|
|
|
|
|
The documentation for System.Web.Mail.SmtpMail states that only the following platforms are supported: Windows 2000, Windows XP Professional, Windows Server 2003 family.
Indicative code for getting the OS and CLR version numbers is as folows:
using System;<br />
Console.WriteLine("OSVersion: {0}", Environment.OSVersion.ToString());<br />
Console.WriteLine("CLRVersion: {0}", Environment.Version.ToString());
Please see my article
here[^] for more details:
Salil Khedkar [^]
|
|
|
|
|
There is an issue, and you should not use System.Web.Mail . It requires a CDO server to be installed. Current CDO servers include Microsoft Exchange Server (requires NT Server; the Exchange version may require newer NT-based Windows platforms as well), or the Microsoft SMTP Services which, IIRC, started shipping with Win2K server (perhaps professional, but I don't remember off-hand).
Sending SMTP messages is really not hard at all. Just search this site for SMTP using the search box at the top of every page, or even this forum by clicking "Search comments". I personally have posted numerous examples, as well as sample source in an article on this site to resolve MX records for a specified domain (you need to know the SMTP server to send mail to). The SMTP protocol - at least for simply sending messages with no more support than MailMessage would give you - is very simple.
Note that in .NET 2.0 (formerly named "Whidbey") Microsoft will ship as part of the BCL SMTP and MIME support in classes that do not require CDO.
The System.Web.Mail classes - which should be evident by the parent namespace - is meant for use with ASP.NET, which is typically (but not limited to) run on IIS, where you can also install the Microsoft SMTP Services to send or forward mail, as well as queue received mail.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Thank you for your reply,
Actually, i was using a class called smtpEmailer that i took on this site http://www.codeproject.com/csharp/smtpemailer.asp but i have a problem with the attachments, which i need to send.
Everything works fine with the class, but when i send a email with an attachment, the email is sent/received with no problem but i can't see the attachment. It is like the message had no attachment at all, except for the fact that the attachment is there, since an empty body message is 400k big (when i put a 400k attachment). I searched a lot to find a solution for this problem but haven't found yet. This is the commands i send in the socket for a basic email with a text file attachment:
<br />
HELO xxxx.xxxxxx.com<br />
MAIL FROM:<xxxx@xxxxxxxxxx.com> <br />
RCPT TO:<xxxx@xxxxxxx.com><br />
DATA<br />
MIME-Version: 1.0<br />
X-Mailer: SST_OnSite.SmtpEmailer<br />
FROM: xxxxx@xxxxxxxx.com<br />
TO: xxxx@xxxxxxxx.com<br />
REPLY-TO: xxxx@xxxxxxxxxx.com<br />
DATE: Wed, 27 Oct 2004 19:20:34 GMT<br />
SUBJECT: TEST<br />
Content-Type: multipart/mixed; boundary="#SEPARATOR1#"<br />
<br />
<br />
This is a multi-part message in MIME format.<br />
<br />
--#SEPARATOR1#<br />
Content-Type: application/octet-stream; name="a.txt"<br />
Content-Transfer-Encoding: base64<br />
Content-Disposition: attachment; filename="a.txt"<br />
Content-ID: <a><br />
<br />
<br />
--#SEPARATOR1#<br />
Content-Type: multipart/alternative; boundary="#SEPARATOR2#"<br />
<br />
<br />
--#SEPARATOR2#<br />
Content-Type: text/plain; charset=iso-8859-1<br />
<br />
<br />
Your email client does not support MHTML messages<br />
<br />
<br />
--#SEPARATOR2#<br />
Content-Type: text/html; charset=iso-8859-1<br />
Content-Transfer-Encoding: quoted-printable<br />
<br />
<br />
This is the body of the message<br />
--#SEPARATOR2#--<br />
<br />
<br />
--#SEPARATOR1#--<br />
<br />
<br />
.<br />
QUIT
I know the server works fine (i have no problems with attachments when i send them with System.Web.Mail namespace or with Outlook)
Any Help with this would be appreciated
Thanks
Hugo Migneron
|
|
|
|
|
The fact that you're sending a.txt as an "application/octet-stream" may be the problem as your server or the receiving server - especially these days - is probably stripping it off as a potential threat. Extensions with MIME don't matter, but certain things can be inferred as common threads. Sending a .txt file as a binary stream is one obvious one. You should send it as some text/* MIME type using the appropriate charset with the Content-dispostion set to "attachment".
If you're having problems with a particular third-party library like this, you need to contact the author to get it resolved. There are also a lot of other third-party applications out there to handle this. A good - but cheap - commercial library you can get from IP*Works![^]. S/MIME is even supported if you need it.
Writing your own also isn't that hard, especially if you end up using the same template and don't need the extensibility of a library. I've done this in a couple cases. It's quick, simple, and - for something that doesn't change often - cheap!
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
I understand how to interrogate the mouse position in an event handler, but how do I programmatically force the mouse cursor to a specific x,y position?
Thanks!
Mark
|
|
|
|
|
Assign the wanted screen coordinates as a Point to the static Cursor.Position property.
www.troschuetz.de
|
|
|
|
|
hi,
i'm creating a simple windows form control,this control contains
some panels but during design time this panels are accessible by clicking on them,i want to know what should i do inorder to disable selecting these panels...
|
|
|
|
|
You wrote :
some panels but during design time this panels are accessible by clicking on them,i want to know what should i do inorder to disable selecting these panels...
I am not getting your clear requirement. What got from this is , you are trying to control the accessiblity on design time. Accessibility is only come into picture when you use that perticular form.
If you can give clear picture of your requirement. Then i can able help you out.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
hi,
you know,during design time i can select,change or move the panels but i dont want to do so,i just want to change he properties of panels by the properties panel which the parent gives to us...
thanks..
|
|
|
|
|
|
Select the control - then in Properties window set the "Locked" property to True. This will stop you being able to move or resize the control whilst still being able to change its properties. Is this what you were trying to do ???
|
|
|
|
|
infact this is not what i need,in this way(locking the control)users can find out that there is a control inside the parent control.pretend statusbar,when we add a panel to it ,just a panel shows inside the statusbar but we can not choose it.maybe i'm using the wrong way....is it possible that during design time controls draw a schema of their runtime ?
|
|
|
|
|
Hi all,
using C# code i have created a new user account (by using Directory Service Entry) because i need that a new user is created when i install my application so that my app can run as like that user.
The problem is that the new user accont appears on win xp start up and i don't want others users could see than the account exists.
So i'm searching if exists a property ( in ADS_USER_FLAG_ENUM for setting user properties) can be adding in order to make hidden the user control created at the start up, after installation of my app!..but no result of my search!
Someone can help me and have got any suggestion to hide an user account using C#.NET code?
Thanks
Regards
|
|
|
|
|
Sounds strange.
I'd say, if some Software creates a new Account on my computer, i'd want to know.
Cheers
Sebs
|
|
|
|
|
The code is about like this,
and i think that there would be a property for the account to hide it when login after reboot the machine:
///
/// account property user flags
///
const int ADS_UF_PASSWD_CANT_CHANGE = 0x40;
const int ADS_UF_NORMAL_ACCOUNT = 0x200;
const int ADS_UF_DONT_EXPIRE_PASSWD = 0x10000;
// add the user
DirectoryEntry account = root.Children.Add(AccountName, "user");
account.Invoke("SetPassword", new object[] {pw} );
account.Invoke("Put", new object[] {"Description", "Built-in account for my
Application"});
// set a few properties
int userfalgs = EXPIRE_PASSWD|ADS_UF_NORMAL_ACCOUNT|ADS_UF_PASSWD_CANT_CHANGE;
account.Properties["UserFlags"].Add(userfalgs);
account.CommitChanges();
|
|
|
|
|
Yeah, sounds very strange!
Why does your application need it's own account? Usually, the only time this ever needs to happen is if your application is running as a service...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Infact, suppose that the application must run as a service and i need to do this
|
|
|
|