|
Hi RChin,
Thanks for your reply. Your reply seems to be lost though! But it did not work. Now I get the following error,
c:\Pankaj\TestProjects\BeatDetectionNew\BeatDetection.cpp(180): error C2664: 'Beat::FilterBank::SetUp' : cannot convert parameter 3 from 'double (*__w64 )[6][7]' to 'double ** '
I always thought I could pass it as a pointer. I mean we can pass an array as a pointer
Pankaj
Without struggle, there is no progress
|
|
|
|
|
this will compile:
<br />
static double arrVar[2][2]={1,2,3,4};<br />
SetUp( &arrVar[0][0] );<br />
or
<br />
static double arrVar[2][2]={1,2,3,4};<br />
SetUp( arrVar[0] );<br />
if you declare the function as
void SetUp(double*)
Your function will have to know the dimentions of the given array.
However, you might have a valid reason for declaring the input parameter as a pointer to a pointer.
|
|
|
|
|
Hello,
it works if you call your function like
SetUp((double**)ERBbCoeff_22050).
|
|
|
|
|
hey, it works!!
Thanks a bunch!
Pankaj
Without struggle, there is no progress
|
|
|
|
|
Hi guys,
How to give database support to an existing MFC Project?? I have tried in the following way.
1.Inserted a new class with CRecordSet as the base class.
2.Connected to the database.
3.Included the necessary headers and declarations.
It compiling without error and warnings but when I am try to run my project it is giving "unhandled exception".
I debug the code it is stopping at m_pSet->AddNew().
Can anybody help me please ..
Regards,
Satya
|
|
|
|
|
hi all,
I am working on something where i need to change the default search page of windows. i.e. auto.search.msn.com that is just type anything on IE addressbar and if that doesn't exit it will automatically be diverted to auto.search.msn.com....now if i want to change it to google I can do that..but I am unable to change it to any other search engine or any other site...
what should I do...can anyone help me...out there..
thanks in advance..
Himanshu
|
|
|
|
|
hello @all,
i have a mfc-program and two CStrings.
i would like to connect these, but everyone in its own line, e.g. they should be separated with a Return.
CString one="123";
CString two="456";
CString combination="123
456";
i posted it yesterday and somebody said, that i can use this:
combination=one+0X0A+0X0D+two;
but when i save my CString combination into a txt-file, the CString are not in its own line, there is only a 'symbol' between them.
what must i do, that the CStrings are in their own lines???
thanks
sunny
|
|
|
|
|
use "\n"
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
It should be :one +0X0D+0X0A+two;
|
|
|
|
|
why not just:
combine=one+"\r\n"+two;
includeh10
|
|
|
|
|
Hi,
I am currently developping an outlook plugin using MAPI.
I inserted a new toolbar button in the new message window of outlook.
Now when the user clicks on this button, i need to get the info from the mail he has been creating (ie: recipients email adresses , to, cc, bcc, subject and body and attachments)
In order to do that, I retrieve the IMessage object using the IExchExtCallback ::GetObject method.
The problem is that the IMessage object doesnt seem to be up to date with the info the user just typed in.
So is there any way to synchronize the IMessage object with the latest info typed in by the user, or is this not the correct way to retrieve the infos i need at all ?
Thanks for your time
|
|
|
|
|
Hi all,
can u please give me the name of the functionwhich will be called everytime when the view is activated when there are two views opened on a framewindow...(not belonging to View Class as I have no View classes with me and I load them from a DLL)...
thanks and regards
Thomas
ThomasKennedyBose
|
|
|
|
|
I have a custom CView that has a CListCtrl inside and I want to handle whatever the user does in the ListCtrl in my CView class. (I think that is the appropriate MFC way besides making a custom ListCtrl, right ?)
so I put the ListView inside an tried in my CView:
direct handling in the messagemap like OnLButtonUp()
this just executes when I click outside the list.
so I tried OnChildNotify(), which is executed when I add an item in the initialisation, but that's all, never else.
Basically I just want to know if the user has clicked in the list, selected something, everything you also get in the listctrl.
Where is the correct place to handle these things ?
(I also have another view with a combo and an edit ctrl and I think, they'll give me the same problem, so a general answer to handle control messages in CViews would be nice.)
|
|
|
|
|
You can get notified about many things by adding an ON_NOTIFY handler to your dialog's message map. You can then handle mouse- and keyboard-events as well as control-specific envents, like LVN_COLUMNCLICK when a column of your list ctrl gets clicked.
|
|
|
|
|
It's not a dialog and so classwizard doesn't show me WM_NOTIFY when I try to add a message handler.
Does adding this manually work ?
|
|
|
|
|
As the control sends that message to its parent it should work. However I'm not really sure as I only tested such stuff on dialogs. Nevertheless you should try adding it manually.
But as I just saw, WM_NOTIFY is not sent by standard controls like combo boxes, edit fields etc - in contrast to list ctrl, which does.
|
|
|
|
|
It worked, I think I have to interfere with the Classwizard-done messagemap then
thx
|
|
|
|
|
Hello all,
I'm writing an application where I need to prevent users from deleting/moving/... files on my hard-disk. The only thing I found out is that you can do that for whole folders by use of ICopyHook. But are there other solutions, especially for single files, too?
Thanks,
Schlaubi
|
|
|
|
|
For single files you could set its attribute to write-protected. That would be the nicest way, because the user can still choose if he absolutely wants to delete the file.
However if you want to prevent the user from deleting/moving it during runtime, you could just open the file. The OS would not allow opened files to be deleted/moved.
|
|
|
|
|
Thanks for your hints, but I need to prevent the user form deleting any file on my disk. So both your solution will not work for me.
Thanks anyway!
|
|
|
|
|
Are you trying to build an anti-virus tool?
I don't think that is possible...
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Are you trying to build an anti-virus tool?
How did you come accross that idea? Do you write a virus and fear my tool?;)
No, in fact i wrote a "secure" browser for some kind of information terminals. And some kids tried (and even got it out ) how to delete files. That was the point I started to think about kind of forbid-to-delete-tool.
|
|
|
|
|
Maybe you can use File system access rights?
This would work under NT, 2K and XP prof.
The outdated(W95 to ME) and crippleware (XP Home) versions are out of the question, though.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
Seems like I've to add another line.
I dont wanna play with access rights and that stuff - my goal is to prevent deleting only during runtime, not during the whole windows session.
But thanks for your hints anyway
|
|
|
|
|
Schlaubi wrote:
I dont wanna play with access rights and that stuff - my goal is to prevent deleting only during runtime, not during the whole windows session.
I do not think that I would <big>want</big> that to be possible - at least not with one of the "real" Windows versions. But I fear there could be some hook to do that.
My opinions may have changed, but not the fact that I am right.
|
|
|
|