|
|
Colin Angus Mackay wrote:
Let me know if it works or not.
It did work. I just had to manually add a reference to System.Web.dll and it all worked.
Thanks!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
my project use an access data base (mdb file) and i want to encrypt that file to prevent abusing the database but if i change the file my project cannot use it because adoconnection can not connect to this encrypted file and if i decode the enrypted file in my project,during running of my project the database file can be abused in out of my application area. what should i do with this problem...
thanks
m.rastgar
|
|
|
|
|
when i create a setup for my project with .net setup project when i use it in other windows which .net framework isnt installed on it, the setupping of my project doesnt work and its error message says you need .net framework to run this setup. what should i do to have a complete setup of my project without any problems in the computers which .net framework isnt installed on them. if the answer is to install .net framework on destination computer, how should i do that. please tell whole procedure ...
thanks
m.rastgar
|
|
|
|
|
A .net application can only run on a machine with .net framework installed.
here is an article on the deployment of framework issue:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/dotnetframedepguid1_1.asp?_r=1
-spif2001
|
|
|
|
|
Hello all,
I hope someone out there can help me! I am beginning to write a Karaoke hosting program, similar to Mimic Audition 2 and MTU Hoster (a quick GOOGLE will show you the apps I mean).
In order to start off, I need to be able to rip CD+G discs in to BIN or ISO format, in a similar way that something like CDR-Win can do. I found the C# CD-Ripping code on this site, and thought I'd give that a quick whirl, but unfortunately when trying to play the ripped file back through a karaoke player I get one frame of graphics, and an awful lot of noise rather than music.
Has anybody got any ideas how I could go about doing this? I believe the graphics are sub-channel data to the audio file.
Any suggestions greatly received!
Paul.
|
|
|
|
|
Hello
I have a question :P.I need to know where the top + left locations of the richtextbox carot (ie. where the text is being entered !) when the keypress event is fired. Does anyone have any idea of how to go about this?
Thanks in advance.
|
|
|
|
|
Does anyone know of any examples of calling a web service in C# without using the Visual Studio auto class creation system?
Problem: I have a web service which is not stuck on any one URL. How do I allow a user to change that URL on the fly and call another instance of the Web Service.
|
|
|
|
|
|
I didn't want a simple answer. I wanted the long drawn out theoretical solution that leads to the simple answer after many hours of ripping my hair out.
Indeed, there is a property called 'URL' that can be modified from the default. Silly me.
-Thanks
|
|
|
|
|
Hello all,
Thanks for all help that you provide.
I made a C# Com+ component with 4 method all of them marked with [autoComplete(true)]. and i use this Component in another desktop application i need to make a one transaction for this method if one fail should all rollback
and this the code:
the component code:
<br />
[AutoComplete(true)]<br />
public int SaveTimeCard()<br />
{ <br />
DB.ConStr = DB.ConnectionSTR(DB.Current_DB());<br />
int RowNBR = DB.Insert("Insert Into TimeCard_Info .....");<br />
}<br />
[AutoComplete(true)]<br />
public int SaveTimeCard_STD()<br />
{<br />
DB.ConStr = DB.ConnectionSTR(DB.Current_DB());<br />
int STD_Row = DB.Insert("Insert Into TimeCard_STD....."); <br />
}<br />
[AutoComplete(true)]<br />
public int SaveTimeCard_OT()<br />
{<br />
DB.ConStr = DB.ConnectionSTR(DB.Current_DB());<br />
int OT_Row = DB.Insert("Insert Into TimeCard_OT......."')");<br />
}<br />
[AutoComplete(true)]<br />
public int SaveTimeCard_DT()<br />
{<br />
DB.ConStr = DB.ConnectionSTR(DB.Current_DB());<br />
int DT_Row = DB.Insert("Insert Into TimeCard_DT.....");<br />
}<br />
the application us this component:
<br />
DataAccess.SaveTimeCard() ;<br />
DataAccess.SaveTimeCard_STD();<br />
DataAccess.SaveTimeCard_STD(); <br />
<br />
DataAccess.SaveTimeCard_OT(); <br />
DataAccess.SaveTimeCard_OT();<br />
<br />
DataAccess.SaveTimeCard_DT(); <br />
DataAccess.SaveTimeCard_DT();<br />
hay
|
|
|
|
|
Anybody know where there is a third-party freeware MailMessage provider that works with the majority of operating systems that does not require a CDO wrapper provided by Outlook.
I cannot be certain that the end user would have Outlook installed or what their operating system is, and the SMTPMailer code provided in several of the articles on www.codeproject.com require the implementation of the CDO object. While I understand that there is an MX record that could somehow be interfaced with, I suspect that this MX record is more related to extracting a file from an existing Outlook installation.
Would like to bundle a freeware version that would simply send an email message with all of the required parts namely, from, to, bcc, subject, message and attachments. There is not any need to receive any or extract any email messages, only to send them from a C# windows form.
Would appreciate some input. Thanks
|
|
|
|
|
First of all, CDO does not require Outlook. The CDO client is installed with Win2K and above, and the CDO server comes with Microsoft Virtual SMTP Service and Microsoft Exchange.
It's good that you don't want to use it, however, since it still requires CDO and does not work on Windows 9x platforms.
While it's not hard writing an SMTP mailer yourself (lookup RFC 821, or click "Search comments" and search for "SMTP" to see many comments in this forum (primarily form me) to see examples and links to more documentation.
If you search for SMTP .NET[^] (not C#, since the compiled assemblies isn't dependent on the source language, which is the whole point of the CLI) you can find many components both free and commercial. Another library I've heard good things about is IP!Works![^], which has fully managed components you can find at http://www.ipworks.com/portal/dotnet/[^]. There's components for simple SMTP as well as full S/MIME support for sending signed and/or encrypted messages.
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 have tried to write an SMTP mailer from the very good articles written on the subject at www.codeproject.com. Because I am not connected to the internet on the computer in which I am writing the application, and because I am unable to complete the deployment application to install the application on another computer that does have an internet connection, I am in a bit of a dilemma.
The error message that I get from the application is that it "could not access CDO.Message object" Does this error message simply stem from the fact that the computer on which the application is developed is not connected to the internet, and that it would access the CDO.Message object if it were connected? Also, is this issue regarding the O/S really perhaps an unnecessary concern as the .NET framework only installs on Windows 2000 and above?
Also, I would appreciate some assistance with the Windows installer program. I have written a comment about three pages backwards with three questions. I need to be able to install the application on the web enabled computer so that I could test this part of the application. Please locate the comment and respond as to how to get all forms to be packaged and deployed for installation on a Windows 98 computer that is web enabled. Thanks
|
|
|
|
|
new_phoenix wrote:
could not access CDO.Message object
That should sum it up: the object can't be created. That means the machine doesn't have either the CDO client or server automation server installed that defines CDO.Message. Your connection with the Internet has nothing to do with it. To send mail, however, you will need a connection or a program (via MIME, for example, which there are many other articles about here on Code Project) that can cache the mail until you are connected. Most SMTP mailer components I know of assume a connection and don't cache.
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]
|
|
|
|
|
...unnecessary concern as the .NET framework only installs on Windows 2000 and above?
that is not correct. Net framwework installs and Net applications will run perfectly on Win98 and above systems. Only Win95 has been left out.
What I'm not sure about is if u can compile .NET code in Win98 or Me. I know that u cant install Visual Studio but I have never tried to compile some sourcecode with the .Net compiler in these operating systems....but thats besides the point of this post.
|
|
|
|
|
How can i Change the Contex Menu Background color ??
|
|
|
|
|
The only way AFAIK is to set the MenuItem s' OwnerDraw property to true and draw the menu yourself.
mav
|
|
|
|
|
You have to create an owner-drawn menu. There are several articles here on Code Project if you search for "owner-drawn menu"[^] you can find lots of articles that describe setting images for menus, adding color support, etc.
The basics of it is that you handle the DrawItem event of the MenuItem class. Better yet is to extend MenuItem and override OnDrawItem to make your code more robust. This does mean, however, that you'll lose some design-time support since VS.NET does not use your extended class. A simple workaround if you absolutely have to support or use the designer is to design the context menu using the standard classes defined in the BCL then go into the source code and re-define them later. You could always add design-time support as well, but your development costs may outweight the relatively cheap costs of many third-party libraries that already produce such robust menus.
For an overview and some detail - including links to more content - about design-time capabilities of .NET that VS.NET and other designers use and extend, read Enhancing Design-Time Support[^] in the .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] [My Blog]
|
|
|
|
|
Whenever I try to send a message and receive a message in MSMQ I keep getting this wierd error. Or more specifically, when I pickup the message I get:
Body <error: an="" exception="" of="" type:="" {system.invalidoperationexception}="" occurred=""> System.Object
As the attribute for body.
I have it sending fine (I checked in the queue itself). The picking up is asynchronous.
Here is the code that I used for picking it up:
My service initialisation:
MQ.MessageReadPropertyFilter.SetAll();
MQ.ReceiveCompleted += new ReceiveCompletedEventHandler(handleMessage);
IAsyncResult MQResult = MQ.BeginReceive(new TimeSpan(1, 0, 0), MQ);
...
private void handleMessage(object sender, ReceiveCompletedEventArgs e)
{
// get the message from the queue
System.Messaging.Message Msg = ((MessageQueue)e.AsyncResult.AsyncState).EndReceive(e.AsyncResult);
...
If anyone had a suggestion I would appreciate it sooo much!
Cheers,
Jim
|
|
|
|
|
So what's the exception type and message that you get thrown? Where is the exception thrown? What is "Body System.Object"?
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]
|
|
|
|
|
Sorry, what I mean to say is that when I am looking at the object during runtime with the debugger, this is the property that is held by the object. I do not actually see an exception being thrown, it is a property of the object. I don't even understand how that is possible, but this is what I see when I debug.
Thanks for your help,
|
|
|
|
|
What object are you reflecting in the debugger where you see that property? And what do you mean by "this is the property that is held by the object"? Are you saying that the object is defined as a certain type, or that the property reference an object that you don't understand?
We don't know what you're thinking nor anything about your project. You need to be as verbose and clear about what you're asking.
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]
|
|
|
|
|
Hey
I am building a Server/Client program, there i am using Async connection with OnConnect and OnDataRecieved.
When the client is connected to the Servern and the server is closing with out sending any Closing command to the client the client craches.
The error is not handle and there is no code for this error?
I am using try/catch in all functions in this connection class, and no data transfer is made out side this class.
Is there a way to se when the connection is lost like OnDisconnect or somthing?
Best Regards
Jimmy
The Program is built lite this article (http://www.codeproject.com/csharp/socketsincs.asp)
|
|
|
|
|
You might want to tell us what class(es) you're using, since OnConnect and OnDataRecieved could be methods on any class. Is this a class in the .NET BCL, or some third-party library? There are no such methods defined in the .NET BCL 1.x.
Sending a QUIT or similar message is the job of your protocol. You do not get this for free. HTTP, for example, will quit (unless HTTP Keep-alive is being used) once it downloads the HTTP headers plus the body that is described in the Content-length HTTP header. DICT client and server communications are done when the client sends QUIT.
If you're using asynchronous connections you need to handle the exception in the async callback you defined. You should whether or not the server tells the client it's quiting because something could happen. It's the Internet, with lots of routers and gateway and at least two machines which could experience problems.
There would be no OnDisconnect because communications could be interrupted (your gateway or modem drops the connection when data was not being sent) that would not signal the client nor the server code. The only way you'd know is if you were sending data and all of a sudden the data stream stopped unexpectedly. These are the cases you must handle in a client/server application.
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]
|
|
|
|