|
can any body help me?i have some value or some generated key values.so i want to store it in database as encrypted and decryption mode.can any body give solution to me?pls..
shan
|
|
|
|
|
hi
Use, Crypt32.lib.
Microsofts Cryptography application programming interface (API)
regards
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
well there are lotz of articles in CP itself....search it with keyword "encryption" or something like that....u ought to find articles.....
happy programmin...
aaah....here is one..
http://www.codeproject.com/file/fileenc.asp[^]
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
I'v deefined my own font for CTreeView, but have one problem. Not all words displays in tree branches. I mean, when I enter text in tree branche "Some text", in CTreeView it displays as "Some t".
So, I want to determine size in chars for tree branche to display all words completely.
Thanks in advance, bilas.
|
|
|
|
|
make sure you've defined a TVINSERTSTRUCT struct like here..
TVINSERTSTRUCT tvis = { 0 };<br />
<br />
tvis.item.mask = TVIF_TEXT | TVIF_CHILDREN;<br />
tvis.item.cChildren = 1;<br />
tvis.item.pszText = "name";<br />
tvis.item.cchTextMax = lstrlen(tvis.item.pszText);<br />
|
|
|
|
|
Yeah, you are rigt. But I need to set cchTextMax every time, when branche is renamed. I'll try again. Anyway, thanks a lot, bilas.
|
|
|
|
|
plz. tell me how can i integrate power point slide in my VC++ MFC dilogue application.
syed abdul qavi
|
|
|
|
|
I've not tried it, but I would suspect Automation would be what you want. You might also look to see if PowerPoint has an ActiveX control.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi All,
I have launched an application programmatically. I want to browse and hit all menu items of that application programmatically. How do I do that?
I have pointer to the mainframe window of that launched application. So from that I can get CMenu pointer to its menu using CWnd::GetMenu() fuction.
So now I have CMenu* which points to the menu of launched application. I am using CMenu::GetDefaultItem() to get the identifier and then hitting the menu using SendMessage but nothing is hapening. Any idea? Here is the code..
m_pMenu = m_pMainFrame->GetMenu(); // m_pMenu is of CMenu* type
UINT uItem = m_pMenu->GetDefaultItem(GMDI_GOINTOPOPUPS);
WPARAM wParam = MAKEWPARAM(0,uItem);
int iRet = m_pMainWnd->SendMessage(WM_COMMAND,wParam,NULL);
Do you see anything wrong in above code?
The other approach I adopted was as per below which just iterates though all menu items just to check that if I am able to access all menu items or not..
m_pMenu = m_pMainFrame->GetMenu();
UINT uItem = m_pMenu->GetMenuItemCount();
CString str;
for(int iPos=0; iPos < uItem; iPos++)
{
m_pMenu->GetMenuString(iPos,str,MF_BYCOMMAND);
}
Unfortunately this approach is not at all accurate. For instance If I launch Notepad.exe for then It gives me uItem = 4. But when I browse to get the menu string of each of them. It gives me blank as a string for Ipos= 0, gives Save when ipos=1, Save As for iPos= 2 and &Find for iPos = 3; This is an unexpected result because Save and Save As is part of File menu but Find is in the Edit menu.
Any clue?
--------------
Vaibhav...
|
|
|
|
|
Hi,
I need to find if my machine is On LAN, is there any APIfunction call in C++ which can give me this information.
I'll be very much thankful to you all for the information.
Thanks n Regards.
RuchirDhar Dwivedi
Software Engineer
Windowmaker Software Pvt.Ltd.
Baroda, India.
|
|
|
|
|
|
Hi Thanks but the function IsNetworkAlive() works only for TCP/IP connection, but my machine can be on IPX/SPX isn't there any generic function call which could tell me if my machine is on any type of LAN.
Thanks n Regards.
RuchirDhar Dwivedi
Software Engineer
Windowmaker Software Pvt.Ltd.
Baroda, India.
|
|
|
|
|
hello,
I have a dialog (CAxDialogImpl) and it included an ATLControl::CListViewCtrl. Now I will shown some different tooltips (ATLControls::CToolTipCtrl) depend on the column which the cursor stay. My problem is, I don´t know how. In different forums I found solutions which use function PreTranslateMessage. But this will be only work in a MFC-Dialog.Which event function should I call(OnMouseMove???) and which code should included the eventfunction?????
Can anybody help me???
Thanks for your helping conceptions
|
|
|
|
|
I am unable to display full item text in a yellow rectangle in CListCtrl when mouse is dragged over the item.I dont want to select the item.Can anyone help me please?
|
|
|
|
|
aruc wrote:
I am unable to display full item text in a yellow rectangle...
Are you talking about a tooltip?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Have a look at CWnd::EnableTooltips[^]
There is an example there. A little bit of work is necessary in order to show the appropriate list item data.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Thanks for the reply,
I will try that.
|
|
|
|
|
Hi.
I am working with MFC. I have stored the output of a program in a microsoft word file and now i want to print that file using the same program. I want to give user the functionality to click a button and by clicking that button the file will be printed. Please tell me how can i do it?
We Believe in Excellence
|
|
|
|
|
|
Hi,
I have written a C code of an encryption algorithm. How do I measure the number of cycles of my implementation? Hope to get some feedbacks/suggestion from the forum members, or can email the feedbacks to my email address watija@yahoo.com.
Regards,
Tiza Naziri, Malaysia
|
|
|
|
|
just put a Counter(an unsigned int or long or anthing like that) in your Cycling Function ( ) i.e. encryption algorithm.
and every time the Encryption Algorithm make a cycle, increment the Counter by one , and when your cycling function end, you will get number of cycles in the Counter
"I Think this Will Help"
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
|
if you want to know CPU cycles (ex. "it takes X cycles to do one round"), you'll have to analyze a machine-language implementation of your algorithm.
Image Toolkits | Image Processing | Cleek
|
|
|
|
|
hello,
am working in VC++ for the past 8 months.i thought of doing MCSD certification in VC++.but i heard that VC++ exams have been discontinued by microsoft since june 2004......wat exams should i take now so that it close to the VC++ track............also i need suggestions for the books that i need to follow .also are there eny exam simulators available.if yes from where can i get them...thnx in advance.
URagav
Everything can be sacrificed for truth, but truth cannot be sacrificed for anything .
|
|
|
|
|
See here for details.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|