|
si_69 wrote: Do you have any ideas to my problem ??
See here for starters.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
For the life of me, I can't find a concrete example of how to switch views within MFC's preferred Document/View framework - in an MDI application. Allow me to briefly explain. The examples I have seen, even on this website, require you NOT to use document templates (that bind a view, with a document, and a frame). I would be forever in your debt if someone could point me to a resource or an example of how to switch/change views, in an MDI - even if I am using the document template.
Thanks so much,
Blitz
|
|
|
|
|
How about the method CFrameWnd::SetActiveView ??? (look in MSDN)
does this helps you?
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Thanks, I will try that approach. I guess I have to execute that from the Child Frame containing the view, correct?
Thanks again.
|
|
|
|
|
indeed
good luck
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Try here[^]
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Thanks Ryan,
I have seen that article. However, it seems to only refer to document/views that have not been incorporated into a document template.
What do you think?
Thanks again,
Blitz
|
|
|
|
|
Document templates are irrelevant to what you're trying to do. The templates are only used when the document is created or an existing document is opened. You're just wanting to give an existing document a different view, right? That's precisely what that article is doing.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I am Using two formview based classes in my SDI application which consist of 4 splitter window panes
Whenever I use GetPane() function to get the particular pane of formview tmy code gives an error "IDD_STATUSFORM' : undeclared identifier" which is the id of my formview classes
Please help me out i am just the beginner
|
|
|
|
|
Did you include "resources.h" in the file you are using IDD_STATUSFORM ?
|
|
|
|
|
hi all,
how to Invoke a Crystal Report From VC++ Dialog. please provide a solution for a snippet of code.
thanks,
uday.
uday kiran
|
|
|
|
|
Hi, everyone !
I've developed a vc++ client which receives messages from a queue,
asynchron. I've used MSMQEvent and it's event - Arrived. But, this event
doesn't get called as new messages arrive in the queue.
Please provide a snipped of code for this.
thanks,
uday.
uday kiran
|
|
|
|
|
I need to develop an network application that will run on two Windows XP machines. What I need to do is from machine A I will have my program running, this program will open up a console window on machine B and then periodically machine A will output data to this console window.
Does anyone know if this is possible and any potential pitfalls (i.e. security settings), also any links to articles/examples would be great (I'm not sure what this type programm would be classed as so I'm having trouble finding out how feasible it is!)
TIA,
Andy
|
|
|
|
|
hi,
go to the MSDN you can find the Raw Sockets example.
"http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/complete_client_code.asp"
go for both client and server applications.
good luck.
thanks,
uday.
uday kiran
|
|
|
|
|
Another approach is to use DCOM.
Steve
|
|
|
|
|
|
int *ptr=(int*)malloc(sizeof(int)*3);
int** aptr= &ptr;
char* buffer="90";
sscanf(buffer,"%d",aptr[0]);
sscanf(buffer,"%d",aptr[1]);
What is wrong with this code?
Vikram S
|
|
|
|
|
There is no aptr[1] .
Steve
|
|
|
|
|
well I want to set ptr values using aptr using sscanf, How can i?
|
|
|
|
|
int *ptr=(int*)malloc(sizeof(int)*3);
int** aptr= &ptr;
char* buffer="90";
sscanf(buffer,"%d",&((*aptr)[0]));
sscanf(buffer,"%d",&((*aptr)[1]));
nave
|
|
|
|
|
What problem(s) are you having?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
I assume you mean this?
int a, b;
const char* buffer = "90";
sscanf(buffer, "%d", &a);
sscanf(buffer, "%d", &b);
Or if you really want to use dynamically allocated memory (I wouldn't):
int *ptr = malloc(sizeof(int)*2);
const char* buffer = "90";
sscanf(buffer, "%d", &ptr[0]);
sscanf(buffer, "%d", &ptr[1]);
Steve
|
|
|
|
|
Well friends,
I have actually a function which takes an input an int** ptr and allocates a memory.
void function( int**ptr)
{
*ptr=(int*)malloc(sizeof(int)*2);
char* buffer="90";
sscanf(buffer,"%d",(*ptr)[0]);
sscanf(buffer,"%d",(*ptr)[1]);
}
int main()
{
int*ptr;
function(&ptr);
return 1;
}
-- modified at 8:55 Monday 24th April, 2006
|
|
|
|
|
|
Yes...thanx a lot Naveen !
|
|
|
|