|
Let's say your array is m_MyArray. To see more than one item, you can type
m_MyArray,5 in the watch window - that shows 5 items.
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
Hi all,
I would like to know how can I convert several time formats made from a string into a string of my desired time format?
Example:
the strings can be like:
Fri Oct 13 01:32:38 CDT 2006
or
Fri 2006 Oct 13 01:32:38 CDT
or any other formats/combination that is possible then I must convert it into
Fri, 13 Oct 2006 01:32:38 CDT.
How can I search for the date 13 substring or the year or the time?
Thanks,
Jj
|
|
|
|
|
monsieur_jj wrote: I would like to know how can I convert several time formats made from a string into a string of my desired time format?
Does COleDateTime::ParseDateTime and COleDateTime::Format help?
Also have a look at strftime .
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Hi Nibu,
I cannot use Ole what i have done so far is:
<br />
string ArrMonth[] = {" ", "Jan ","Feb ","Mar ","Apr ","May ","Jun ","Jul ","Aug ","Sep ","Oct ","Nov ","Dec "};<br />
string ArrDays[] = {" ", "Sun ","Mon ","Tue ","Wed ","Thu ","Fri ","Sat "};<br />
<br />
do{<br />
i++;<br />
index = date.find(ArrDays[i]);<br />
<br />
}while ((!(index != string::npos)));<br />
strDays = ArrDays[i];<br />
<br />
do{<br />
j++;<br />
index = date.find(ArrMonth[j]);<br />
<br />
}while ((!(index != string::npos)));<br />
strMonth = ArrMonth[j];<br />
<br />
index = date.find(":");<br />
index = index - 2;<br />
strTime = date.substr(index, 8);<br />
I can now get the month, time and days. My problem is the year and the day. TimeZone i just figured out
Thanks,
Jj
modified on Wednesday, April 9, 2008 11:37 PM
|
|
|
|
|
Proof....
char bufTimeDate[80];
memset (bufTimeDate, '\0', 80);
time_t now;
struct tm ts;
time(&now);
// Format the time, "dd-mm-yyyy hh:mm:ss zzz" Es: "02-04-2007 10:52:30 Ora sol.."
ts = *localtime(&now);
strftime(bufTimeDate, sizeof(bufTimeDate), "%d-%m-%Y %H:%M:%S %Z", &ts);
|
|
|
|
|
monsieur_jj wrote: Fri, 13 Oct 2006 01:32:38 CDT.
How can I search for the date 13 substring or the year or the time?
Well, if we can assume its always in the same spot, use string::substr() , like:
string strDate = "Fri, 13 Oct 2006 01:32:38 CDT";<br />
int nDay = atoi(strDate.substr(5, 2));
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi all,
This is what i have done and it works however i am a bit inexperienced and I just want your opinions if and how i can make this better:
<br />
basic_string <char>::size_type indexMonth, indexDays, indexTimeZone, indexYear, indexDate;<br />
string ArrMonth[] = {" ", "jan ","feb ","mar ","apr ","may ","jun ","jul ","aug ","sep ","oct ","nov ","dec "};<br />
string ArrDays[] = {" ", "sun ","mon ","tue ","wed ","thu ","fri ","sat "};<br />
string ArrTimeZone[] = {" ", "atl ","est ","cst ","mst ","pst ","ala ","haw ", "edt ", "cdt ", "mdt ", "pdt "};<br />
string strDays;<br />
string strMonth;<br />
string strTime;<br />
string strTimeZone;<br />
string strYear;<br />
string tempDate;<br />
tempDate = date;<br />
int i = 0;<br />
int j = 0;<br />
int k = 0;<br />
int Year = 1950;<br />
<br />
string lwrFilename;<br />
char TempStr[500] = {L'\0'};<br />
strcpy(TempStr, date.c_str());<br />
lwrFilename = _strlwr(TempStr); <br />
date = lwrFilename;<br />
<br />
do{<br />
i++;<br />
indexDays = date.find(ArrDays[i]);<br />
<br />
}while ((!(indexDays != string::npos)));<br />
strDays = ArrDays[i];<br />
<br />
do{<br />
j++;<br />
indexMonth = date.find(ArrMonth[j]);<br />
<br />
}while ((!(indexMonth != string::npos)));<br />
strMonth = ArrMonth[j];<br />
<br />
bool timeZone = false;<br />
do{<br />
k++;<br />
indexTimeZone = date.find(ArrTimeZone[k]);<br />
<br />
}while ((!(indexTimeZone != string::npos)));<br />
strTimeZone = ArrTimeZone[k];<br />
<br />
if(strTimeZone.empty())<br />
{<br />
indexTimeZone = date.find("+");<br />
if ( indexTimeZone != string::npos )<br />
{<br />
timeZone = true;<br />
strTime = date.substr(indexTimeZone, 4);<br />
}<br />
else<br />
{<br />
indexTimeZone = date.find("-");<br />
if ( indexTimeZone != string::npos )<br />
{<br />
timeZone = true;<br />
strTime = date.substr(indexTimeZone, 4);<br />
}<br />
else<br />
{<br />
timeZone = false;<br />
strTime = "GMT";<br />
}<br />
<br />
}<br />
}<br />
<br />
indexDate = date.find(":");<br />
indexDate = indexDate - 2;<br />
strTime = date.substr(indexDate, 8);<br />
<br />
<br />
stringstream out;<br />
string tempYear;<br />
do{<br />
Year++;<br />
out<<Year;<br />
tempYear = out.str();<br />
out.str("");<br />
indexYear = date.find(tempYear);<br />
<br />
}while ((!(indexYear != string::npos)));<br />
strYear = date.substr(indexYear, 4);<br />
<br />
tempDate.replace(indexYear, 4, " ");<br />
tempDate.replace(indexDate, 8, " ");<br />
if(!timeZone)<br />
{tempDate.replace(indexTimeZone, 3, " ");<br />
}else{<br />
tempDate.replace(indexTimeZone, 5, " ");<br />
}<br />
tempDate.replace(indexMonth, 4, " ");<br />
tempDate.replace(indexDays, 4, " ");<br />
<br />
int DateNum;<br />
DateNum = atoi(tempDate.c_str());<br />
out<<DateNum;<br />
tempDate = out.str();<br />
out.str("");<br />
string dateFinal;<br />
<br />
dateFinal.append(strDays);<br />
dateFinal.append(", ");<br />
dateFinal.append(tempDate);<br />
dateFinal.append(" ");<br />
dateFinal.append(strMonth);<br />
dateFinal.append(" ");<br />
dateFinal.append(strYear);<br />
dateFinal.append(" ");<br />
dateFinal.append(strTime);<br />
dateFinal.append(" ");<br />
dateFinal.append(strTimeZone);<br />
<br />
return dateFinal;<br />
Thanks,
Jj
|
|
|
|
|
It's about 50 times larger than it needs to be.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
How about now?
<br />
basic_string <char>::size_type indexMonth, indexDays, indexTimeZone, indexYear, indexDate;<br />
string ArrMonth[] = {" ", "jan ","feb ","mar ","apr ","may ","jun ","jul ","aug ","sep ","oct ","nov ","dec "};<br />
string ArrDays[] = {" ", "sun ","mon ","tue ","wed ","thu ","fri ","sat "};<br />
string ArrTimeZone[] = {" ", "atl ","est ","cst ","mst ","pst ","ala ","haw ", "edt ", "cdt ", "mdt ", "pdt "};<br />
string strDays, strMonth, strTime, strTimeZone, strYear, tempDate, dateFinal, lwrFilename, tempYear;<br />
tempDate = date;<br />
int i = 0, j = 0, k = 0, Year = 1950, DateNum;<br />
<br />
char TempStr[500] = {L'\0'};<br />
strcpy(TempStr, date.c_str());<br />
lwrFilename = _strlwr(TempStr); <br />
date = lwrFilename;<br />
<br />
do{<br />
i++;<br />
indexDays = date.find(ArrDays[i]);<br />
<br />
}while ((!(indexDays != string::npos)));<br />
strDays = ArrDays[i];<br />
<br />
do{<br />
j++;<br />
indexMonth = date.find(ArrMonth[j]);<br />
<br />
}while ((!(indexMonth != string::npos)));<br />
strMonth = ArrMonth[j];<br />
<br />
bool timeZone = false;<br />
do{<br />
k++;<br />
indexTimeZone = date.find(ArrTimeZone[k]);<br />
<br />
}while ((!(indexTimeZone != string::npos)));<br />
strTimeZone = ArrTimeZone[k];<br />
<br />
if(strTimeZone.empty())<br />
{<br />
indexTimeZone = date.find("+");<br />
if ( indexTimeZone != string::npos )<br />
{<br />
timeZone = true;<br />
strTime = date.substr(indexTimeZone, 4);<br />
}<br />
else<br />
{<br />
indexTimeZone = date.find("-");<br />
if ( indexTimeZone != string::npos )<br />
{<br />
timeZone = true;<br />
strTime = date.substr(indexTimeZone, 4);<br />
}<br />
else<br />
{<br />
timeZone = false;<br />
strTime = "GMT";<br />
}<br />
<br />
}<br />
}<br />
<br />
indexDate = date.find(":");<br />
indexDate = indexDate - 2;<br />
strTime = date.substr(indexDate, 8);<br />
<br />
stringstream out;<br />
do{<br />
Year++;<br />
out<<Year;<br />
tempYear = out.str();<br />
out.str("");<br />
indexYear = date.find(tempYear);<br />
<br />
}while ((!(indexYear != string::npos)));<br />
strYear = date.substr(indexYear, 4);<br />
<br />
tempDate.replace(indexYear, 4, " ");<br />
tempDate.replace(indexDate, 8, " ");<br />
if(!timeZone)<br />
{tempDate.replace(indexTimeZone, 3, " ");<br />
}else{<br />
tempDate.replace(indexTimeZone, 5, " ");<br />
}<br />
tempDate.replace(indexMonth, 4, " ");<br />
tempDate.replace(indexDays, 4, " ");<br />
<br />
DateNum = atoi(tempDate.c_str());<br />
out<<DateNum;<br />
tempDate = out.str();<br />
out.str("");<br />
<br />
dateFinal.append(strDays);<br />
dateFinal.append(", ");<br />
dateFinal.append(tempDate);<br />
dateFinal.append(" ");<br />
dateFinal.append(strMonth);<br />
dateFinal.append(" ");<br />
dateFinal.append(strYear);<br />
dateFinal.append(" ");<br />
dateFinal.append(strTime);<br />
dateFinal.append(" ");<br />
dateFinal.append(strTimeZone);<br />
<br />
return dateFinal;<br />
What can i reduce?
I aslo found this on our boost:
<br />
#include<iostream><br />
#include<boost/tokenizer.hpp><br />
#include<string><br />
<br />
int main(){<br />
using namespace std;<br />
using namespace boost;<br />
string s = date<br />
tokenizer<> tok(s);<br />
for(tokenizer<>::iterator beg=tok.begin(); beg!=tok.end();++beg){<br />
strItem= *beg;<br />
}<br />
}<br />
This parses the string separately by space or by ":". Can anyone give me an idea how to use this?
Thanks,
Jj
modified on Friday, April 11, 2008 3:54 AM
|
|
|
|
|
monsieur_jj wrote: How about now?
Are you limited to just using C++ code (i.e., can you use OLE or MFC)?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I can only use c++ and boost libraries.
I can use this bit of code from tokenizer class of boost:
std::string strRaw = date;
std::string strItem, strTemp;
tokenizer<> tok(strRaw);
for(tokenizer<>::iterator beg=tok.begin(); beg!=tok.end();++beg)
{
strItem= *beg;
}
I am just not sure how to use it
Thanks a lot
Jj
|
|
|
|
|
Hi all,
This is what i have done:
string ArrMonth[] = {"jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"};
string ArrDays[] = {"sun","mon","tue","wed","thu","fri","sat"};
string ArrTimeZone[] = {"atl","est","cst","mst","pst","ala","haw", "edt", "cdt", "mdt", "pdt"};
string strDays, strMonth, strTime, strTimeZone, strYear, tempDate, dateFinal, lwrFilename, tempYear;
int i = 0, j = 0, k = 0, Year, DateNum;
stringstream out;
bool full = false;
char TempStr[500] = {L'\0'};
strcpy(TempStr, date.c_str());
lwrFilename = _strlwr(TempStr);
date = lwrFilename;
size_t foundTime, foundZone;
std::string strRaw = date;
std::string strItem, strTemp;
boost::escaped_list_separator<char> esc('\\',' ',':\\');
tokenizer<escaped_list_separator<char>> tok(strRaw,esc);
for(tokenizer<escaped_list_separator<char>>::iterator beg=tok.begin(); beg!=tok.end();++beg)
{
strItem= *beg;
Year = atoi(strItem.c_str());
DateNum = atoi(strItem.c_str());
foundTime=strItem.find(":");
foundZone=strItem.find("+");
if(!(strItem.empty())){
for(i=0; i<12; i++)
{
if(i<7){
if((strItem == ArrDays[i])&&(strDays.empty()))
{
strDays = ArrDays[i];
break;
}
}
if((i<12)&&(strItem == ArrMonth[i])&&(strMonth.empty()))
{
strMonth = ArrMonth[i];
break;
}
if(i<11){
if((strItem == ArrTimeZone[i])&&(strTimeZone.empty()))
{
strTimeZone = ArrTimeZone[i];
break;
}
}
if((foundZone!=string::npos)&&(strTimeZone.empty()))
{
strTimeZone = strItem;
break;
}
if((foundTime!=string::npos)&&(strTime.empty()))
{
strTime = strItem;
break;
}
if(Year>1980&&(strYear.empty()))
{
strYear = strItem;
break;
}
if((DateNum>0) && (DateNum<32) &&(tempDate.empty()))
{
tempDate = strItem;
break;
}
}
}
}
dateFinal.append(strDays);
dateFinal.append(", ");
dateFinal.append(tempDate);
dateFinal.append(" ");
dateFinal.append(strMonth);
dateFinal.append(" ");
dateFinal.append(strYear);
dateFinal.append(" ");
dateFinal.append(strTime);
dateFinal.append(" ");
dateFinal.append(strTimeZone);
return dateFinal;
Do you think this is more efficient?
Thanks,
Jj
|
|
|
|
|
monsieur_jj wrote:
Do you think this is more efficient?
Without trying it, I don't know. Does it handle all of the possible date formats?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi David,
It works even if i rearrange the string into different formats. I am just thinking what if the time is missing or the timezone or the date.
thanks,
Jj
|
|
|
|
|
Hello all,
im doing some kind of research about how to insert/inject a piece of my own code into a running 3D application...
The ideia is to execute a piece of code, right after a 3D screen refresh completes...
IE:
I have this game running, i start my inject application that will load into memory, find my game address,
and then find the update routine/call, and then inject a piece of code.
I dont know how to locate that call, and how to inject the code ( if that can be done... )
Once i tried using the base Windows draw/write on screen... it works.. but the draw keeps flashing because its not synchronized with the 3d application....
All of this using c++ API..
Sounds strange, any idea would be great!
Thanks!
(sorry my english!)
|
|
|
|
|
To make it easier, how can i just write into another process memory ?
Or would be usefull to, how to make another process load one of my DLL's ?
thanks
|
|
|
|
|
While Microsoft would like us all to be using Vista and Windows Server 2008, there are still a lot of people using Windows 98. For some apps, it's quite easy to write it with support for Win 98.
From memory, I think the latest version that can be used to target Win98 and above is VC++2005 without installing any SDK (ie. the last SDK to support Win 98 (XP SP2 or Server 2003 RS or SP1, I think) had older compilers and libs).
Microsoft have removed all references to Windows 95/98/Me onm their site and MSDN Library 2008 so it's no longer possible to tell which version of the SDK was the last that supported targeting Win 95 and above.
Am I correct ?
Is there any way to install VC++ SP1 but keep support for Win9x targets ?
|
|
|
|
|
Hello
I want to build an audio processing application using ISampleGrabber interface.
1. How can I learn sampling rates of audio streams ? Its callback function gives me "SampleTime"s and
size of buffers. I guess I can get sampling rate as kbps. By the way after I get sampling rate as kbps
how can I express in Hz\kHz ?
2. I know that your buffer size must be power of 2 to implement FFT algorithm ( at least Radix2 , I'm new on that area).
So size of buffers ISamplegrabber gives are not always (almost never) powers of 2. So how should I handle
this problem ?
3.Callback function gives a buffer of samples as BYTE* (array of unsigned chars).
So to make an audio process , how should I get double or float values instead of unsigned chars ?
For example should it be like this ? :
double realSampleValue -> pBuffer[0].......pBuffer[7] ( Here I mean to make this programtically using bit operators)
Thank you very much...
|
|
|
|
|
Akin Ocal wrote: How can I learn sampling rates of audio streams ?
If you use the sample callback, you'll get a new media type with the sample
every time it changes. You can also get the media type on the sample grabber filter's
input pin after the graph is built.
It sounds like you're using the buffered callback, which isn't recommended.
You'll have better results using the sample callback. You'll get even better results
if you implement your own grabber filter.
Akin Ocal wrote: 2. I know that your buffer size must be power of 2 to implement FFT algorithm ( at least Radix2 , I'm new on that area).
So size of buffers ISamplegrabber gives are not always (almost never) powers of 2. So how should I handle
this problem ?
You'll need to buffer enough data to feed your processing algorithm if necessary. That's dependent on your
implementation.
Akin Ocal wrote: 3.Callback function gives a buffer of samples as BYTE* (array of unsigned chars).
So to make an audio process , how should I get double or float values instead of unsigned chars ?
You need to convert the PCM sample data to whatever format your processing code needs.
For example, you may need to convert signed 16-bit PCM samples to doubles between -1.0 and 1.0.
Your code will need to do that math.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Akin Ocal wrote: I guess I can get sampling rate as kbps. By the way after I get sampling rate as kbps
how can I express in Hz\kHz ?
I forgot about this question...
When you get the media format from the filter, ISample, or graph, you will have a WAVEFORMATEX
structure. In that structure is a nSamplesPerSec member. That value is in Hz, and when divided by 1000,
KHz.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thank you very much indeed...
|
|
|
|
|
Thank you very much for your answers. But I have some questions again :
1. I can succesfully get AM_MEDIA_TYPE from output pin of my source filter (I use audio files as sources
in my case ) But unfotunately I cannot get pbFormat even formattype of AM_MEDIA_TYPE
(pbFormat -> bad pointer, formattype-> GUID_NULL )
I use the code below to get AM_MEDIA_TYPE , I can get other parameters succesfully
BOOL MyClass::GetMediaTypeOfConnectedPin (IBaseFilter* pFilter,PIN_DIRECTION pDir,AM_MEDIA_TYPE* pMediaType,int index)
{
HRESULT hr ;
IPin* fPin ;
hr = this->GetPin(pFilter,pDir,index,&fPin);
if(hr != S_OK ) return FALSE ;
if ( (fPin->ConnectionMediaType(pMediaType)) != S_OK) return FALSE ;
if ( pMediaType->formattype == FORMAT_WaveFormatEx)
{
WAVEFORMATEX* temp = (WAVEFORMATEX*) malloc(sizeof(WAVEFORMATEX));
temp = ( WAVEFORMATEX *)pMediaType->pbFormat;
...
free(temp);
}
return TRUE ;
}
2. What is the order of samples if there are 2 channels. For example is it something like :
Left Channel -> pBuffer[0] ... pBuffer[n/2]
Right Channel -> pBuffer[n/2+1] .... pBuffer[n]
or
Left Channel-> pBuffer[even_indexes]
Right Channel -> pBuffer[odd_indexes]
3. After I get my samples as WORDs(unsigned shorts) , what should I do to get floats from them ?
Thank you very much
Regards
|
|
|
|
|
Hi together,
i coded a project (SDI) with an editbox in the toolbar.
By pressing enter the value in the edit will be shown in a msgbox(with a lot of help of Mr. Salesbery ).
In my project the document will hande the datas an the view will show them !
Now i have to pass the value in the editbox to the view.cpp in order to show them !
But this won't work
Here are some codes;
#pragma once
class CMyEdit : public CEdit
{
public:
CMyEdit();
~CMyEdit();
BOOL PreTranslateMessage(MSG* pMsg);
CString m_MyEditAusgabe;
protected:
DECLARE_MESSAGE_MAP()
};
#include "stdafx.h"
#include "MyEdit.h"
#include "Test.h"
#include "NEW_cLoadFile.h"
CMyEdit::CMyEdit()
{
}
CMyEdit::~CMyEdit()
{
}
BEGIN_MESSAGE_MAP(CMyEdit, CEdit)
END_MESSAGE_MAP()
BOOL CMyEdit::PreTranslateMessage(MSG* pMsg)
{
NEW_cLoadFile mlf;
cTest test;
if (pMsg->message == WM_KEYDOWN && VK_RETURN == pMsg->wParam)
{
return TRUE;
}
else if (pMsg->message == WM_KEYUP && VK_RETURN == pMsg->wParam)
{
CString cstrNumber;
GetWindowText(cstrNumber);
test.testFunktion(cstrNumber);
return TRUE;
}
return CEdit::PreTranslateMessage(pMsg);
}
The view.cpp:
#include "stdafx.h"
#include "NonButton Ctrl in ToolBar 1.h"
#include "MyEdit.h"
#include "NonButton Ctrl in ToolBar 1Doc.h"
#include "NonButton Ctrl in ToolBar 1View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CNonButtonCtrlinToolBar1View, CView)
BEGIN_MESSAGE_MAP(CNonButtonCtrlinToolBar1View, CView)
ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()
CNonButtonCtrlinToolBar1View::CNonButtonCtrlinToolBar1View()
{
}
CNonButtonCtrlinToolBar1View::~CNonButtonCtrlinToolBar1View()
{
}
BOOL CNonButtonCtrlinToolBar1View::PreCreateWindow(CREATESTRUCT& cs)
{
return CView::PreCreateWindow(cs);
}
void CNonButtonCtrlinToolBar1View::OnDraw(CDC* pDC)
{
CNonButtonCtrlinToolBar1Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
}
BOOL CNonButtonCtrlinToolBar1View::OnPreparePrinting(CPrintInfo* pInfo)
{
return DoPreparePrinting(pInfo);
}
void CNonButtonCtrlinToolBar1View::OnBeginPrinting(CDC* , CPrintInfo* )
{
}
void CNonButtonCtrlinToolBar1View::OnEndPrinting(CDC* , CPrintInfo* )
{
}
#ifdef _DEBUG
void CNonButtonCtrlinToolBar1View::AssertValid() const
{
CView::AssertValid();
}
void CNonButtonCtrlinToolBar1View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CNonButtonCtrlinToolBar1Doc* CNonButtonCtrlinToolBar1View::GetDocument()
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CNonButtonCtrlinToolBar1Doc)));
return (CNonButtonCtrlinToolBar1Doc*)m_pDocument;
}
#endif //_DEBUG
void CNonButtonCtrlinToolBar1View::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
}
If you need more i attached a small codesnippet !
http://www.filehosting.at/files/download.php?file=611b6c1fd8ef7b65080cbd12624d1421
I really hope you can help me
Many thanx fo yor help
Best regards
Croc
|
|
|
|
|
CrocodileBuck wrote: test.testFunktion(cstrNumber);
What is this?
I'm not seeing any code that attempts to notify the view of
the enter key being pressed in the edit control.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi Mr.Salsbery,
i tried to include the view in the MyEdit.cpp and then to pass the value to the OnUpdate
I tried different possibilities but no one worked, so i cleaned up the functions !
I know that i have to notify the view, i've read it in the book from swanke but i don't know how to do that ?
Thanx for your help
best regards
Croc
|
|
|
|
|