|
i am able to encode with this alg, but i can't decoding it. So can any help me to decode the same.
Thanks
-Nandu
|
|
|
|
|
I suggest you read up on the concept of a message digest.
|
|
|
|
|
I answered to your question on the your previous post but you asked about decode? did you search youtself?
|
|
|
|
|
Put it this way... If you created an algorithm that could take an input of any size, generate from it a 128-bit value, and then recreate the original input back from it, you would revolutionalize the world of data compression and transfer.
In other words, you cannot (well, are not supposed to be able to) recreate the original input from its hash. That is the whole part of cryptographic hashes (or digests).
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Hi,
I have a class derived from CPropertySheet . I have added a CToolbar to this property sheet. I have repositioned the toolbar at right top corner of the property sheet.
However, the property sheet area covers the toolbar and I am able to see only some portion of the toolbar area.
How could I bring the Toolbar on top of property sheet ? (May be at the tabs level but at right side)
I have tried putting a CButton control on the property sheet and is working properly.
Please refer below code to understand the situation.
class CMyPropertySheet : public CPropertySheet
{
DECLARE_DYNAMIC(CMyPropertySheet)
public:
CMyPropertySheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
CMyPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
virtual ~CMyPropertySheet();
protected:
DECLARE_MESSAGE_MAP()
private:
CButton m_Button;
CToolBar m_wndToolBar;
public:
virtual BOOL OnInitDialog();
afx_msg void OnButtonClicked();
afx_msg void OnButton1Clicked();
afx_msg void OnButton2Clicked();
void RepositionToolbars();
};
BOOL CMyPropertySheet::OnInitDialog()
{
BOOL bResult = CPropertySheet::OnInitDialog();
m_Button.Create(_T("New Button"), WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON, CRect(200,0,300,20), this, ID_BUTTON_ID);
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT | TBSTYLE_TRANSPARENT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_TOOLBAR1))
{
TRACE0("Failed to create toolbar\n");
return -1;
}
RepositionToolbars();
return bResult;
}
void CMyPropertySheet::RepositionToolbars()
{
if(m_wndToolBar)
{
m_wndToolBar.GetToolBarCtrl().ModifyStyleEx(SWP_NOMOVE | SWP_NOREPOSITION, SWP_SHOWWINDOW);
CSize SizeToolBar;
m_wndToolBar.GetToolBarCtrl().GetMaxSize(&SizeToolBar);
CRect rcDlg;
GetClientRect(&rcDlg);
int iWidth = 0;
int iHeight = 0;
iWidth = SizeToolBar.cx;
iHeight = SizeToolBar.cy;
int iX = rcDlg.right-iWidth;
int iY = 0;
m_wndToolBar.GetToolBarCtrl().MoveWindow(iX, iY, iWidth, iHeight);
}
}
Any help would be highly appreciable.
Regards,
Paresh.
|
|
|
|
|
I was wondering if we can call a remote object (over tcp) hosted in a .net service from native c++
Please through some light on this.
Thanks,
Srini
|
|
|
|
|
How do i implement a marquee in a dialog based application. i want to do the horizontal way. i have seen the vertical application available here in codeproject.
|
|
|
|
|
You can use of WM_TIMER for it.
|
|
|
|
|
can u explain a little more in detail?
|
|
|
|
|
If you have vertical application available you just need to change the co-ordinates
instead of changing y co-ordinate change x coordinate and keep y coordinate fixed.
Regards,
Sandip.
|
|
|
|
|
|
I try to get them use WMI, but in WMI the Win32_TemperatureProbe's CurrentreadingThe property's presence is reserved for future use.
I find somebody get the cpu and mainboard’temperature us acpi.
how to get the temperature?
|
|
|
|
|
Hi!
I'm Working in a VC++ Simulation project. I've got an error which says,
c:\program files\delta3d_rel-2.0.0\inc\dtcore\globals.h(29) : error C2143: syntax error : missing ';' before 'namespace'
globals.h is a Delta3D Simulation Engine's file. I did not touch it at all. What might be the problem? What is the resolution?
|
|
|
|
|
the problem might be because you have a syntax error (a missing ; or a brackets { } misplaced) before #including globals.h
|
|
|
|
|
I didn't miss any ';' at all. Infact it's system(Simulation Engine's) file. What to do? Here is the complete code for globals.h.
#ifndef DELTA_GLOBALS
#define DELTA_GLOBALS
#include <string>
#include <dtCore/export.h>
namespace dtCore
{
DT_CORE_EXPORT void SetDataFilePathList( const std::string& pathList );
DT_CORE_EXPORT std::string GetDataFilePathList();
DT_CORE_EXPORT std::string GetDeltaDataPathList();
DT_CORE_EXPORT std::string GetDeltaRootPath();
DT_CORE_EXPORT std::string GetEnvironment(const std::string& env );
DT_CORE_EXPORT void SetEnvironment(const std::string& name, const std::string& value);
DT_CORE_EXPORT std::string FindFileInPathList(const std::string &fileName);
}
#endif //DELTA_GLOBALS
|
|
|
|
|
so you didn't read my post !!!
i said the error is NOT in the globals.h file itself but around it.
when you #include a header, it's as if its content was copied/pasted at the location of the #include directive. so if you have an arror in a file #included before that one, on in the including file itself, you might see such errors in files you actually didn't modified.
also, if it's a system file, be sure to #include <> rather than #include ""
|
|
|
|
|
Here is my complete listings where the 'globals.h' is included.
#include "HelloWorld.h"
#include <dtCore/globals.h>
#include <dtCore/object.h>
#include <dtCore/orbitmotionmodel.h>
#include <dtCore/scene.h>
#include <osgDB/FileUtils>
#include <dtCore/dt.h>
#include <dtABC/application.h>
If include HelloWorld.h like u said (<helloworld.h>) it shows me error which says Cannot open include file. No such file or Directory. What to do?
|
|
|
|
|
I can't believe HelloWorld.h being a system header.
BTW usually non-system headers includes (like #include "HelloWorld.h" ) follows the system ones. Your snippet shows the opposite.
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
|
|
|
|
|
Not HelloWorld.h. It's globals.h.
|
|
|
|
|
I was suggesting (the same toxcct did) to put #include "HelloWorld.h" at the end of your include list.
Often problems originate in slightly different places with respect the one the misbehaviour shows up.
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
|
|
|
|
|
what happens if you #include "HelloWorld.h" after every other system includes ?
|
|
|
|
|
It gives me errors if I include after all the system files.
d:\myprojects\myprojects\myprojects\helloworld.cpp(13) : error C2533: 'HelloWorld::{ctor}' : constructors not allowed a return type
d:\myprojects\myprojects\myprojects\helloworld.cpp(65) : error C2264: 'HelloWorld::HelloWorld' : error in function definition or declaration; function not called
|
|
|
|
|
Please post the code.
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
|
|
|
|
|
Here is the code.
#include "HelloWorld.h"
#include <dtCore/globals.h>
#include <dtCore/object.h>
#include <dtCore/orbitmotionmodel.h>
#include <dtCore/scene.h>
#include <osgDB/FileUtils>
#include <dtCore/dt.h>
#include <dtABC/application.h>
#include <dtCore/deltawin.h>
HelloWorld::HelloWorld(const std::string& configFilename):dtABC::Application(configFilename),mText(0),mOrbitMotionModel(0)
{
if(osgDB::findDataFile(configFilename).empty())
{
GenerateDefaultConfigFile();
}
}
HelloWorld::~HelloWorld()
{
}
void HelloWorld::Config()
{
mText = new dtCore::Object("Text");
mText->LoadFile("HelloWorld.flt");
GetScene()->AddDrawable( mText.get() );
dtCore:: Transform camPos;
camPos.SetLookAt( 0.0f, -100.0f, 20.0f,
0.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f);
GetCamera()->SetTransform(camPos);
mOrbitMotionModel = new dtCore::OrbitMotionModel(GetKeyboard(),GetMouse());
mOrbitMotionModel->SetTarget(GetCamera());
}
int main()
{
dtCore::SetDataFilePathList( ".;" + dtCore::GetDeltaDataPathList());
dtCore::RefPtr<HelloWorld> app = new HelloWorld( "config.xml" );
app->Config();
app->Run();
return 0;
}
|
|
|
|
|
And the HelloWorld.h code?
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
|
|
|
|