<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DevX.com Forums</title>
		<link>http://forums.devx.com</link>
		<description>DevX discussion forum for questions and answers on technical topics for developers.</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 01:20:55 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.devx.com/images/misc/rss.jpg</url>
			<title>DevX.com Forums</title>
			<link>http://forums.devx.com</link>
		</image>
		<item>
			<title>simulating alt+2 (keypad) combination</title>
			<link>http://forums.devx.com/showthread.php?t=173417&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 20:58:16 GMT</pubDate>
			<description><![CDATA[I am trying to print the corresponding Unicode character for alt+2 to the Windows console window. (the console doesn't display the character, but should display ^B instead)
The following doesn't seem to work. Just prints "2".


Code:
---------
keybd_event(VK_MENU,0 ,0 , 0); //Alt Press

Sleep(10);
keybd_event(VK_NUMPAD2,0, 0 , 0); // 2 Press

Sleep(10);
keybd_event(VK_NUMPAD2,0, KEYEVENTF_KEYUP,0); // 2 Release

Sleep(10);
keybd_event(VK_MENU,0,KEYEVENTF_KEYUP,0); // Alt Release

Sleep(10);
---------
Neither does this work. Just prints "2", again.


Code:
---------
	INPUT inputs = {0}; 
	inputs.type = INPUT_KEYBOARD; 

	KEYBDINPUT ki = {0}; 
	ki.wVk = VK_LMENU;

	inputs.ki = ki;
	SendInput(1, &inputs, sizeof(INPUT)); // Left alt

	ki.wVk = VK_NUMPAD2;
	inputs.ki = ki;
	SendInput(1, &inputs, sizeof(INPUT)); // Numpad 2

	ki.dwFlags = KEYEVENTF_KEYUP;

	ki.wVk = VK_NUMPAD2;
	inputs.ki = ki;
	SendInput(1, &inputs, sizeof(INPUT)); // Numpad 2

	ki.wVk = VK_LMENU;
	inputs.ki = ki;
	SendInput(1, &inputs, sizeof(INPUT)); // Left alt
---------
]]></description>
			<content:encoded><![CDATA[<div>I am trying to print the corresponding Unicode character for alt+2 to the Windows console window. (the console doesn't display the character, but should display ^B instead)<br />
The following doesn't seem to work. Just prints &quot;2&quot;.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">keybd_event(VK_MENU,0 ,0 , 0); //Alt Press<br />
<br />
Sleep(10);<br />
keybd_event(VK_NUMPAD2,0, 0 , 0); // 2 Press<br />
<br />
Sleep(10);<br />
keybd_event(VK_NUMPAD2,0, KEYEVENTF_KEYUP,0); // 2 Release<br />
<br />
Sleep(10);<br />
keybd_event(VK_MENU,0,KEYEVENTF_KEYUP,0); // Alt Release<br />
<br />
Sleep(10);</code><hr />
</div>Neither does this work. Just prints &quot;2&quot;, again.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &nbsp; &nbsp; INPUT inputs = {0}; <br />
&nbsp; &nbsp; &nbsp; &nbsp; inputs.type = INPUT_KEYBOARD; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; KEYBDINPUT ki = {0}; <br />
&nbsp; &nbsp; &nbsp; &nbsp; ki.wVk = VK_LMENU;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; inputs.ki = ki;<br />
&nbsp; &nbsp; &nbsp; &nbsp; SendInput(1, &amp;inputs, sizeof(INPUT)); // Left alt<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ki.wVk = VK_NUMPAD2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; inputs.ki = ki;<br />
&nbsp; &nbsp; &nbsp; &nbsp; SendInput(1, &amp;inputs, sizeof(INPUT)); // Numpad 2<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ki.dwFlags = KEYEVENTF_KEYUP;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ki.wVk = VK_NUMPAD2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; inputs.ki = ki;<br />
&nbsp; &nbsp; &nbsp; &nbsp; SendInput(1, &amp;inputs, sizeof(INPUT)); // Numpad 2<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ki.wVk = VK_LMENU;<br />
&nbsp; &nbsp; &nbsp; &nbsp; inputs.ki = ki;<br />
&nbsp; &nbsp; &nbsp; &nbsp; SendInput(1, &amp;inputs, sizeof(INPUT)); // Left alt</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=110">C++</category>
			<dc:creator>kangekraam</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173417</guid>
		</item>
		<item>
			<title>VB 2005 Serial Ports</title>
			<link>http://forums.devx.com/showthread.php?t=173416&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 17:26:04 GMT</pubDate>
			<description>I am trying to write an application which among other things tests serial ports on a PCB.  The PCB has a RS232 to RS422 two way conversion.  Com1 and Com2 are my available RS232 ports and Com4 and Com5 are my available RS422 ports.  I want to write to the RS232 port and verify that the correct data comes out the RS422 port.  Then I want to write to the RS422 port and verify that the correct data comes out the RS232 port.  I can’t seem to find the correct method to make that happen.</description>
			<content:encoded><![CDATA[<div>I am trying to write an application which among other things tests serial ports on a PCB.  The PCB has a RS232 to RS422 two way conversion.  Com1 and Com2 are my available RS232 ports and Com4 and Com5 are my available RS422 ports.  I want to write to the RS232 port and verify that the correct data comes out the RS422 port.  Then I want to write to the RS422 port and verify that the correct data comes out the RS232 port.  I can’t seem to find the correct method to make that happen.</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=120">.NET</category>
			<dc:creator>csparks</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173416</guid>
		</item>
		<item>
			<title>Hooking Create Process</title>
			<link>http://forums.devx.com/showthread.php?t=173415&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 15:22:34 GMT</pubDate>
			<description>Hi all, I want to ask, how do I hook CreateProcess? I want to write an antivirus program with Real Time Protector. Thanks.</description>
			<content:encoded><![CDATA[<div>Hi all, I want to ask, how do I hook CreateProcess? I want to write an antivirus program with Real Time Protector. Thanks.</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>evansjahja</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173415</guid>
		</item>
		<item>
			<title>I want to save my SMS to my computer , how can I do this?</title>
			<link>http://forums.devx.com/showthread.php?t=173414&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 08:13:17 GMT</pubDate>
			<description>I want to save some of my short messages from my HTC touch to pc for later use but have no idea how to do it.</description>
			<content:encoded><![CDATA[<div>I want to save some of my short messages from my HTC touch to pc for later use but have no idea how to do it.</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=109">Mobile</category>
			<dc:creator>janneluu</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173414</guid>
		</item>
		<item>
			<title>Carriage return</title>
			<link>http://forums.devx.com/showthread.php?t=173413&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 00:09:01 GMT</pubDate>
			<description>In my last thread I wrote about having printing problems I feel that I have the printing taken care of. I feel that it is more a carriage return problem. In one of the feilds in my database the data is entered like this on a single line with spaces it would look like this:

*KF 123 O456 1972*

Where ever there is a space I would like a carriage return so that when it is printed it will look like this:

*KF
123
O456
1972*</description>
			<content:encoded><![CDATA[<div>In my last thread I wrote about having printing problems I feel that I have the printing taken care of. I feel that it is more a carriage return problem. In one of the feilds in my database the data is entered like this on a single line with spaces it would look like this:<br />
<br />
<b>KF 123 O456 1972</b><br />
<br />
Where ever there is a space I would like a carriage return so that when it is printed it will look like this:<br />
<br />
<b>KF<br />
123<br />
O456<br />
1972</b></div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=120">.NET</category>
			<dc:creator>COMPCAD</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173413</guid>
		</item>
		<item>
			<title><![CDATA[Mystery "missing milliseconds": calling ActiveX from VB.Net sometimes takes 15ms !!??]]></title>
			<link>http://forums.devx.com/showthread.php?t=173412&amp;goto=newpost</link>
			<pubDate>Thu, 19 Nov 2009 20:04:00 GMT</pubDate>
			<description><![CDATA[Posting here because I think it might be related to .Net runtime or Interop wrappers for unmanaged C++/MFC COM controls:

Background: I have an ActiveX/COM control written in C++/MFC which processes video (ie. 30 frames per second => about 33ms per frame processing budget) Various rendering aspects of the control can be modified using Set calls on the control, which clients can issue at any time.
It turns out that someone (Windows scheduler, .Net interop wrappers, MFC call dispatcher, memory allocator, garbage disposal ?) is quite frequently eating an incredibly long 15.625ms to make or return from the call into the control. Thats half my per-frame budget eaten by some gremlins in the runtime !

The control itself is - for historical reasons - written in C++/MFC. The problem happens when the control is called from C# as well as VB.Net. It happens on very different hardware (an HP Pavilion 2.8Ghz Pentium D, a Macbook Pro with 2.5 Ghz Intel Core 2 Duo running Parallels VM). Just how often this mystery hiccup of 15.625ms occurs differs between machines, but when it does, it is always 15.625ms exactly. Strange.

I have made a rather minimal test case that strips out all the video processing etc.
First, I created an MFC/COM Control project in the Project Wizard of Visual Studio 2003 and left things at their default settings (Apartment threading etc.). Then I added a single user defined call TestCall() to the control which does nothing (manually since there is no more classwizard)

Then I created a VB Client program which instantiates the control. It endlessly calls the TestTiming() sub which times how long a single call into the control takes and prints out that time.

The TestTiming call basically just does this:


Code:
---------
    startTime = DateTime.Now
    Dim h = AxTestControl1.TestCall()
    endTime = DateTime.Now
    Dim ms As integer = endTime.Subtract(startTime).TotalMilliseconds
---------
I print out calls that take 0 ms (well something less than 1ms anyway) as "." and for calls > 0ms I print out the actual ms. The output looks something like this:

.15.625 ms
.........15.625 ms
.........15.625 ms
.........15.625 ms
..........15.625 ms
..........15.625 ms
...........15.625 ms
..........15.625 ms
..........15.625 ms

So some variable nr of calls that execute quickly, as desired, and then a "hiccup" call that always takes the exact same amount of time (15.625ms), then some more quick calls.

If instead of the user defined control function .TestCall() inside the timing I use a standard control property, like

Code:
---------
Dim h = AxTestControl1.Height
---------
or a built in control method like

Code:
---------
Dim h = AxTestControl1.ToString()
---------
Then I never, ever get a hiccup call.

On different machines you will get a different average number of "." before a hiccup but even then the hiccup is 15.625ms

I should mention that the sample code spins off a background thread and calls the TimingTest from its ThreadTask(). This is the way the bug was originally reported to me. However, I can put the 

Code:
---------
Do
    TimingTest()
Loop
---------
right in the main UI thread - as the first thing in Form1_Load() for example. And it will exhibit the same behaviour, except there will be substantially more good=0ms="." calls on average between the inevitable hiccups.

I *think* my timing test methodology is correct (?) And the fact that standard control properties and functions never hiccup indicate that the hiccups are not an artefact of my test setup, but related to a dispatched call into a user-defined function of the control.

Anybody have an idea what is going on and how I can prevent the far too frequent eating of half my per-frame processing budget by the runtime ?

I bow in gratitude for any advice :)

Mr.Toad

Specs:
Visual Studio 2003 .Net 1.1
Windows XP Pro SP2

Complete Form1.vb of the VB Client:

Code:
---------
Imports System.Threading

Public Class Form1
    Inherits System.Windows.Forms.Form
    #Region " Windows Form Designer generated code "
    Private fMyThread As Thread

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ' to see the hiccup on the main UI thread, put the Do/TestTiming()/Loop here
        fMyThread = New Thread(AddressOf ThreadTask)
        fMyThread.Start()
    End Sub

    Private Sub ThreadTask()
        Do
            TestTiming()
        Loop
    End Sub

    Private Sub TestTiming()
        Dim startTime, endTime As System.DateTime

        startTime = DateTime.Now
        Dim h = AxTestControl1.TestCall() ' user defined control methods do cause frequent hiccups of 15.625ms
        'Dim h = AxTestControl1.ToString() ' standard control properties and method never cause a hiccup
        endTime = DateTime.Now

        Dim ms As Double = endTime.Subtract(startTime).TotalMilliseconds

        If (ms > 0) Then
            Console.WriteLine(ms & " ms")
        Else
            Static n As Integer = 0
            n += 1
            If (n Mod 80 = 0) Then Console.WriteLine("")
            Console.Write(".")
        End If
    End Sub
End Class
---------
And the C++ component itself (it has quite a few automatically generated files, I show only what I think is most relevant here - ie changes from the boilerplate code from the MFC ActiveX Control C++ project template):

TestControlCtrl.cpp (I added the TestCall declaration and implementation, analogously in TestControlCtrl.h, not shown here)

Code:
---------
....unmodified boilerplate code here

// Dispatch map
BEGIN_DISPATCH_MAP(CTestControlCtrl, COleControl)
    DISP_FUNCTION_ID(CTestControlCtrl, "AboutBox", DISPID_ABOUTBOX, AboutBox, VT_EMPTY, VTS_NONE)
    DISP_FUNCTION(CTestControlCtrl, "TestCall", TestCall, VT_I2, VTS_NONE)
END_DISPATCH_MAP()

....unmodified boilerplate code here

// CTestControlCtrl message handlers

short CTestControlCtrl::TestCall( void )
{
    return 0; // do nothing
}
---------

TestControl.idl (I added the line with TestCall in it)

Code:
---------
#include <olectl.h>
#include <idispids.h>

[ uuid(6E23484D-00D2-4500-A149-BF20F088CE00), version(1.0),
  helpfile("TestControl.hlp"),
  helpstring("TestControl ActiveX Control module"),
  control ]
library TestControlLib
{
    importlib(STDOLE_TLB);

    //  Primary dispatch interface for CTestControlCtrl

    [ uuid(E8A6BFC3-87DB-48DF-812A-2E79604C1AA3),
      helpstring("Dispatch interface for TestControl Control")]
    dispinterface _DTestControl
    {
        properties:
        methods:

            [id(DISPID_ABOUTBOX)] void AboutBox();
            [id(2)] int TestCall( void ); // I added this for my test
    };
...etc. (rest unchanged)
---------
I attach the full sourcecode (Visual Studio solutions) for both the testing control and the VB.Net client code calling it.]]></description>
			<content:encoded><![CDATA[<div>Posting here because I think it might be related to .Net runtime or Interop wrappers for unmanaged C++/MFC COM controls:<br />
<br />
Background: I have an ActiveX/COM control written in C++/MFC which processes video (ie. 30 frames per second =&gt; about 33ms per frame processing budget) Various rendering aspects of the control can be modified using Set calls on the control, which clients can issue at any time.<br />
It turns out that someone (Windows scheduler, .Net interop wrappers, MFC call dispatcher, memory allocator, garbage disposal ?) is quite frequently eating an incredibly long 15.625ms to make or return from the call into the control. Thats half my per-frame budget eaten by some gremlins in the runtime !<br />
<br />
The control itself is - for historical reasons - written in C++/MFC. The problem happens when the control is called from C# as well as VB.Net. It happens on very different hardware (an HP Pavilion 2.8Ghz Pentium D, a Macbook Pro with 2.5 Ghz Intel Core 2 Duo running Parallels VM). Just how often this mystery hiccup of 15.625ms occurs differs between machines, but when it does, it is always 15.625ms exactly. Strange.<br />
<br />
I have made a rather minimal test case that strips out all the video processing etc.<br />
First, I created an MFC/COM Control project in the Project Wizard of Visual Studio 2003 and left things at their default settings (Apartment threading etc.). Then I added a single user defined call TestCall() to the control which does nothing (manually since there is no more classwizard)<br />
<br />
Then I created a VB Client program which instantiates the control. It endlessly calls the TestTiming() sub which times how long a single call into the control takes and prints out that time.<br />
<br />
The TestTiming call basically just does this:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; startTime = DateTime.Now<br />
&nbsp; &nbsp; Dim h = AxTestControl1.TestCall()<br />
&nbsp; &nbsp; endTime = DateTime.Now<br />
&nbsp; &nbsp; Dim ms As integer = endTime.Subtract(startTime).TotalMilliseconds</code><hr />
</div>I print out calls that take 0 ms (well something less than 1ms anyway) as &quot;.&quot; and for calls &gt; 0ms I print out the actual ms. The output looks something like this:<br />
<br />
.15.625 ms<br />
.........15.625 ms<br />
.........15.625 ms<br />
.........15.625 ms<br />
..........15.625 ms<br />
..........15.625 ms<br />
...........15.625 ms<br />
..........15.625 ms<br />
..........15.625 ms<br />
<br />
So some variable nr of calls that execute quickly, as desired, and then a &quot;hiccup&quot; call that always takes the exact same amount of time (15.625ms), then some more quick calls.<br />
<br />
If instead of the user defined control function .TestCall() inside the timing I use a standard control property, like<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Dim h = AxTestControl1.Height</code><hr />
</div>or a built in control method like<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Dim h = AxTestControl1.ToString()</code><hr />
</div>Then I never, ever get a hiccup call.<br />
<br />
On different machines you will get a different average number of &quot;.&quot; before a hiccup but even then the hiccup is 15.625ms<br />
<br />
I should mention that the sample code spins off a background thread and calls the TimingTest from its ThreadTask(). This is the way the bug was originally reported to me. However, I can put the <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Do<br />
&nbsp; &nbsp; TimingTest()<br />
Loop</code><hr />
</div>right in the main UI thread - as the first thing in Form1_Load() for example. And it will exhibit the same behaviour, except there will be substantially more good=0ms=&quot;.&quot; calls on average between the inevitable hiccups.<br />
<br />
I *think* my timing test methodology is correct (?) And the fact that standard control properties and functions never hiccup indicate that the hiccups are not an artefact of my test setup, but related to a dispatched call into a user-defined function of the control.<br />
<br />
Anybody have an idea what is going on and how I can prevent the far too frequent eating of half my per-frame processing budget by the runtime ?<br />
<br />
I bow in gratitude for any advice :)<br />
<br />
Mr.Toad<br />
<br />
Specs:<br />
Visual Studio 2003 .Net 1.1<br />
Windows XP Pro SP2<br />
<br />
Complete Form1.vb of the VB Client:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Imports System.Threading<br />
<br />
Public Class Form1<br />
&nbsp; &nbsp; Inherits System.Windows.Forms.Form<br />
&nbsp; &nbsp; #Region &quot; Windows Form Designer generated code &quot;<br />
&nbsp; &nbsp; Private fMyThread As Thread<br />
<br />
&nbsp; &nbsp; Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' to see the hiccup on the main UI thread, put the Do/TestTiming()/Loop here<br />
&nbsp; &nbsp; &nbsp; &nbsp; fMyThread = New Thread(AddressOf ThreadTask)<br />
&nbsp; &nbsp; &nbsp; &nbsp; fMyThread.Start()<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub ThreadTask()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Do<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TestTiming()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Loop<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub TestTiming()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim startTime, endTime As System.DateTime<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; startTime = DateTime.Now<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim h = AxTestControl1.TestCall() ' user defined control methods do cause frequent hiccups of 15.625ms<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Dim h = AxTestControl1.ToString() ' standard control properties and method never cause a hiccup<br />
&nbsp; &nbsp; &nbsp; &nbsp; endTime = DateTime.Now<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim ms As Double = endTime.Subtract(startTime).TotalMilliseconds<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If (ms &gt; 0) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(ms &amp; &quot; ms&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Static n As Integer = 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n += 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (n Mod 80 = 0) Then Console.WriteLine(&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Write(&quot;.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub<br />
End Class</code><hr />
</div>And the C++ component itself (it has quite a few automatically generated files, I show only what I think is most relevant here - ie changes from the boilerplate code from the MFC ActiveX Control C++ project template):<br />
<br />
TestControlCtrl.cpp (I added the TestCall declaration and implementation, analogously in TestControlCtrl.h, not shown here)<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">....unmodified boilerplate code here<br />
<br />
// Dispatch map<br />
BEGIN_DISPATCH_MAP(CTestControlCtrl, COleControl)<br />
&nbsp; &nbsp; DISP_FUNCTION_ID(CTestControlCtrl, &quot;AboutBox&quot;, DISPID_ABOUTBOX, AboutBox, VT_EMPTY, VTS_NONE)<br />
&nbsp; &nbsp; DISP_FUNCTION(CTestControlCtrl, &quot;TestCall&quot;, TestCall, VT_I2, VTS_NONE)<br />
END_DISPATCH_MAP()<br />
<br />
....unmodified boilerplate code here<br />
<br />
// CTestControlCtrl message handlers<br />
<br />
short CTestControlCtrl::TestCall( void )<br />
{<br />
&nbsp; &nbsp; return 0; // do nothing<br />
}</code><hr />
</div><br />
TestControl.idl (I added the line with TestCall in it)<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">#include &lt;olectl.h&gt;<br />
#include &lt;idispids.h&gt;<br />
<br />
[ uuid(6E23484D-00D2-4500-A149-BF20F088CE00), version(1.0),<br />
&nbsp; helpfile(&quot;TestControl.hlp&quot;),<br />
&nbsp; helpstring(&quot;TestControl ActiveX Control module&quot;),<br />
&nbsp; control ]<br />
library TestControlLib<br />
{<br />
&nbsp; &nbsp; importlib(STDOLE_TLB);<br />
<br />
&nbsp; &nbsp; //&nbsp; Primary dispatch interface for CTestControlCtrl<br />
<br />
&nbsp; &nbsp; [ uuid(E8A6BFC3-87DB-48DF-812A-2E79604C1AA3),<br />
&nbsp; &nbsp; &nbsp; helpstring(&quot;Dispatch interface for TestControl Control&quot;)]<br />
&nbsp; &nbsp; dispinterface _DTestControl<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; properties:<br />
&nbsp; &nbsp; &nbsp; &nbsp; methods:<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [id(DISPID_ABOUTBOX)] void AboutBox();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [id(2)] int TestCall( void ); // I added this for my test<br />
&nbsp; &nbsp; };<br />
...etc. (rest unchanged)</code><hr />
</div>I attach the full sourcecode (Visual Studio solutions) for both the testing control and the VB.Net client code calling it.</div>


	<br />
	<div style="padding:3px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
	<td><img class="inlineimg" src="http://forums.devx.com/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="http://forums.devx.com/attachment.php?attachmentid=1972&amp;d=1258660893">TestingCode.zip</a> (28.9 KB)</td>
</tr>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=120">.NET</category>
			<dc:creator>rtvstoad</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173412</guid>
		</item>
		<item>
			<title>Copy data from datatable to ms access table</title>
			<link>http://forums.devx.com/showthread.php?t=173411&amp;goto=newpost</link>
			<pubDate>Thu, 19 Nov 2009 12:34:09 GMT</pubDate>
			<description>Hi everyone , does any know how to copy a datatable to a ms access table with out using a loop to insert per row ? I think there must be a way to do that but i did search for 2 days and got no results !</description>
			<content:encoded><![CDATA[<div>Hi everyone , does any know how to copy a datatable to a ms access table with out using a loop to insert per row ? I think there must be a way to do that but i did search for 2 days and got no results !</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=120">.NET</category>
			<dc:creator>hoangnnm</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173411</guid>
		</item>
		<item>
			<title>XPath to get the nearest preceding sibling - howto?</title>
			<link>http://forums.devx.com/showthread.php?t=173408&amp;goto=newpost</link>
			<pubDate>Wed, 18 Nov 2009 23:31:58 GMT</pubDate>
			<description><![CDATA[I need to write a XPath for getting the closest sibling to the current node. It should return exactly 1 element. Also that sibling should match some other criterias like his attributes' values. How to write it?]]></description>
			<content:encoded><![CDATA[<div>I need to write a XPath for getting the closest sibling to the current node. It should return exactly 1 element. Also that sibling should match some other criterias like his attributes' values. How to write it?</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=113">XML</category>
			<dc:creator>senglory</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173408</guid>
		</item>
		<item>
			<title><![CDATA[Can't access WshShell object in VB.NET 2005]]></title>
			<link>http://forums.devx.com/showthread.php?t=173407&amp;goto=newpost</link>
			<pubDate>Wed, 18 Nov 2009 18:56:21 GMT</pubDate>
			<description><![CDATA[Hi;

I've written a small application for our ER. I did an upgrade to it (a very very minor one) and now my Windows.Forms.SendKeys is no longer working.

I've done some research and windows script hosting might be the answer.

The problem is that I can't figure out how to access WshShell...or set it.

I've added the script hosting reference and a reference to the wshom.ocx but neither of them seem to work.

Here's the line in vb scripting that I think I need an equivalent for in VB.NET


Code:
---------
Set WshShell = WScript.CreateObject("WScript.Shell")
---------

Can anyone help?]]></description>
			<content:encoded><![CDATA[<div>Hi;<br />
<br />
I've written a small application for our ER. I did an upgrade to it (a very very minor one) and now my Windows.Forms.SendKeys is no longer working.<br />
<br />
I've done some research and windows script hosting might be the answer.<br />
<br />
The problem is that I can't figure out how to access WshShell...or set it.<br />
<br />
I've added the script hosting reference and a reference to the wshom.ocx but neither of them seem to work.<br />
<br />
Here's the line in vb scripting that I think I need an equivalent for in VB.NET<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Set WshShell = WScript.CreateObject(&quot;WScript.Shell&quot;)</code><hr />
</div><br />
Can anyone help?</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=120">.NET</category>
			<dc:creator>David Rothbauer</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173407</guid>
		</item>
		<item>
			<title>OO representation of relational database</title>
			<link>http://forums.devx.com/showthread.php?t=173406&amp;goto=newpost</link>
			<pubDate>Wed, 18 Nov 2009 16:34:15 GMT</pubDate>
			<description><![CDATA[I'm trying to convert 3 relational db tables (ones just like in access) into OO conceptual representations in which I need to note connectivity and (mandatory or optional) participation.

I have a "computer" table, a "made in" table, and a "description" table.

The computer table includes the made in & description PK's as FK's - How do I reference them in a simple OO diagram?]]></description>
			<content:encoded><![CDATA[<div>I'm trying to convert 3 relational db tables (ones just like in access) into OO conceptual representations in which I need to note connectivity and (mandatory or optional) participation.<br />
<br />
I have a &quot;computer&quot; table, a &quot;made in&quot; table, and a &quot;description&quot; table.<br />
<br />
The computer table includes the made in &amp; description PK's as FK's - How do I reference them in a simple OO diagram?</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=106">Database</category>
			<dc:creator>secretagentman</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173406</guid>
		</item>
		<item>
			<title>sending binary data to serial port</title>
			<link>http://forums.devx.com/showthread.php?t=173405&amp;goto=newpost</link>
			<pubDate>Wed, 18 Nov 2009 14:36:47 GMT</pubDate>
			<description><![CDATA[Hi

I wish to send binary data to device which is connected via serial port. I am using VB.Net 2005 with MScomm32. Here is the code

I have converted the binary value inton Hexadecimel.

MSComm1.Output = Chr(CInt(&H91))
            MSComm1.Refresh()

Error thrown was

Exception from HRESULT: 0x800A017C (CTL_E_INVALIDPROPERTYVALUE)

Can anyone suggest a soultion 

Thanks in advance

Faisal]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
I wish to send binary data to device which is connected via serial port. I am using VB.Net 2005 with MScomm32. Here is the code<br />
<br />
I have converted the binary value inton Hexadecimel.<br />
<br />
MSComm1.Output = Chr(CInt(&amp;H91))<br />
            MSComm1.Refresh()<br />
<br />
Error thrown was<br />
<br />
Exception from HRESULT: 0x800A017C (CTL_E_INVALIDPROPERTYVALUE)<br />
<br />
Can anyone suggest a soultion <br />
<br />
Thanks in advance<br />
<br />
Faisal</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=120">.NET</category>
			<dc:creator>pfaisalbe</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173405</guid>
		</item>
		<item>
			<title>Drupal developer, webmaster needed</title>
			<link>http://forums.devx.com/showthread.php?t=173404&amp;goto=newpost</link>
			<pubDate>Wed, 18 Nov 2009 10:20:08 GMT</pubDate>
			<description><![CDATA[[list]website development with Drupal and the job of webmasteryour job is to finalize our site and create some new functions (for further information see our attached file).Application deadli ...

 Click here to apply... (http://freelancer.internet.com/rfp.php?id=38534998)]]></description>
			<content:encoded><![CDATA[<div>[list]website development with Drupal and the job of webmasteryour job is to finalize our site and create some new functions (for further information see our attached file).Application deadli ...<br />
<br />
<a rel="nofollow" href="http://freelancer.internet.com/rfp.php?id=38534998" target="_blank"> Click here to apply...</a></div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=121">Careers</category>
			<dc:creator>Freelancer.Internet.com</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173404</guid>
		</item>
		<item>
			<title>Development of a Webcam Feed Application</title>
			<link>http://forums.devx.com/showthread.php?t=173403&amp;goto=newpost</link>
			<pubDate>Wed, 18 Nov 2009 08:20:06 GMT</pubDate>
			<description>Summary: Application have to receive webcam feed into a simple dialogue box with controls (start, stop, take snapshot, exit).  Objective: The webcam feed must be able to be detect automatically and  ...

 Click here to apply... (http://freelancer.internet.com/rfp.php?id=88532023)</description>
			<content:encoded><![CDATA[<div>Summary: Application have to receive webcam feed into a simple dialogue box with controls (start, stop, take snapshot, exit).  Objective: The webcam feed must be able to be detect automatically and  ...<br />
<br />
<a rel="nofollow" href="http://freelancer.internet.com/rfp.php?id=88532023" target="_blank"> Click here to apply...</a></div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=121">Careers</category>
			<dc:creator>Freelancer.Internet.com</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173403</guid>
		</item>
		<item>
			<title>Urgent! What is wrong with this program? Part 1</title>
			<link>http://forums.devx.com/showthread.php?t=173400&amp;goto=newpost</link>
			<pubDate>Wed, 18 Nov 2009 06:33:38 GMT</pubDate>
			<description><![CDATA[Please, i am writing a project on implementation of Rivest-Shamir-Adleman(RSA) algorithm on local area network(LAN).But the JAVA program i wrote refused to work. please, can anyone help me with this.The program is given below is only a part of the entire program due to space constraint. The remain program will be sent in the next post.Thanks

Code:
---------
  import java.awt.*;
   import java.awt.event.*;
   import javax.swing.*;
   import java.lang.*;
public class My_RSA extends JFrame {
               private Container  container;
               private JFrame iFrame,jFrame, kFrame;
               private GridBagLayout layout;
               private GridBagConstraints constraints;
               private JTextField nField, dField;
               private JTextArea messageArea, cypherArea, plainArea,keysArea;
               private  JScrollPane messagescroll, cypherScroll, plainScroll;
               private JButton readButton, sendButton, okButton, cancelButton;
               private JPanel jPanel, nPanel,dPanel, okPanel,myPanel, mePanel,
   statusPanel, progressPanel,cancelPanel;
               private JPanel boardPanel1, boardPanel2, cypherPanel,plainPanel, 
  messagePanel, readPanel, sendPanel;
               private JLabel emptyLabel, jLabel, nLabel, dLabel, dumLabel1, dumLabel2, 
   statusLabel;
               private  JLabel emptyLabel1,  emptyLabel2 , emptyLabel3, emptyLabel4;
               private  JPanel emptyPanel,  emptyPanel1, emptyPanel2, emptyPanel3,
    emptyPanel4;
                private String message = "", plaintext = "", cyphertext = "", publish = "";
                private long d, e, m, n, p, q;
                 private final JProgressBar  current = new JProgressBar(0, 100);
           
                     private  KeyGenerator gen;
                     private  Encryption enc;
                     private  Decryption dec;
                     private  Sending go;
  public My_RSA()
   {
                Super("RSA Encryption System");

                 Container = getContentPane();
                 layout = new GridBagLayout();
                 container.setLayout(layout);
                 constraints = new GridBagConstraints();
                 gen = new KeyGenerator();
                 kFrame = new JFrame("Sending...");
                 mePanel = new JPanel();
                 mePanel.setLayout(layout);
                 progressPanel = new JPanel();
                 progressPanel.add(current);
                   cancelPanel = new JPanel();
                   statusPanel = new JPanel();
                   statusPanel = new JLabel(" From A to B");
                   statusPanel.add(statusLabel);
                   cancelButton = new JButton("cancel");
                   cancelButton.addActionListener(
              new ActionListener() {
                             public void actionPerformed(ActionEvent event)
                             {
                                            Current.setValue(0);
                                             kFrame.setVisible(false);
                                }
                     }
  );
   Current.setSize(100, 5);
   cancelPanel.add(cancelButton);
   emptyLabel1 = new JLabel("");
   emptyLabel2 = new JLabel("");
   emptyLabel3 = new JLabel("");
   emptyLabel4 = new JLabel("");
    emptyPanel1 = new JPanel();
    emptyPanel2 = new JPanel();
    emptyPanel3 = new JPanel();
    emptyPanel4= new JPanel();
        readPanel = new JPanel();
        sendPanel = new JPanel();
        messagePanel = new JPanel();
        cypherPanel = new JPanel();
        plainPanel = new JPanel()
         boardPanel1 = new JPanel();
         boardPanel1.setLayout(new FlowLayout()); 
         boardPanel2 = new JPanel();
         boardPanel2.setLayout(new FlowLayout());
           messageArea = new JTextArea(5,60);
           messageArea.setLineWrap(true);
           messageArea.setWrapStyleWord(true);
           messageArea.setFont(new Font("Monospaced",  Font.PLAIN, 12));
           messageArea.setEditable(true);
          cypherArea = new JTextArea(20,20);
          cypherArea.setLineWrap(true);
          cypherArea.setWrapStyleWord(true);
          cypherArea.setFont(new Font(" Serif",  Font.PLAIN, 12));
           cypherArea.setEditable(false);
           plainArea = new JTextArea(20,22);
           plainArea.setLineWrap(true);
           plainArea.setWrapStyleWord(true);
           plainArea.setFont(new Font(" Monospaced",  Font.PLAIN, 12));
           plainArea.setEditable(false);
           messageScroll = new JScrollPane(messageArea,
  ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
  ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEVER);
              cypherScroll = new JScrollPane(cypherArea,
ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
 ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
             plainScroll = new JScrollPane(plainArea, 
 ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
 ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
             readButton = new JButton("read>>>");
             readButton.addActionListener(
                         new  ActionListener()  {
                                        public void actionPerformed(ActionEvent event)
                                         {
                                                      secretKey();
                                          }
                          }
 );
 sendButton = new JButton("send");
sendButton.addActionListener(
              new ActionListner() {
                            public void actionPerformed(ActionEvent event)
                            {
                                              kFrame.setVisible(false);
                                              publish = "";
                                              do {
                                                              p = gen.primeNumber();
                                             }while(!(p > 10)  || !(p < 26) );
                                             do {
                                                           q = gen.primeNumber();

                                              }while( (q <=p)  || !((q-p) >2) );
                                              n  = p*q;
                                              m = (p-1) * (q-1);
                                              e = gen.coprime(m);
                                              d = gen.find_d(m,e);
                                               message = messageArea.getText();
                                               enc = new Encryption(message);
                                                cyphertext = enc.encrypt(e,n);
                                                publish_Keys();
                                                kFrame.setVisible(true);
                                                go = newSending(cyphertext,kFrame,iFrame, 
     cypherArea, current, container);
                                                go.start();
                 kFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                 container.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                                             }
                                }
                  );
                 cypherPanel.add(cypherScroll);
                 cypherPanel.setBorder(BorderFactory.createTitledBorder("cyphertext"));
                 readPanel.add(readButton);
                 plainPanel.add(plainScroll);
                plainPanel.setBorder(BorderFactory.createTitledBorder("recovered plaintext")); 
                  messagePanel.add(messageScroll);
                       sendPanel.add(sendButton);
                       emptyPanel1.add(emptyLabel1);
                       emptyPanel2.add(emptyLabel2);
                       emptyPanel3.add(emptyLabel3);
                       emptyPanel4.add(emptyLabel4);
                       boardPanel1.add(cypherPanel);
                       boardPanel1.add(readPanel);
                       boardPanel1.add(plainPanel);
---------
]]></description>
			<content:encoded><![CDATA[<div>Please, i am writing a project on implementation of Rivest-Shamir-Adleman(RSA) algorithm on local area network(LAN).But the JAVA program i wrote refused to work. please, can anyone help me with this.The program is given below is only a part of the entire program due to space constraint. The remain program will be sent in the next post.Thanks<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; import java.awt.*;<br />
&nbsp;  import java.awt.event.*;<br />
&nbsp;  import javax.swing.*;<br />
&nbsp;  import java.lang.*;<br />
public class My_RSA extends JFrame {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private Container&nbsp; container;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private JFrame iFrame,jFrame, kFrame;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private GridBagLayout layout;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private GridBagConstraints constraints;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private JTextField nField, dField;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private JTextArea messageArea, cypherArea, plainArea,keysArea;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private&nbsp; JScrollPane messagescroll, cypherScroll, plainScroll;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private JButton readButton, sendButton, okButton, cancelButton;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private JPanel jPanel, nPanel,dPanel, okPanel,myPanel, mePanel,<br />
&nbsp;  statusPanel, progressPanel,cancelPanel;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private JPanel boardPanel1, boardPanel2, cypherPanel,plainPanel, <br />
&nbsp; messagePanel, readPanel, sendPanel;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private JLabel emptyLabel, jLabel, nLabel, dLabel, dumLabel1, dumLabel2, <br />
&nbsp;  statusLabel;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private&nbsp; JLabel emptyLabel1,&nbsp; emptyLabel2 , emptyLabel3, emptyLabel4;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private&nbsp; JPanel emptyPanel,&nbsp; emptyPanel1, emptyPanel2, emptyPanel3,<br />
&nbsp; &nbsp; emptyPanel4;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private String message = &quot;&quot;, plaintext = &quot;&quot;, cyphertext = &quot;&quot;, publish = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private long d, e, m, n, p, q;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private final JProgressBar&nbsp; current = new JProgressBar(0, 100);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private&nbsp; KeyGenerator gen;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private&nbsp; Encryption enc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private&nbsp; Decryption dec;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  private&nbsp; Sending go;<br />
&nbsp; public My_RSA()<br />
&nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Super(&quot;RSA Encryption System&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Container = getContentPane();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  layout = new GridBagLayout();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  container.setLayout(layout);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  constraints = new GridBagConstraints();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  gen = new KeyGenerator();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  kFrame = new JFrame(&quot;Sending...&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  mePanel = new JPanel();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  mePanel.setLayout(layout);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  progressPanel = new JPanel();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  progressPanel.add(current);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cancelPanel = new JPanel();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  statusPanel = new JPanel();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  statusPanel = new JLabel(&quot; From A to B&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  statusPanel.add(statusLabel);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cancelButton = new JButton(&quot;cancel&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cancelButton.addActionListener(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new ActionListener() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  public void actionPerformed(ActionEvent event)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Current.setValue(0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  kFrame.setVisible(false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; );<br />
&nbsp;  Current.setSize(100, 5);<br />
&nbsp;  cancelPanel.add(cancelButton);<br />
&nbsp;  emptyLabel1 = new JLabel(&quot;&quot;);<br />
&nbsp;  emptyLabel2 = new JLabel(&quot;&quot;);<br />
&nbsp;  emptyLabel3 = new JLabel(&quot;&quot;);<br />
&nbsp;  emptyLabel4 = new JLabel(&quot;&quot;);<br />
&nbsp; &nbsp; emptyPanel1 = new JPanel();<br />
&nbsp; &nbsp; emptyPanel2 = new JPanel();<br />
&nbsp; &nbsp; emptyPanel3 = new JPanel();<br />
&nbsp; &nbsp; emptyPanel4= new JPanel();<br />
&nbsp; &nbsp; &nbsp; &nbsp; readPanel = new JPanel();<br />
&nbsp; &nbsp; &nbsp; &nbsp; sendPanel = new JPanel();<br />
&nbsp; &nbsp; &nbsp; &nbsp; messagePanel = new JPanel();<br />
&nbsp; &nbsp; &nbsp; &nbsp; cypherPanel = new JPanel();<br />
&nbsp; &nbsp; &nbsp; &nbsp; plainPanel = new JPanel()<br />
&nbsp; &nbsp; &nbsp; &nbsp;  boardPanel1 = new JPanel();<br />
&nbsp; &nbsp; &nbsp; &nbsp;  boardPanel1.setLayout(new FlowLayout()); <br />
&nbsp; &nbsp; &nbsp; &nbsp;  boardPanel2 = new JPanel();<br />
&nbsp; &nbsp; &nbsp; &nbsp;  boardPanel2.setLayout(new FlowLayout());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  messageArea = new JTextArea(5,60);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  messageArea.setLineWrap(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  messageArea.setWrapStyleWord(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  messageArea.setFont(new Font(&quot;Monospaced&quot;,&nbsp; Font.PLAIN, 12));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  messageArea.setEditable(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cypherArea = new JTextArea(20,20);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cypherArea.setLineWrap(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cypherArea.setWrapStyleWord(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cypherArea.setFont(new Font(&quot; Serif&quot;,&nbsp; Font.PLAIN, 12));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cypherArea.setEditable(false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  plainArea = new JTextArea(20,22);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  plainArea.setLineWrap(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  plainArea.setWrapStyleWord(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  plainArea.setFont(new Font(&quot; Monospaced&quot;,&nbsp; Font.PLAIN, 12));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  plainArea.setEditable(false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  messageScroll = new JScrollPane(messageArea,<br />
&nbsp; ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,<br />
&nbsp; ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEVER);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cypherScroll = new JScrollPane(cypherArea,<br />
ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,<br />
&nbsp;ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  plainScroll = new JScrollPane(plainArea, <br />
&nbsp;ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,<br />
&nbsp;ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  readButton = new JButton(&quot;read&gt;&gt;&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  readButton.addActionListener(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  new&nbsp; ActionListener()&nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void actionPerformed(ActionEvent event)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; secretKey();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;);<br />
&nbsp;sendButton = new JButton(&quot;send&quot;);<br />
sendButton.addActionListener(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new ActionListner() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void actionPerformed(ActionEvent event)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kFrame.setVisible(false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publish = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; do {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p = gen.primeNumber();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }while(!(p &gt; 10)&nbsp; || !(p &lt; 26) );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  do {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  q = gen.primeNumber();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }while( (q &lt;=p)&nbsp; || !((q-p) &gt;2) );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n&nbsp; = p*q;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m = (p-1) * (q-1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e = gen.coprime(m);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; d = gen.find_d(m,e);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  message = messageArea.getText();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  enc = new Encryption(message);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cyphertext = enc.encrypt(e,n);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publish_Keys();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kFrame.setVisible(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; go = newSending(cyphertext,kFrame,iFrame, <br />
&nbsp; &nbsp;  cypherArea, current, container);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; go.start();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  kFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  container.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cypherPanel.add(cypherScroll);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cypherPanel.setBorder(BorderFactory.createTitledBorder(&quot;cyphertext&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  readPanel.add(readButton);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  plainPanel.add(plainScroll);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; plainPanel.setBorder(BorderFactory.createTitledBorder(&quot;recovered plaintext&quot;)); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; messagePanel.add(messageScroll);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  sendPanel.add(sendButton);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  emptyPanel1.add(emptyLabel1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  emptyPanel2.add(emptyLabel2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  emptyPanel3.add(emptyLabel3);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  emptyPanel4.add(emptyLabel4);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  boardPanel1.add(cypherPanel);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  boardPanel1.add(readPanel);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  boardPanel1.add(plainPanel);</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=104">Java</category>
			<dc:creator>kayode</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173400</guid>
		</item>
		<item>
			<title>cookie</title>
			<link>http://forums.devx.com/showthread.php?t=173399&amp;goto=newpost</link>
			<pubDate>Wed, 18 Nov 2009 04:50:04 GMT</pubDate>
			<description><![CDATA[I'm an Intro. to PHP student. Just wonder if you could provide me with a solution for this:I'm kind of stuck in using cookie to set:1. 7 days expiration for each email address registered.2. with ...

 Click here to apply... (http://freelancer.internet.com/rfp.php?id=68519425)]]></description>
			<content:encoded><![CDATA[<div>I'm an Intro. to PHP student. Just wonder if you could provide me with a solution for this:I'm kind of stuck in using cookie to set:1. 7 days expiration for each email address registered.2. with ...<br />
<br />
<a rel="nofollow" href="http://freelancer.internet.com/rfp.php?id=68519425" target="_blank"> Click here to apply...</a></div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=121">Careers</category>
			<dc:creator>Freelancer.Internet.com</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173399</guid>
		</item>
	</channel>
</rss>
