|
Maybe you have an old version of MFC (for instance, VS6 MFC doesn't have the CWnd::FlashWindowEx method while it has the CWnd::FlashWindow one). As workaround, try to use the Win32 FlashWindowEx function.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
|
|
i want to extract the port information of other pc's on my lan like on which port which .exe or process is going .
Thanks
Sumedh
|
|
|
|
|
can anyone show me how to read from a text file i have opened and written to using cfile.
eg this is how i opened and wrote to the file.Check1 is a boolean variable.i would like to retrieve the value of that boolean variable.
CFile LoggingObject;
CString txt;
txt.Format("%d", check1);
LoggingObject.Open( "c:\\test.txt", CFile::modeCreate|CFile::modeReadWrite);
LoggingObject.Write (txt,sizeof(txt));
|
|
|
|
|
Since you knew how to use the Write() method, I'm surprised that you overlooked the Read() method.
sivern wrote: LoggingObject.Write (txt,sizeof(txt));
This should be:
LoggingObject.Write(txt, txt.GetLength()); Or:
LoggingObject.Write(&check1, sizeof(int));
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi all,
Please give me an example of how i can parse the xml file using VC++/C++.I have seen many examples on net but none is clear.
Regards
|
|
|
|
|
See here, here, here, here, and here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Maynka wrote: Please give me an example of how i can parse the xml file using VC++/C++.I have seen many examples on net but none is clear.
just come across today http://www.codeproject.com/useritems/CXml.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
I,m not sure if this is the right place to ask, but...
I use:
<br />
#include <atlbase.h><br />
#include <atlcom.h><br />
in my code , and keep getting err message on building:
"error C2065: '_Module' : undeclared identifier". '_Module' is in ATLCOM.H folder.
Thanks for help in advance!
|
|
|
|
|
Have you tried:
#include <atlbase.h>
extern CComModule _Module;
#include <atlcom.h>
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
hi guys,i am trying a 3-D dynamic array in C.i know how to do it for 2-D but i dont konw what i am missing to do it properly for 3-D
say h*w are the size of a matrix
int **matrix=NULL;
matrix=malloc(h*sizeof(int));
for(i=0;i
|
|
|
|
|
ovoundaga wrote: matrix=malloc(h*sizeof(int));
Actually it should be
matrix = malloc(h * sizeof( int * ))
Anyway, the overall process you posted it is correct, hence
int m, n, o;
int h, w, k;
h=3; w=5; k=7;
int *** pppInt ;
pppInt = (int ***) malloc(h*sizeof(int **));
for (m=0; m<h; m++)
{
pppInt[m]= (int**) malloc(w*sizeof(int*));
for (n=0;n<w;n++)
{
pppInt[m][n]=(int*) malloc(k*sizeof(int));
}
}
for (m=0;m<h;m++)
{
for (n=0;n<w; n++)
{
for (o=0;o<k; o++)
{
pppInt[m][n][o]=rand();
}
}
}
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
dang! i think you just helped the guys cheat on his homework...LOL;P
Yours Truly, The One and Only!
|
|
|
|
|
C pointers as homework... Oh my God!!!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Hi,
Is there any way to expand all the nodes in 'QuickWatch' window for a huge structure.
I am facing this problem with a link list while debugging in VS2005.
Thanks,
Kishor
|
|
|
|
|
Kishorb wrote: I am facing this problem with a link list...
I don't think this is possible with such a (dynamic) data structure.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Is there any way customize visual studio environment like through API's?
|
|
|
|
|
Not that I am aware of.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Instead of expanding all the nodes in quickwatch, you could just export the variable to JSON or XML using this Visual Studio Extension:
Object Exporter extension[^]
|
|
|
|
|
Hi all,
I am putting a little bit of logging in an edit window in my program. I don't want the edit window to do my wrapping, since I want to have control over possible indenting. I use the CDC * of the window and use "Size = pDC->GetTextExtent (strLog); to get the width of the text I am trying to put in the window. To compare this to the width of the available client area, I have tried both GetCLientRect and pDC->GetWindowExt. I have tried to convert the co-ordinates of the client rect using pDC->DPtoLP, but it still gives me less space than is actually available (since the program starts wrapping lines that did not have to be wrapped). The GetWindowExt routine, returns with both the CSize's cx and cy parameters set to 1, which obviously does not help either. Anybody any bright ideas please?
Thanks in advance,
William
|
|
|
|
|
Hello all,
I am trying to provide CD/DVD burning facility to my application. I have decided to use Magic CD/DVD burning component. has anyone used this component before? I am currently using the demo of the component. But I am not able to write data onto the CDs. I don't know what mistake I am doing. Can anyone point out what is the mistake that i am doing? here is the code snippet.
CMCDBurner *pObj;
pObj = new CMCDBurner;<br />
<br />
void (__stdcall *pWriteDone)(int , bool , void *);<br />
pWriteDone = &(CMCDBurner::WriteDone);<br />
pObj->InsertFile("\\", "c:\\mcdbc.log");
pObj->Prepare();
pObj->Burn(pWriteDone,NULL);
The example source that is provided with the Demo is something similar to the one written above. surprisingly, it can write data and my application cannot. so i am sure that i am doing the mistake. Can anyone help??? thanks in advance.
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
So which function call is failing?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
On the codeproject is an article is about convert pdf to text but on that article is source code of Nero maybe it will be helpful for you.
|
|
|
|