|
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?
|
|
|
|
|
Hi,
I've written a program in Visual C++ 6.0 that periodically outputs data to a text file. Now, however I need to output this data to a MS Access database. I've created a link to Access using the Class Wizard to autogenerate code from 'MSACC9.OLB'. I've then created an instance of _Application which then allows me to open/create a database.
The problems that I have are:
1) when Access starts up, as well as opening the specified database it also displays the 'Select Database' dialog. How do I get rid of this?
2) Now that I have my database open how do I go about opening a table and then inserting data into it?
I've created a DoCmd object which I attach to my _Application object, however when I call OpenTable I get 'member not found' error even though the table exists. This may be due to my lack of understanding of the VARIANT type, as I've only created it and then called SetString (passing in my table name) on it.
many thanks,
Andy
|
|
|
|
|
You are doing it the hard way, aren't you?
Why don't you use DAO or ADO? These will allow you to create your database, update it in the much more efficient way? And you do not need to have Access installed...
Good luck!
|
|
|
|