|
How to make Matrix Using C
If C doesn't fit your budget, you could contact Keanu reeves.
|
|
|
|
|
oh, i am thinking about calling neo!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
How get value of variable that is in class View to
another class CAdodc_MDI()
LRESULT CADO_MDIView::OnGoodbye(WPARAM wParam, LPARAM lParam)
{
CString m_s(L”TEXT”);
}
for example another class:
BOOL CAdodc_MDI::OnInitDialog()
ADD the string:
#include "ADO_MDIView.h"
Set into file of implemetation ( three of variants)
// Adodc_MDI.cpp : implementation file
#include "stdafx.h"
#include "ADO_MDI.h"
//-1 #include "ADO_MDIView.h"
#include "Adodc_MDI.h"
//-3 #include "ADO_MDIView.h"
#include "UpdateDlg.h"
#include "MyModeless2.h"
#include "ADO_MDIView.h"
appwar below errors:
ado_mdiview.h(19) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
ado_mdiview.h(19) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
ado_mdiview.h(19) : warning C4183: 'GetDocument': missing return type; assumed to be a member function returning 'int'
|
|
|
|
|
Those errors have nothing explicitly to do with getting the variable value - you've got a syntax error somewhere in your code (maybe around line 19 of ado_mdiview.h, perchance?). Of course, it's difficult to tell, as you haven't posted the relevant bit of code!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
PLEASE, who can more
exactly
|
|
|
|
|
Are you practicing sentence fragmentation?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I can't comment on problem you facing, but spotted one error above :-
CHIVOTIOV wrote: LRESULT CADO_MDIView::OnGoodbye(WPARAM wParam, LPARAM lParam)
{
CString m_s(L”TEXT”);
}
you forget to return something from above function!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I'm writing a C++ program which minimizes a batch file to the system tray. I want to add a piece of code which will change the system tray icon if the batch file updates (that is, another line is printed onto the cmd.exe window)
Any ideas on how I could do this?
Thanks
|
|
|
|
|
Why not get your program to execute the batch file itself (using CreateProcess). Then it can capture the batch files output directly[^] rather than having to go through some intermediary. Oh, and your program could write the batch file output to a rich edit box or something?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
how do we specify two flags for a create file attribute dwFlagsAndAttributes??
|
|
|
|
|
I'm not sure I got your question but if you want to combine two flags into one variable (and that's a general case), you have to use the | operator (OR):
int Flag = FLAG1 | FLAG2;
Does that answer your question ?
|
|
|
|
|
Yeah, but i was really confused with the others. thank you.
|
|
|
|
|
Use a bit-wise OR to combine them - so, to create a read-only, hidden, system file, you'd specify FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_READONLY
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
BITWISE operator can help!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi all,
I have made a Dialog based application in vc 2008. In my application i am opening second dialog box using DoModal() on a button click event of first dialog box. In second dialog box i am starting a worker thread in my OnInitDialog() function.My problem is while my second dialog box is still doing some work, first dialog box can be closed in the back that is it is active.
Please help me in this
Thanks in advance
|
|
|
|
|
Are you telling that you are able to close your first dialog while the second one is still active, or are you asking how to get this done?
With DoModal() , the runtime will spawn a Modal dialog, which will need to be dismissed to go back to the parent (the window that spawned it). You must use CDialog::Create[^] if you need a modeless dialog.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
No i am telling that i am able to close it and i don't want to close it. I am not getting why a modal dialog is behaving like that
|
|
|
|
|
That cannot happen. Have you checked the return value of the dialog that you spawned with DoModal() ? Also, when exactly is your modal dialog return ing?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Its returning when i close the dialog box but parent dialog box can be closed and i get the ret_value after child dialog box is closed.
Save obj;
int ret_val = obj.DoModal();
|
|
|
|
|
are you opening your second dialog from some worker/secondary thread.
IMHO, you can never operate on firt dialog if second dialog is open as model dialog!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
What happens if, in the second dialog, you comment out the thread-creation code? In other words, you have one modal dialog opening another.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi everybody
I am having a small querry
int * p = new int(10);
int a = 10;
int * q = &a;
then to delete pointer p
delete * p;
Whether pointer q is also created on the heap.
If so how to delete it?
Is q = NULL is correct?
|
|
|
|
|
Deepu Antony wrote: delete * p;
It's like:
delete p;
Deepu Antony wrote: Whether pointer q is also created on the heap.
Nope, heap allocation occurs only when you use any of the heap allocation functions (new , calloc , malloc , etc.,)
Deepu Antony wrote: Is q = NULL is correct?
No. q has the address of the variable a . And can be pointing to some random value if you hadn't assigned it like that.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Deepu Antony wrote: Whether pointer q is also created on the heap.
If so how to delete it?
Is q = NULL is correct?
No, q is not allocated on the heap. It just contains the address of a, you didn't allocate anything for it. Keep in mind a very simple rule: for each call to new, you should have a matching delete. No more, no less. In this case, you have one single new (for the p pointer), so you have to call delete on this pointer, and that's it.
|
|
|
|
|