|
hi,
i dont understand.
mysql website?
|
|
|
|
|
From ur question, what i understood is that, you want to set a data to the a row of the table. So i suggested the mysql website,
If my understand is wrong then please explain ur question.
|
|
|
|
|
Hi,
Tq for your reply.
ACtually, I have one table : log. And it consist 4 fields.. Currently I'm having 20 records..
What I want to do is to have a struct / linked list..
So when I display the data, it will display like
-(field1, field2, field3, field4)
|
|
|
|
|
izyani wrote: What I want to do is to have a struct / linked list..
So when I display the data, it will display like
-(field1, field2, field3, field4)
Why bother with a struct/list when you can display the data straight from the record set?
Are you using MFC?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Uhm...What is the question?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
wat is the difference between device context and graphics device interface?
|
|
|
|
|
See Wikipedia entry[^]
Taken from Above Link:
The Graphics Device Interface (GDI) is a Microsoft Windows application programming interface and core operating system component responsible for representing graphical objects and transmitting them to output devices such as monitors and printers.
GDI is responsible for tasks such as drawing lines and curves, rendering fonts and handling palettes. It is not directly responsible for drawing windows, menus, etc.; that task is reserved for the user subsystem, which resides in user32.dll and is built atop GDI.
A Device Context (DC) is used to define the attributes of text and images that are output to the screen or printer. The actual context is maintained by GDI. An HDC, which is a handle to the structure, is obtained before output is written and released after the elements have been written.
-Sarath.
Rate the answers and close your posts if it's answered
|
|
|
|
|
The device context is a GDI-managed structure containing information about the device. GDI contains a number of structures which you cna use to use generate graphical output for display, printers or other devices.
http://msdn.microsoft.com/en-us/library/aa925824.aspx[^]
|
|
|
|
|
hi,
does anyone know about .ptf extension file..(ptf stands for portable transcript file)... i wanna use files of that type in my application... can someone enlighten me the ptf concepts...i tried googling but dint work very well for me..i wanna know the technical details behind this file format...
can anyone teach me??
i will be grateful to u..
pls forgive me if the post is irrelevant in this forum...
Thanks,
Rakesh.
|
|
|
|
|
What application creates a PTF file?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi All
i am useing _ConnectionPtr and _RecordsetPtr for connection and get information from mysql databases.i have a problem to get values when i am useing "Select * from table".How can i get table information.
_ConnectionPtr pConn = NULL;
_bstr_t strCon("Driver={MySQL ODBC 5.1 Driver};Database="";User=root; Password=root;Option=3;");
HRESULT hr = S_OK;
CoInitialize(NULL);
hr = pConn.CreateInstance((__uuidof(Connection)));
if(FAILED(hr))
{
AfxMessageBox("Error instantiating Connection object\n");
}
hr = pConn->Open(strCon,"root","root",0);
if(FAILED(hr))
{
AfxMessageBox("Error Opening Database object using ADO _ConnectionPtr \n");
}
::_RecordsetPtr rs;
rs = pConn->Execute(_bstr_t("use Databases"), 0, adCmdText);
rs = pConn->Execute(_bstr_t("Select * from tatblename"), 0, adCmdText);
Plz help me
|
|
|
|
|
I don't know who in the living frock is marking your questions as "Good" (apparently none of your questions are that awesome to be marked as a good questions). I've noticed this a few times and I wonder if you have a split personality (another login) to "help yourself"?
Remember - the ones likely to provide you an useful answer do not care about if or not the query is marked as good.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Plz don't blame
(another login) to "help yourself"
Thanks for comment.
|
|
|
|
|
It was only a doubt that I had, so I expressed it instead of keeping it on my mind. Not that I'm blaming you for anything, and I'm glad you've clarified it.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
Davitor wrote: i have a problem to get values when i am useing "Select * from table".
Are we supposed to guess at this problem?
Davitor wrote: ::_RecordsetPtr rs;
Do you need to call CreateInstance() on the rs object before using it?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi all,
In an Standard combobox you can select the items from dropdown and as well edit it..
But in an owner drawn combobox after adding the items, u can only select from drop down.
What has to be done in order to allow owner drawn combo box to allow editing as standard control??
|
|
|
|
|
Since combo box is customized,
now u need to make a customized edit box(CEditEx),
and when you double click the combo box a EN_UPDATE message is send to CEditEx, OnUpdateEdit.
|
|
|
|
|
You can only edit the combo box selection if the Type property of the combo box is set to Dropdown .
If the Type property is set to Droplist you can only do selection.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
hey the problem got fixed,
We need to create it as a dropdown,
Thanks 4 "«_Superman_»" i saw this one...
|
|
|
|
|
Hi every one
There is one application on my system that it’s opened my Clipboard and Empty it. but didn’t close Clipboard until closing the application .
I want attach to application by my application and send closeclipboard api to it.
Its my code but don’t work . I am cant open clipboard from my application
Plz help me.
CWnd *pWnd=new CWnd();
BOOL bo,be,bc;
pWnd= GetOpenClipboardWindow();
pWnd=FindWindow("Application class name","Application title");
if(pWnd)
{
bo=pWnd->OpenClipboard();
be=EmptyClipboard();
bc=CloseClipboard();
}
|
|
|
|
|
The current CWnd object will not become the owner of the Clipboard until the EmptyClipboard Windows function is called.
|
|
|
|
|
i know it .
but how can i empty clipboard when its opened by another program?
with special thanks
|
|
|
|
|
Hi,
I was wondering if DetourCreateProcessWithDll is just equivalent to CreateProcess suspended, injecting the DLL, then resuming? Or is it doing something special in the background, and if so, does anybody have any code not dependent on the Detours library?
Thanks
.Dae programming
|
|
|
|
|
I found this reference to Detours: Notes on Detours[^]. If you use the search phrase:
"so, the deal with detours is that there are a couple different"
it will take you right to the section that explains what DetourCreateProcessWithDll is doing.
What exactly are you trying to do?
|
|
|
|