|
I generated a FormView Dialog in a MDI, I can use a item in Menu to active and display the dialog, however, when I click the MINIMIZEDBOX on the dialog, it will disappear, and I can't find it back ever.
I must say this dialog didn't destroy normally!
What should I do , do you meet with this kind of problem?
Hoping...
|
|
|
|
|
Hi there
I am writing a program to use linked lists using templates, and i am trying to make it as fast as possible, so i am thinking of storing the address of the last inserted item.
Each node of the list if declared as follows:
template <class ItemType>
struct NodeList
{
ItemType *item;
NodeList<ItemType> *next;
}
what i am trying to do is to declare a global variable like
template <class ItemType>
NodeList<ItemType> *last_inserted=NULL;
, but the compiler won't allow me to do that. If instead i declare it as
NodeList<<int>> *last_inserted=NULL, it is ok, but it would work for integers only.
How can I get this to work???
Thanks
|
|
|
|
|
Have you thought about using the STL to do this? It does exactly what you need, is about as fast as you can get, and most importantly, it works without you needing to re-invent something. An example can be found here[^].
If you really must create your own linked list, then there is no need to use a global (which is a bad thing to do anyway) for the next position. Instead, store it in the class that provides the list operations.
|
|
|
|
|
I wish I could do that, but this is my assignment for my computer science project...
Thanks for the reply.
Thiago Guzella
|
|
|
|
|
I want to create transparent gdi objects..how is it possible
|
|
|
|
|
|
it's not it is hard i have a teacher teaching me and i still don't no what the f*** to do
|
|
|
|
|
|
|
I have an UI based application designed using DirectSOund to capture nad playback voice. But teh problem is that it expects the UI window to be on top and on focus always. Presently I am passing the handle to the main UI application so when i minimize it our bring another application on top of this no audio can be heard though capturing takes place.
Presently I am setting DSSCL_PRIORITY in SetCooperativelevel. I have also tried the other levels....NORMAL, etc.
anybody worked on DirectSound ?Any solution to this ??
|
|
|
|
|
Use DSBCAPS_GLOBALFOCUS in the DSBUFFERDESC structure. Hope this helps
-Tareq
|
|
|
|
|
I am face'g proble in the DLL. when I work in Debug mode the code work fine
/////--code is--//////
char* pCharPointer = new char[intLength];
//
//some code
//
pCharPointer = NULL;
delete [] pCharPointer;
///////////
But give error in release mode.....
//////////////////////////////////////////////////////////
If I change the code to
//////--code---/////
char* pCharPointer = new char[intLength];
//
//some code
//
//----pCharPointer = NULL;
delete [] pCharPointer;
///////////
it work's fine in release mode but give error in the debug mode...
It will be a big help if some body can clear WHY????
utkarsh sharma
"Not everything that counts can be counted, and not everything that can be counted counts."
|
|
|
|
|
The first snippet is just wrong - you're overwriting the actual pointer to the memory block, which causes delete[] to simply do nothing in release mode. There's probably an assert in debug mode to tell you that you're trying to delete a null pointer.
If your debug mode is telling you about a problem, you should probably listen. Release mode doesn't do as much checking. Could you be corrupting this pointer somehow?
It would help if you posted the error message(s).
|
|
|
|
|
I wish to elaborate on what mike said.
char* pCharPointer = new char[intLength];
pCharPointer = NULL;
delete [] pCharPointer;
char* pCharPointer = new char[intLength];
delete [] pCharPointer;
delete [] pCharPointer;
pCharPointer = NULL;
delete [] pCharPointer;
INTP
|
|
|
|
|
pCharPointer = NULL;
delete [] pCharPointer;
Sir, are you blind? That if anything ought to raise suspicions.
--
If there was a problem, Yo, I'll solve it!
Check out the hook while my DJ revolves it.
|
|
|
|
|
Hi at all,
is there a way to send messages from an application A to an other
application B?
Application A is mine, application B is not mine. Application B has an icon
in the status bar.
With application A i would like to send messages, like WM_KEYDOWN or right
button click, to appliaction B via its icon on the status bar.
It is possible?
thanks a lot
roberto
|
|
|
|
|
hi there ..
there r ways to send info from one application to another Like memory mapped file, DLL hooking ...
for this in the above win95 u can work upon but u need control of both the application in this scenario.
you can refer any Advanced Windows book of Jeffry Richter of Microsoft Press
....
all the best..
....
utkarsh sharma
"Not everything that counts can be counted, and not everything that can be counted counts."
|
|
|
|
|
roberto674 wrote:
With application A i would like to send messages, like WM_KEYDOWN or right
button click, to appliaction B via its icon on the status bar.
Get the HWND of Application B
and use ..
SendMessage(hWnd_B,WM_KEYDOWN,....);
To Get The HWND of B application USE
FindWindow
Hope it Helps
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
Sure,
but the problem is the HWND from FindWindow is the handle of main application B. If application uses another window associates to at the icon on th status bar? the window that manages messages from mouse (right click and so on)...
the HWND of the main application B cannot be the same the window that do this.
can help me some shell functions for this?
roberto
|
|
|
|
|
Hi,
do you know about some libraries with which I could extract text from a pdf file?
Thanks
Pepe
|
|
|
|
|
|
i want general printer protocol wich one is used by each application in windows. in windows when we send print command then some data is sent to pronter driver for printing.that data format i want .
PLz if anybody knows this plz help me
|
|
|
|
|
Can I make sure that the height of the listbox of a CBS_DROPDOWNLIST combobox is not affected by the itemcount, if this count implies a smaller height as defined by creation?
|
|
|
|
|
Use CComboBox::SetDroppedWidth( UINT nWidth );
//sample
// The pointer to my combo box.
extern CComboBox* pmyComboBox;
// Find the longest string in the combo box.
CString str;
CSize sz;
int dx=0;
CDC* pDC = pmyComboBox->GetDC();
for (int i=0;i < pmyComboBox->GetCount();i++)
{
pmyComboBox->GetLBText( i, str );
sz = pDC->GetTextExtent(str);
if (sz.cx > dx)
dx = sz.cx;
}
pmyComboBox->ReleaseDC(pDC);
// Adjust the width for the vertical scroll bar and the left and right border.
dx += ::GetSystemMetrics(SM_CXVSCROLL) + 2*::GetSystemMetrics(SM_CXEDGE);
// Set the width of the list box so that every item is completely visible.
pmyComboBox->SetDroppedWidth(dx);
greatest thing is to do wot others think you cant suhredayan@omniquad.com
|
|
|
|
|
How do I make sure that the height of the listbox of a CBS_DROPDOWNLIST combobox is not affected by the itemcount, if this count implies a smaller height as defined by creation?
|
|
|
|