|
Hi,
I actually I've to complete my project asap.I just have to display the database(MSACCESS) thru comboboxes.I just have to display the corresponding products,of say 1st combobox in 2nd combobox.How do I do it,where should I write the code.
pls hlp
swapna_signsin
|
|
|
|
|
Hi
Please try to use DAO in your program. More help is available in MSDN
regards
KK
|
|
|
|
|
Hi
Write combo box change message function for 1st Combo Box
In the function clear 2nd combo box and write query corresponding to the value of first combo box
regards
KK
|
|
|
|
|
Hi All,
I am trying to implement a SampleGrabber filter which takes two input and gives an output.
My actual requirement is I want to replace an audio stream in any media file with my own audio stream.
Can anybody help me out in this.
Thanks in Advance
Poornima
|
|
|
|
|
Sample application is available in DirectX SDK
Samples\C++\DirectShow\Editing\SampGrabCB
Use ISampleGrabberCB. For more help search in MSDN.
Regards
Amar.
|
|
|
|
|
Hi Amar,
I created time line object to mix audio and video files. It is working fine and thanks for the help.
How can I save this to a destination?
Regards,
Poornima
|
|
|
|
|
Hello!
I want to write a program that releases files that are in use by something I don't know...
Actually, I don't know where to start... If someone could help, I would be very thankful...
Thanks in advance!
|
|
|
|
|
check for CTL_E_FILEALREADYOPEN.
If the file is already open you would need to create a custom method for
CUSTOM_CTL_SCODE and then you can release the file you intend to use.
May be this can help you.
Vision is Always important and so is your ATTITUDE.
Wishes.
Anshuman Dandekar
|
|
|
|
|
I didn't understand what you mean... Maybe you can better explain yourself?
Thanks!
|
|
|
|
|
hey
can someone assist me with a small problem.
i have a project which has to be implemented in english as well as japanese.
in english i have a string on which a check of 64 characters is applied. but when japanese characters are stored in it it accepts only 34 characters.
_T macro did not work as well as the string is defined to be of CString type.
please help......
Amita Sapra
|
|
|
|
|
Get the Buffer from the Cstring and apply the
_mbslen function on it
hope it works
Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'
|
|
|
|
|
I debug a c++ program and the program supposed to write out a numerical (float type) array into a file. The number should be decimals with 3 digits, but I got the file looks like:
test Point# 1
-1.#IO -1.#IO -1.#IO
-1.#IO -1.#IO -1.#IO
-1.#IO -1.#IO -1.#IO
-1.#IO -1.#IO -1.#IO
-1.#IO -1.#IO -1.#IO
-1.#IO -1.#IO -1.#IO
-1.#IO -1.#IO -1.#IO
-1.#IO -1.#IO -1.#IO
-1.#IO -1.#IO -1.#IO
-1.#IO -1.#IO -1.#IO
-1.#IO -1.#IO -1.#IO
What is the problem ? How to fix it ?
Thanks
|
|
|
|
|
please post the code as well, will get an answer quickly that way
(seems like a formatting problem to me incorrect %d may be, hard to say without looking at code)
*radio crackle*
The cucumber has left the salad
- I say again -
The cucumber has left the salad
David in soapbox
|
|
|
|
|
The problem appears not to be due to the formating because when I use stop points to
print the value during debug I got the same problem: -1.#indo
........................
..............
fprintf (f_ptr5, "%s %i \n", "testor#", m_p_testor_no+1);
for (i=0;i
|
|
|
|
|
would it like to know how to divide at several quadrants a Form ? would like to know how to count Label of Panel, not Form? would it like to know how to divide at several quadrants a Panel?
All this using C++ Builder 6
I can learn mora about c++
|
|
|
|
|
Try "C++ Builder forums", like this[^].
Maxwell Chen
|
|
|
|
|
if i type code why doe it not work what would be the right way
int a;
a=5;
textBox1->text = a;
it does not display 5 it gives an error
thanks
morgus
|
|
|
|
|
your text box would be containing the sring value. you can assign
textBox1->text="5";
Cheers
"Peace of mind through Technology"
|
|
|
|
|
in addition to previous answer, you can convert an integer to a string using itoa[^].
-Saurabh
|
|
|
|
|
After assigning value, call UpdateData(false);
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Hi Scientest ,
you need to convert from int to string for use in CEdit
you can use:
CString str;
int i;
i=5;
str.Format("%i",i);
textBox1->SetWindowText(str)(if textbox is CEdit)
or
TCHAR Buffer[15];
itoa(i,Buffer,10);
textBox1->SetWindowText(Buffer);//(if textbox is CEdit)
|
|
|
|
|
Hi,
I have a problem using the delete operator on an object. I have been debugging the code for hours and have run out of ideas. My code is similar to the following:
MyClass *MyClassPointer;
MyClassPointer = new MyClass(PointerParam1, PointerParam2);
delete MyClassPointer;
The code "delete MyClassPointer" cause a Debug Assertion saying that line 1044 of dbgheap.c caused an error at the expression _CrtIsValidHeapPointer(pUserData).
I'm completely stumped as to why I can't delete this particular object. I am dynamically allocating and deleting lots of other objects without any problem but this one is causing me grief.
Any ideas as to what I should be looking for ?
Thanks
Ethann Castell
|
|
|
|
|
can you show us destructor for MyClass, it seems that in its destructor you are either trying to delete something that isn't allocated or already deleted.
-Saurabh
|
|
|
|
|
A failed assert in a delete call means you either already freed that memory, or you wrote outside the block of memory allocated for the object. Either way, it's a bug.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
Thank you both for your help.
The problem was caused by trying delete a non existant object in the destuctor of a base class. I got put off because I was tracing in the debugger but tracing into the delete does not seem to take you through the destructors. Once I put an explicit breakpoint in the destructor of the base class, the problem became clear.
Thanks again.
Ethann
|
|
|
|