|
thanks for suggestion.
Murali.M
|
|
|
|
|
I need sample for using Fiber
(win32 threading),
and founf that one there is at OLD MSDN as
"Fibers Sample: Fiber-based File Copy Operation"
(130 MB to download proposed -in total C++ sample archive)
can some one who have old MSDN or have else
source for other Fiber sample
send it ti me,
or reference to the sample ?
Thanks
grigoriev@arktika.ru
|
|
|
|
|
hi all,
i am trying to use as it is the rijndael algorithm..for encrypting and decrypting the xml file...using AES rijndael..32 bit key and block size and also the method is CBC..it adds a few characters at the end of the file which makes it an invalid XML file..while using BLANKs..I am getting the valid XML file..Now i have to do is a server side encryption of the XML files..from php script..so i am using mcrypt library to do the same..but when i use this class to decrypt the same file it says can't secrypt..while i am using the same key and all..there the function is MCRYPT_RIJNDAEL_256..CBC and ECB..but nothing is working..can anyone help me out there in doing the same..or if there is any encryption which works as same in php and vc++ so that i just have to use the function and can do the same..Please help me out..any pointers and ideas are highly appreciated..
Thanks a lot in advance..
Regards,
Himanshu
|
|
|
|
|
i don't know what the problem is, but the rijndael key is 32 BYTES!
Don't try it, just do it!
|
|
|
|
|
Hi,
I want to Print Frame Window.
Thanks in Advance.
AJJU
|
|
|
|
|
Hi,
I'm creating a SDI program in VC.net using MFC, with a scroll-view derived class, and paint this view using GDI+ functions. My problem comes when I scroll, where the view seems to do two things:
- Scroll what is draw already up/down depending
- Do the whole drawing process once more
This, obviously, destroys what I am trying to draw, so my question is, how do I make sure drawing and scrolling the view get along? I am using the OnPaint message handler to envoke the drawing.
Please note that I am a newbie, as if the question doesn't tell you that, so try to explain things quite simple;P
Thanks,
- Jørgen
|
|
|
|
|
Hi all,
I know i can add 2 images to the first columns of a list ctrl.
can any1 show me code to do that?
thanks in advanced,
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Dear friends,
I have a std::string object and the value stored in it is of the form:
std::string source = "Hello 22.90fg"
i.e in the string value, there are characters, a number, and again characters in the end.
I need to detect the number i.e 22.90 , in the middle of the string and want to assingn it to a float variable.
How can i do so ?
Actually i already did it, but i am looking for some better logic and a code that is easily readable.
|
|
|
|
|
It depends alot on how much you know about the incoming data.
If you know a fair bit you could try a regular expression parser (there is one distributed with the .NET framework, or the boost::regex library)
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Hello,
I have to search certain file on all the drives. I am using FindFirstFile API to find a file in the directory which uses WIN#@_FIND_DATA structure. I am facing one problem. If the attribute of a directory is readonly then it does not find that directory using FindfirstFile or FindNext call. Can anybody suggest me why it is like this and pl tell ,e the solution to this.
|
|
|
|
|
|
My question is: I want to Hide/Show an Image depanding on the checking of 'checkbox'. Image should be hidden and NOT DISABLED if checkbox is unchecked. Can you sent a sample progaram to do so...
|
|
|
|
|
Jackson Antony wrote:
Can you sent a sample progaram to do so...
In short, no.
Longer; your question makes no sense. Images aren't disabled or enabled, or even hidden. They are either displayed or not displayed. To display an image, draw it. To not display an image, invalidate the background and don't draw it.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hi Everybody,
How to print contents of CFrameWnd class.
Thanks in Advance.
AJJU
Live and Let live
|
|
|
|
|
Is there a fundamental difference between 'reinterpret_cast<type>()' and 'static_cast<type>()'?
I have been using these two cast operators with almost disregards to their specific usage and feel I have been getting away with impunity.
Is there something that fundamentally set them apart from when one should be used over the other?
Thanks for any insight.
William
Fortes in fide et opere!
|
|
|
|
|
static_cast can do three things: 1) Invoke a built-in conversion or a class's conversion operator (which is technically redundant, but you can do it if you want to be explicit about it), 2) convert from an integral type to an enum type, and 3) do a possibly-unsafe downcast. Examples:
CString str = "foo";
LPCTSTR sz = static_cast<LPCTSTR>(str);
enum EFoo { bob, chris, mike } foo;
CButton* pBtn;
foo = static_cast<EFoo>(2);
pBtn = static_cast<CButton*>(GetDlgItem(IDOK)); Note with #3 that it's on your head to make sure the cast is actually safe. If it might not always be safe, use dynamic_cast instead.
reinterpret_cast does three different things: 1) Converts between a pointer type and an integral type, 2) between unrelated pointer types, 3) between void* and anything else. For ex:
SendMessage ( hwnd, UWM_CUSTOM_MESSAGE,
reinterpret_cast<WPARAM>(szSomeString),
reinterpret_cast<LPARAM>(&someObject) );
--Mike--
Ericahist [updated Oct 26] | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber
There is a saying in statistics that a million monkeys pounding on typewriters would eventually create a work of Shakespeare. Thanks to the Internet, we now know that this is not true.
Pinky, are you pondering what I'm pondering?
I think so Brain, but how will we fit the hamster inside the accordion?
|
|
|
|
|
Hi these few paragraphs from MSDN may help u to understnad the diff,
While the Standard gives static_cast a sweeping general property plus a complicated set of exceptions, it limits reinterpret_cast to two fundamental roles:
Conversions to and from pointers
Overlaying an lvalue with multiple types (a.k.a. type punning)
As its name suggests, this style of cast reinterprets its operand's representation as having the target type. This reinterpretation involves no calls to conversion constructors or conversion operators; indeed, a reinterpret_cast may leave the operand's bit pattern intact, so that the conversion is purely a compile-time act with no run-time consequences.
If you reinterpret a bit pattern, and a pointer is involved, use reinterpret_cast.
If you engage in type punning, use reinterpret_cast.
For all other conversions, use static_cast.
General Run-Time Behavior
reinterpret_cast traffics only in integers, enumerations, pointers, and references. It doesn't call user-defined functions, and probably doesn't call into the run-time library. At worst, a pointer conversion might require a few machine instructions to widen or narrow its operand. (While a compiler may package these conversions in library routines, I don't know of a compiler that actually does so.)
In contrast, static_cast converts among all of the above as well as floating-point and class types.
Hope I pasted the right matter from the MSDN ,u were looking which for
Abhishek Srivastava
Software Engg (VC++)
India ,Noida
Mobile no 9891492921
|
|
|
|
|
Okay, should be simple, but...
I'm trying to create a property sheet like the option menus for AIM and mIRC; tons of controls on one form that are dynamically shown and hidden under the direction of a Tree control. Except I want to have a button for each form instead of a tree. I've had minor success just piling controls on one another, but with 17 forms total, I'll need a more organized method to handle them. Any suggestions?
Suppose you were an idiot, and suppose you were a member of Congress; but I repeat myself. -Mark Twain
|
|
|
|
|
I make most of my menus Mirc/Trillian-like, this is a simple way;
Use TTreeView & TNotebook (or TPagecontrol);
Make an OnChange-event in your Treeview, eg:
-
<br />
void __fastcall TForm1::TreeViewChange(TObject *Sender, TTreeNode *Node)<br />
{<br />
<br />
TTreeNode *CurItem = TreeView->Selected;<br />
Notebook->ActivePage = CurItem->Text;<br />
<br />
}<br />
-
The Names of the options and the Pages should of course be the same in this example.
So explore TNotebook &/ TPagecontrol!
Best of luck, Jeroen.
|
|
|
|
|
Hi,
anyone here was successful at applying themes for a DLL project? Here's what I've done, but with negative results
stdafx.h :
// XP Themes
#include "commctrl.h"
#define ISOLATION_AWARE_ENABLED
#define MANIFEST_RESOURCE_ID 2
project.rc :
MANIFEST_RESOURCE_ID 24 MOVEABLE PURE "res\\project.dll.manifest"
ProjectDlg.cpp :
OnInitDialog(...)
{
INITCOMMONCONTROLSEX commCtrlsInfo;
commCtrlsInfo.dwICC = ICC_ANIMATE_CLASS | ICC_BAR_CLASSES | ICC_COOL_CLASSES | ICC_DATE_CLASSES | ICC_HOTKEY_CLASS
| ICC_INTERNET_CLASSES | ICC_LISTVIEW_CLASSES | ICC_PAGESCROLLER_CLASS | ICC_PROGRESS_CLASS
| ICC_TAB_CLASSES | ICC_TREEVIEW_CLASSES | ICC_UPDOWN_CLASS | ICC_USEREX_CLASSES | ICC_WIN95_CLASSES;
commCtrlsInfo.dwSize = sizeof( INITCOMMONCONTROLSEX );
InitCommonControlsEx( &commCtrlsInfo );
}
HELP!
---------------
Tired of Spam? InboxShield for Microsoft® Outlook® 2K/2K2/2K3
http://www.inboxshield.com
|
|
|
|
|
Hi,
I want to add StringGrids to dynamically created Tabs from TTabContol where the Tab-names are read from a file and from that same file also the info in the Grids (per/tab);
-
1. In progr. env. created TabControl;
2. Onload read from the file, first the Tabs;
3. TabControl->Tabs->Add("TabFromFile1");
4. So we've created 1 Tab, now I want to add a StringGrid on thát Tab:
(This is wat I thought... but misses the page to put it on... )
<br />
TStringGrid *Grid = new TStringGrid(TabControl);<br />
Grid->Top = 10;<br />
Grid->Left = 10;<br />
Grid->etc...<br />
<br />
Grid->Visible = true;<br />
Grid->Parent = TabControl;<br />
-
The (seems to me) stupid solution is to put the grids on the form and bring them to the front when called upon...
Anybody knows the solution?!
Thx! Jeroen.
|
|
|
|
|
Never mind, found it;
I'll also use PageControl iso. TabControl;
// Create a new page in PageControl1...
TTabSheet *Page = new TTabSheet(this);
Page->PageControl = PageControl1;
Page->Caption = "TabFromFile1";
// Add Grid...
TStringGrid *Grid = new TStringGrid(this);
Grid->Parent = Page;
Grid->Top = 10;
Grid->Left = 10;
|
|
|
|
|
I'm using c++ console and would like to know how to get a size of a specific file, probably in the same folder and if it is empty do something else do something else... Please help
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
Use FindFirstFile()
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Can you make that a little bit more clearer, I never heard of that function too.
<marquee>Universal Project... Soon to be a .net
|
|
|
|