|
Hi
I have created my own CWnd Class named CShell my problem is OnChar function not called
here with i have attached the code sample
#pragma once
// CShell
class CShell : public CWnd
{
DECLARE_DYNAMIC(CShell)
public:
CShell();
virtual ~CShell();
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnPaint();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
private:
CStringArray m_shellText;
int m_cxChar,m_cyChar,m_cxCaps;
TEXTMETRIC m_tm;
public:
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
};
// Shell.cpp : implementation file
//
#include "stdafx.h"
#include "CommandLine.h"
#include "Shell.h"
// CShell
IMPLEMENT_DYNAMIC(CShell, CWnd)
CShell::CShell()
{}
CShell::~CShell()
{}
BEGIN_MESSAGE_MAP(CShell, CWnd)
ON_WM_CHAR()
END_MESSAGE_MAP()
void CShell::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call default
//CWnd::OnChar(nChar, nRepCnt, nFlags);
}
|
|
|
|
|
|
Please make your links clickable. Do you have the checkbox Treat my content as plain text, not as HTML selected?
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
I see I did have the 'treat as text' checked, though it worked as link in the 'preview message' so I thought I'd got it right.
Thanks.
|
|
|
|
|
Dear All,
I am using VS2008 express edition. I would like to add .txt file as resource file into the VS project and furthur read this file as a normal file read.
I was able to add the file as resource file. But don't know how to read this file
i just used :
ifstream fileread;
fileread.open("test.txt");
but this doesn't seem to work
Do u have any suggestions how this can be accomplised.
BR,
Raghu
|
|
|
|
|
This is not the correct forum. But anyway...
First get a pointer to the resource.
You can get this by calling the following APIs in order -
FindResource
LoadResource
LockResource
Next use the pointer returned by LockResource in a call to CopyMemory or memcpy /memcpy_s .
|
|
|
|
|
I want to return a reference to a subvector of an std::vector like boost::ublas's subrange method does. For example:
...
std::vector<int> v1(100, 1), v2(10, 2);
subrange( v1, 0 /*start/, 10 /*end*/) = v2;
...
will change the first 10 element of v1 to be those of v2. Another call like
v2 = subrange( v1, 50 /*start/, 60 /*end*/);
will fill up v2 with values from v1's 50th to 59th elements.
How to implement method subrange? Thanks a lot.
|
|
|
|
|
|
The link you provided just lead to the same page of this ATL_WTL-STL discussion page. Anything missing? Thanks.
|
|
|
|
|
|
hi,
i have application that disply USB cemera video .for that i have to connect with samplegraber and get image anyone please hehp me
|
|
|
|
|
Please explain your problem in proper detail and tell us which part is not working.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Hello,
I apologize if this is the incorrect site to post, but I could not find any topics that related the above discussion.
Could you please let me know, if any differences at all between the above commands.
We have a program, that needs to be running constantly with a pause of 3 minutes before the next run.
We have 13 such programs.
So, we are considering performance a big part.
Thanks again.
|
|
|
|
|
If you enter CHOICE /? and TIMEOUT /? from a DOS prompt it will show you all the possible options.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
I wondered if anyone can enlighten me on this. I can't seem to find anything from Microsoft that definitely states that AES 256 bit encryption can be enabled under Windows XPe. Does anyone know if this is possible, or am I stuck with triple des? If anyone can shed any light, point me to some articles, etc. Specifically, I need to do some column level AES 256 encryption using SQL Server 2005. DES works fine, but I get an error that AES is not supported.
|
|
|
|
|
Not so sure, but I'll try.
Microsoft's documentation seems to be a little murky on the subject, I agree. However, reading between the lines - one can see from the following two links, that you don't appear to have any support for doing this directly in SQLServer, though .NET 1.1 apparently has an AES_256 class, which DOES work in XP.
How to: Encrypt a Column of Data[^]
AES256 Class[^]
However, there does seem to be an article on AES here at CP. I'm afraid I have to admit I've no idea on the suitability of such an idea for your situation.
WinAES: A C++ AES Class[^]
Cheers.
|
|
|
|
|
I have a COM dll Win32 developed with C++.
I want to create 2 different versions :
- One in 32 Bits
- One in 64 Bits
This 2 dll must be usable on the same PC by different applications.
How can I do this ?
Also,I know how to build dll in X64, But have they the same guid or not?
|
|
|
|
|
Both DLLs can have the same GUID.
When registering 32-bit and 64-bit DLLs, the registry entries created for each of them are in different registry locations.
So it is possible for both of them to be used of the same PC using the same GUID.
When a 32-bit application creates an instance of the COM, the registry access will be redirected to the appropriate location and it will find the 32-bit COM DLL.
And a 64-bit application will create the 64-bit COM DLL.
|
|
|
|
|
|
The terms in capitals are used in MFC and are not specific to the C++ language. The remaining terms are functions used in the C++ libraries. The return value of a function is defined by the function definition. All this information can be found by searching MSDN; a starting point for C++ is here[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
rk12180 wrote: Requesting assistance soon.
I gave you assistance over 6 hours ago. I suggest you follow the link I provided and start reading up on some of these terms.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Still its not getting clear. I need some information about the stuff that i gave before not the link from you. I'm using vs6.0. is there anything you want to know additionally?
|
|
|
|
|
I explained what the terms were; the MFC macros you can find in the documentation for MFC or the header files where they are defined. The other macros will be similarly defined in the Win32 header files. I am reasonably sure that you can find them all with a simple search of MSDN. Perhaps if you explained exactly what problem you are trying to solve we can make some more suggestions.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Compiling C++ with MS VS 2010, and getting an error when the initializer list for a derived class has a fully-qualified name for the base class constructor. Example:
class base {
public:
base(int i);
...
};
class myclass : public base {
public:
myclass();
...
};
myclass::myclass() : base::base(123)
{
...
The GNU compiler on Linux is quite happy, but the MS compiler objects to the (unnecessary) qualification of the base class constructor; it insists on:
myclass::myclass() : base(123)
{
...
What I'd really like to know is, which compiler is wrong? The C++ standard should either allow or prohibit the extra qualification, but I can't find an online copy of a standard.
It's only a problem because of a lot of code in a project that I've inherited is written that way; it used to compile on older versions of MS, but no longer.
|
|
|
|
|
I'm afraid the standard won't help you there, unless you can use it to bend VC2010's behavior somehow - this, assuming VC2010 is the one actually wrong.
Sadly, a regex-based search-and-replace may be the only practical option you have there: I assume you already tried playing with compiler flags, to no avail.
JM2B,
Pablo.
"Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, circa 1899).
|
|
|
|