|
hi all,
if any body having the code regading encryption and decryption functions that will work in the sunOS please send it to me.
regatrds
suresh
modified on Monday, February 16, 2009 7:59 AM
|
|
|
|
|
Do you know about Google [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
Stuart Dootson wrote: SunOS was obsoleted many, many, MANY years ago[^]...
He could be right as well. We still write code for SunOS (Indian Railways use it).
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I thought the company I work for had out of date IT - we still use Windows 2000 and Office 2000
But still using SunOS? Last time I saw that was around 2000 - our team had a SunOS box with Oracle as our development DB server.
But the first time I saw SunOS was in the late 80s at university, when we had one of these[^] shared between around 100 students. Now, that was slow - even though we were all using VT100 terminals...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: I thought the company I work for had out of date IT - we still use Windows 2000 and Office 2000 Dead
I'm fortunate on that. At work place, we have pretty good configuration: NVidia Quadro, Intel Xeon (2 processors, 2cores per procesor) clocking at 3+ GHz, 4 Gigs of RAM and Windows XP some running 32 bit, some running 64 bit, etc.,
One of our earlier projects were for Indian railways and they are *still* running SunOS. Not long ago do I remember debugging on their premises, on an AIX machine with VI editor (not a dumb terminal, semi-intelligent, has a 200 MB hard disk drive) and the code runs on a SunOS server machine. Not the happiest thing to do if you ask me. We still receive support requests that sometimes involve writing code for SunOS, which fortunately some of my juniors take care of.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Windows 2000 is OK to program for - the main issue is that most modern development tools tend to have XP as a minimum.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hello All,
Iam using CTreeCtrl method to add items in a tree.Actually i create two root nodes using GetRootNode()method.I add both root nodes properly in the tree,But what's my problem is i need to add child nodes in appropriate parent(root)nodes at runtime.But,all the child nodes adding in the first parent(root)node only.once i use deleteallitems()method and redraw the tree only child nodes are added in appropriate parent(root)nodes.Without using DeleteAllItems() i need to add the child nodes in a appropriate parent(root)node.
please anybody help me.
Thanks in advance,
Regards,
bhanu.
|
|
|
|
|
I'm not really sure what your problem is...
Try this:
CTreeCtrl *pTree = (CTreeCtrl *)GetDlgItem (IDC_MYTREE);
HTREEITEM hRootOne = pTree->InsertItem ("Root One", TVI_ROOT);
HTREEITEM hRootTwo = pTree->InsertItem ("Root Two", TVI_ROOT);
pTree->InsertItem ("Child One", hRootOne);
pTree->InsertItem ("Child Alpha", hRootTwo);
pTree->InsertItem ("Child Beta", hRootTwo);
Note the use of TVI_ROOT for the root items, and that I keep track of the return values to use later.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Hi,
I am using a MULTILINE Edit Class with Rich Edit
It Seems like EM_SETCHARFORMAT doesn't have enough flexibility
in setting the Font
Get use the Device Contexts API's to Set the Font
hfont = CreateFontIndrect(&logfont);
... SelectObject(hdc,hfont);
|
|
|
|
|
You don't set a font of a control by getting a temporary HDC and setting the font of that. At best you're wasting your time - at worst your corrupting the DC pool.
Have a look at http://www.codeproject.com/KB/edit/rulerricheditctrl.aspx[^]. Good article on rich edit stuff, with formatting buttons, etc.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Hi,
The Main Focus of the this article is the CFontDialog CLass
Which seems like interface for Rich Edit Which uses The Charformat
sturcture Using some of the info from the LogFont structure
My real need was to able to put a certin amount of caracters on a line
of a Multiedit Dialog Box
The Logfont Structure Contains lfHeight and lfWidth data memebers
to do this (size the charcters ) while the Charformat only Contains a
yHeight member I wonder if yOffset data member in CharForamt is the
same as the lfWidth member in the LOGFONT data structure
thankx again
|
|
|
|
|
You have to be careful - that lfWidth for example, is only for an average character. A line of iiiii's will be shorter than the same amount of wwwww's.
Have a look at GetTextExtent, as that will tell you exactly how manu pixels you need for a given font / string.
Also, the PathCompactPath function may help you if the text you're trying to fit in one line is a file path (or can be treated similarly)
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Hello All,
Iam using CTreeCtrl method to add items in a tree.Actually i create two root nodes using GetRootNode()method.I add both root nodes properly in the tree,But what's my problem is i need to add child nodes in appropriate parent(root)nodes at runtime.But,all the child nodes adding in the first parent(root)node only.once i use deleteallitems() and redraw the tree only child nodes are added in appropriate parent(root)nodes.Without using DeleteAllItems() i need to add the child nodes in a appropriate parent(root)node.
please anybody help me.
Thanks in advance,
Regards,
bhanu.
|
|
|
|
|
|
Iain Clarke wrote: I apologise...
You don't need to [^]
Regards,
Sandip.
|
|
|
|
|
Hi,
I have a combo box in a dialog.This combo box data is populated from registry as soon as dialog opens. I need to change this dialog now. When I tried to change the dialog,combo box is populating with some junk characters(not readable). Even a small change in the dialog, like resizing the dialog, resulted in junk charaacter in a combo box.
Any idea why it is happening? any project settings change required?
Thanks in advance..
|
|
|
|
|
Probably you've to post some code (and be more precise about what is happening) to get help.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
check your project settings for unicode compilation.
Greetings,
Ralph
|
|
|
|
|
Hi there,
I have created a thread that just monitors the serial port, but as soon as the com port receives any data, the GetOverlappedResult issues an ERROR_OPERATION_ABORTED error.
Please can you take a look at my code, I cannot see what is going on.
Thanks
Jim
#define READ_TIMEOUT 500 // Milliseconds
UINT CPageOneDialog::monitorPTZThread(LPVOID pParam)
{
DWORD dwRead, dwRes;
BOOL fWaitingOnRead = FALSE;
OVERLAPPED osReader = {0};
char ptzControlCommPort[14];
struct PTZCommStruct *pPTZStruct = (struct PTZCommStruct *)pParam;
sprintf(ptzControlCommPort,"\\\\.\\COM%d",PTZCTRLPORT+1);
pPTZStruct->hPTZSerial = CreateFile( ptzControlCommPort,
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_FLAG_OVERLAPPED,
NULL
);
osReader.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
if(osReader.hEvent == NULL)
{
pPTZStruct->pWnd->PostMessage(UWM_READER_SHUTTING_DOWN);
return 0;
}
while(pPTZStruct->nPTZCommTerminate == 0)
{
if(!fWaitingOnRead)
{
if(!ReadFile(pPTZStruct->hPTZSerial,PTZbuffer, MAX_BUFFER_SIZE, &dwRead, &osReader))
{
if(GetLastError() != ERROR_IO_PENDING)
{
return 0;
}
else
{
fWaitingOnRead = TRUE;
}
}
else
{
}
}
else
{
dwRes = WaitForSingleObject(osReader.hEvent, READ_TIMEOUT);
switch(dwRes)
{
case WAIT_OBJECT_0:
if(!GetOverlappedResult(pPTZStruct->hPTZSerial, &osReader, &dwRead, FALSE))
{
DWORD dwError = GetLastError();
switch(dwError)
{
case ERROR_HANDLE_EOF:
return 0;
break;
case ERROR_IO_PENDING:
return 0;
break;
case ERROR_IO_INCOMPLETE:
return 0;
break;
case ERROR_OPERATION_ABORTED:
return 0;
break;
default:
Dump1("Serial Read Error %d\r\n", ::GetLastError());
return 0;
break;
}
}
else
{
}
fWaitingOnRead = FALSE;
break;
case WAIT_TIMEOUT:
break;
default:
return 0;
break;
}
}
}
return 0;
}
|
|
|
|
|
Hi all,
Is there anyway to have bold text of the message displayed using
AfxMessageBox().
If yes please give me the solution.
Regards,
Sunil Kumar
|
|
|
|
|
Try this lInk [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Ok I understood.we cant do it...
Regards,
Sunil Kumar
|
|
|
|
|
I believe CPallini is right with it, but you could maybe try handing WM_CTLCOLORDLG[^] and try to select a bold font into the DC you get as parameter, no idea if it would work or not, but maybe it is worth a try.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
You can make your own messagebox.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|