|
hi, I am making a program, inside the dialog i have a list box. And i have a list of data stored in Access file, I want to know how can i get the list of data into the list box in my dialog??
Thank you very much that anyone helped... in advance
|
|
|
|
|
hi,,
Use DtataGrid control..
or handle manully..by open recordset..pick-up Items & insert & set Child in List..this is direction..next is your work
Bye
Never consider anything Impossible before trying to solve that..---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|
|
Thank you for your help first... so that means i have to insert them one by one into the list box manuallY?? OK.. What i am doing is, each customer will buy different things from the company, and i want to add all the items they bought into the list, and store it into access DB. So I can retrive it last for reference... So I do i need to do to??? thank you...
|
|
|
|
|
fba218 wrote:
how can i get the list of data into the list box in my dialog??
How about the CListBox::AddString() method?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
hi all,
please answer the following problem
i have a custom control in a dialog which is in an MFC Extension Dll
a class in the DLL calls the DoModal (instantiates) the dialog
this class is then exported
when i call the class from an MFC exe the dialog does not show up!
but if the then entire activity is carried out in MFC .exe then the dialog shows up with the custom control
How do i launch the dialog from the DLL?
|
|
|
|
|
You have to register the control in the exe as well.
|
|
|
|
|
|
Hi,
You have to register the control twice - once in the dll scope, and once in the exe scope.
I do the registration of exe in the InitInstance, and the dll in DllMain.
|
|
|
|
|
Hello,
I wanted to use CColorDialog as a child in my application. Can anyone tell me how to make it a Child dialog.
Although there is a funcition called CColorDialog Create but it takes a template and a pointer to parent. Now what to give it as a tempalte.....it should use the default template for CColorDialog i guess, but i dont know how to specify this. Can anyone help please ?
Thanks
|
|
|
|
|
There is no way. The Common Dialogs are not designed to run as child windows. Microsoft calls this "Behaviour by design", and unfortunately there's nothing you can do about it.
If you're trying to build a Paint-like application that has a color selection window that the user can use to pick up pen/box colors or something like that, then the only way you can implement such a window is to create it yourself, bottom-up. I'm not sure if there are any examples available in Code Project, but creating it yourself is good practise anyway
To use the CColorDialog properly, you first create an object of CColorDialog, then call DoModal to display the color dialog. When user has selected color and dismisses the dialog screen, you can use the member functions of the class to retrieve the selected color. Do NOT call Create yourself, but allow the framework to do it for you.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
I really have no single idea how to display a graphic on my Pocket PC application. I am using the MFC API. Have been trying all the codes given, but they don't seems to work. Have no idea where to place the codes. Any kind soul please help. Thanks.
|
|
|
|
|
HI ,,,
I m using VC++ 6 and DirectShow
Compiling in Release mood + Using MFC Static Library
following errors there ,,, but when i change to Shared DLL
there is no such error
Linking...
LINK : warning LNK4049: locally defined symbol "_strrchr" imported
thanx
Strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol __imp__sprintf
Release/cam.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
|
|
|
|
|
The error messages imply that your link settings are bad. If you have manually changed to static linking, you are on your own - you'll have to make sure that all necessary libs are included in the link.
You are not likely to get many answers for questions like this, as you should first of all try looking up the error messages in the help or on MSDN, and that there are about a bazillion ways you can muck up the complier- and linker settings yourself.
Try creating a new project with the correct settings from the start, and copy the relevant files, then - if you are interested - check the differences in settings between the two. You might also want to read up on linker settings.
|
|
|
|
|
Are you sure you are linking against one of these libraries?
LIBC.LIB Single thread static library
LIBCMT.LIB Multithread static library
MSVCRT.LIB Import library for MSVCRT.DLL
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hi,
please help me,how to display the TIFF file in MFC Application,i dont want to use CXImage given in codeproject and any other library ,please specify any other way to do it.
Bye
-Mahatma
|
|
|
|
|
Hi..dear..
Use LibTiff Library..This is Direction...
Check material on internet..
Bye
Never consider anything Impossible before trying to solve that..---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|
|
Hi Sumit,
You have given one application that converts from bmp to tiff actually it is not working it is getting access voilation at line
m_Bitmap->GetBitmapBits((600*600) ,bmpBuffer);
can u give me fair solution,and u also give me a plugin that converts from tiff to bmp convertion.
thank you
-Mahatma
|
|
|
|
|
Hi! Can you please help me on how to get all URLs placed in the Address Bar... Is it also placed in the "regedit"?! Also, the info regarding all commands typed at "Run" Line... thanks in advance!!!
|
|
|
|
|
Yes it stored in registry at this position.
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs
-----------------------------
"I Think It will Work"
Formerly I AM Known As "Alok The Programer"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
But the URLs inputted in this Registry Key is Limited... I want to know how I can Log the URL of the link Clicked by the User.... tnx for the Information...
|
|
|
|
|
You'll need to look in the C:\Documents and Settings\<user id>\Local Settings\History folder.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi
Just a question on Pointer
In C++ used on embedded system, memory leak is very critical.
so i used example
LPTSTR ptrText = new _TCHAR[MAX_PATH];
when i exit, i use
if(ptrText)
{
delete[] ptrText;
ptrText = 0;
}
Just wonder if the ptrText = 0; is necessary?
Another is will the use of new and delete slow down the system?
|
|
|
|
|
IceBerG71 wrote:
Just wonder if the ptrText = 0; is necessary?
It is not necessary, however it is a good habit to do so, because if some code later tries to dereference ptrText , after the delete[] , the app will crash immediately and you will catch the bug.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
"Linux is good. It can do no wrong. It is open source so must be right. It has penguins. I want to eat your brain."
-- Paul Watson, Linux Zombie
|
|
|
|
|
Thank You. So Is There Performance Related Issue When using new & delete rather than just use the normal char declaration?
|
|
|
|
|
There is not.
When you declare normal variables, the memory they take is reserved from the stack. On mobile systems, the stack memory is extremely limited, so heap memory should be used instead. New & delete operators operate on the heap memory area.
There should be no performance hit, although reserving large quantities of memory (over 1 Mb) may cause small performance hits. So, if you need to reserve large quantities of memory, you should do that in sections whenever possible.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|