|
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 !
|
|
|
|
|
Hi,
I want to access the data of node "sequence" and "prompt" in following DOM XML.
<br />
BSTR bstrResponse = SysAllocString( L"<Item>"<br />
L"<serviceProvider>Test</serviceProvider>"<br />
L"<scanSerialNumberPrompt>"<br />
L"<sequence>1</sequence>"<br />
L"<prompt>Serial Number</prompt>"<br />
L"</scanSerialNumberPrompt>"<br />
L"</Item>");<br />
I am using the following code
<br />
MSXML2::IXMLDOMNodePtr pNodeItem = NULL;<br />
MSXML2::IXMLDOMNodePtr pNode = NULL;<br />
MSXML2::IXMLDOMNodePtr CurrentChildNode = NULL;<br />
MSXML2::IXMLDOMNodePtr CurrentNode = NULL;<br />
pNodeItem = CurrentNode->selectSingleNode("serviceProvider"); <br />
pNodeItem =CurrentNode->selectSingleNode("scanSerialNumberPrompt");<br />
for (CurrentChildNode=pNodeItem->firstChild; CurrentChildNode!=NULL; CurrentChildNode = CurrentChildNode->nextSibling)<br />
{ <br />
pNode = CurrentChildNode->selectSingleNode("sequence");<br />
pNode = CurrentChildNode->selectSingleNode("prompt");<br />
}<br />
I am getting the null value in "pNode". Can you please let me know what is the error in accessing the child node in DOM XML.
Thanks
-- modified at 8:33 Monday 24th April, 2006
|
|
|
|
|
I would do it a bit differently:
....
....
pNodeItem =CurrentNode->selectSingleNode("scanSerialNumberPrompt");
if (NULL != pNodeItem)
{
MSXML::IXMLDOMNodeListPtr pXMLNodeList = pNodeItem->selectNodes(_T("sequence"));
if (NULL != pXMLNodeList)
{
MSXML::IXMLDOMNodePtr pXmlNode = NULL;
for(int i = 0; i < pXMLNodeList->length; i++)
{
pXMLNode = pXMLNodeList->nextNode();
if(pXMLNode)
{
_bstr_t bsTxt = pXMLNode->getText();
........
Do what ever you want with the text here
........
}
}
}
}
same thing for "prompt"
Hope this helps you
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Thank you very much Yaron!! your solution is working fine. I wish, I could got the exact problem of my code too.
Regards
|
|
|
|
|
Hi
I am making an application where I need DDK and I started with a dialog based application in which only include ntddk.h file
Here I am having a problrm, when I include NTDDK.H then it gives error as folloews:
*******************************************************************************
*******************************************************************************
--------------------Configuration: Native - Win32 Debug--------------------
Compiling...
NATIVE.C
c:\program files\ntddk\inc\ddk\ntddk.h(7914) : error C2146: syntax error : missing ';' before identifier 'InterruptTime'
c:\program files\ntddk\inc\ddk\ntddk.h(7914) : error C2061: syntax error : identifier 'InterruptTime'
c:\program files\ntddk\inc\ddk\ntddk.h(7928) : error C2061: syntax error : identifier 'SystemTime'
c:\program files\ntddk\inc\ddk\ntddk.h(7928) : error C2059: syntax error : ';'
c:\program files\ntddk\inc\ddk\ntddk.h(7935) : error C2061: syntax error : identifier 'TimeZoneBias'
c:\program files\ntddk\inc\ddk\ntddk.h(7935) : error C2059: syntax error : ';'
c:\program files\ntddk\inc\ddk\ntddk.h(8048) : error C2059: syntax error : '}'
c:\program files\ntddk\inc\ddk\ntddk.h(9101) : error C2061: syntax error : identifier 'PCONTEXT'
c:\program files\ntddk\inc\ddk\ntddk.h(9102) : error C2059: syntax error : '}'
c:\program files\ntddk\inc\ddk\ntddk.h(10051) : error C2061: syntax error : identifier 'KeTickCount'
c:\program files\ntddk\inc\ddk\ntddk.h(10051) : error C2059: syntax error : ';'
c:\program files\ntddk\inc\ddk\ntddk.h(10075) : error C2040: 'KdDebuggerEnabled' : 'unsigned char *' differs in levels of indirection from 'unsigned char '
c:\program files\ntddk\inc\ddk\ntddk.h(10342) : fatal error C1189: #error : "Target architecture not defined"
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\NATIVE.SBR': No such file or directory
Error executing bscmake.exe.
Native.exe - 14 error(s), 0 warning(s)
****************************************************************************
****************************************************************************
So please tell me that how to remove these problems
using these order in Tools->option->Directories:
INCLUDE FILES:
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE
C:\PROGRAM FILES\NTDDK\INC
C:\PROGRAM FILES\NTDDK\INC\DDK
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
LIBRARY FILES:
C:\PROGRAM FILES\MICROSOFT SDK\LIB
C:\PROGRAM FILES\NTDDK\LIBFRE\I386
C:\PROGRAM FILES\NTDDK\LIBCHK\I386
C:\PROGRAM FILES\NTDDK\LIB\I386\FREE
C:\Program Files\Microsoft Visual Studio\VC98\LIB
C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB
Please help me.
Thanks
|
|
|
|