|
plz some body tel me how ican fetch a selected row from mysql table usimg mfc dialog box
as i make a table in mysql and ienter empid of certain employees from mfc dailog box by connecting vc++ with mysql
now i want to fetch a single employee record
but problen is that when i want to fetch a record it always fetch first record from table
but when i use RAND() option it randomly select records
and not thati want
so plz tel me quickly
hi
|
|
|
|
|
You need a parameterized record set. I show a brief example here.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello,
what means with InitHashTable() in CMapStringToOb map, where to use tis function, for what?
How and can i use this to sort CMapStringToOb map???
thanks
break;
|
|
|
|
|
I think this function can be used to prepare a CMapStringToOb object before adding a known number of data. It clears the map and then can pre-allocate an internal buffer, so the next insert operation will perform faster. This function is optional, but is useful when you know how many items you will insert (the default hash-table size is fairly small -- see the source of this function).
This function is not used for sorting. By sorting the hash-table you probably mean sorting of keys. In my opinion you have to extract all of the keys from the hash-table, put them in an array (CStringArray ) and sort it separately. For instance, investigate the qsort function.
If you are familiar with STL library, you can use another kind of collections and the provided sort function.
|
|
|
|
|
Hello comunity,
does any one know how to sort an CMapStringToOb map????
regards
break;
|
|
|
|
|
See the "Sorting a CList" section of this article.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Plese help!
I use VC7 I need to transform an image (stretch only) in my app and as a result to have only one exe file.
I'v used CxImage class from this site and it worked, but i have to problems.
1. Using of this class needs to include lib in package with my prog.
2. If I make in project setting "Use MFC as shared DLL", then it requires mfc70d.dll and others... and if i set "Use MFC in shared library", i can't use CxImage. it says:
error LNK2005: _fclose already defined in libcmtd.lib(fclose.obj)
error LNK2005: _fflush already defined in libcmtd.lib(fflush.obj)
and so on. Please help!
|
|
|
|
|
Do you need to stretch one picture?
whitesky
|
|
|
|
|
Diplom@t wrote: error LNK2005: _fclose already defined in libcmtd.lib(fclose.obj)
error LNK2005: _fflush already defined in libcmtd.lib(fflush.obj)
Check the Linker settings..
NODEFAULTLIB etc.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
The error messages you mentioned frequently appear when the compiler's options related to single or multithreading are different in your project and in CxImage library.
If you are using a pre-build CxImage library file, you should be sure the "C/C++ --> Code Generation --> Runtime Library" option of your project corresponds to the value used to generate CxImage library.
If you have the source code of CxImage library and use CxImage as a second project of your solution, then it is easy to check if the compiler options are the same in both cases.
|
|
|
|
|
hai every body i try to write a program to chat with dialogs in same project(MFCAppWzd).I create two dialog control and editbox on both.Whenever i type in dialog1 it display dialog2,similarly i type in dialog2 it also display in dialog1 and also switch between dialogs.
|
|
|
|
|
And what is the question ?
(Please, post a specific question, not asking how to do a chat program. The more accurate the question is, the more accurate the answer will be).
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
Do you need to one chat program?or you have one problem
whitesky
|
|
|
|
|
From what I interpreted according to your question -
You will need to send each character on to the remote machine as and when it is entered into the edit window from M/C 1 -> M/C 2 and v/v.
You will have to synchronize the sending and receiving of data on both ends with extreme cautions.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I use the event model to receive data from the socket,
How to get packet one another from what I've received?
I tried to use a buffer list (list<char*>) to save data, then to get the packet from the buffer list. Though it can work, not efficient. For example:
while FD_READ
recv(s,buf,1024,0);
buflist.push_back(buf);
buf may have data less than 1024 bytes, so memory is wasted, and a more complicated algorithm is needed to get a packet from the buffer list. Maybe I should allocate another block of memory in the appropriate size, and copy the data to it. But I don't think it is efficient. Is there any efficient way?
-- modified at 12:34 Tuesday 6th June, 2006
|
|
|
|
|
As we know quick launch in task bar is a very usefull component to launch app.
i wanna know much more about it.It works as if they create shortcut in it.
can you tell me the truth of how it works.
By the way, if i want to display the shortcut to another app in my own window,
how can i implement it.
|
|
|
|
|
wanglei1980 wrote: By the way, if i want to display the shortcut to another app in my own window,
They simply Execute the EXE on Click...
"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 and You
|
|
|
|
|
Hi,
Is there any way to catch the mouse move over listview header? I am able to handle click and dblclick but I did'nt find any message for mouse move over listview header.
Adios,
Cool Ju
Dream Ur Destiny
|
|
|
|
|
Subclass the headerctrl and then handle the mouse move
nave
|
|
|
|
|
OMG!!
Years later, I found this by chance and this is exactly what I needed !
Tahnks
|
|
|
|
|
Hi,
I have a list control with 4 columns. One of the columns should have 2 subcolumns within it. Could anybody guide me how to go about it?
Thanks!
|
|
|
|
|
I don't think there is an easy way to stop the header bar from showing the split without it being owner-drawn.
1- You could always reduce the width of the columns, so it looks like a sub-column.
2- You could also insert the text using some spaces between the two sub-column entries in the same column.
this is this.
|
|
|
|
|
Hi all,
I have custom scrollbar. I need to track the thumb as windows tracks the thumb of a scrollbar. My logic is not working very well. the thumb is not reaching the bottom Do u know how to calculate physical position of the thumb accordign to the logical position(scroll range).
SaRath.
"Don't Do Different things... Do Things Differently..."
|
|
|
|
|
hi
in spread how to get the position of cursor like the cursor is in 4 chars from start or 5 chars from start .
"Men never do evil so completely and cheerfully as when they do it from religious conviction"
-Pascal
|
|
|
|
|
Hi
I want to display finish button on Property page along with next and back button. For this i have changed code according to MS link
http://support.microsoft.com/kb/q143210/[^]
but finish button is not displayed.How does MFC internally handles calls to
ID_WIZFINISH and ID_WIZNEXT buttons?
Thanks in advance
Abhi Lahare.
|
|
|
|