Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDetecting workstation access Pin
Sayan Mukherjee17-Jul-03 1:47
Sayan Mukherjee17-Jul-03 1:47 
GeneralRe: Detecting workstation access Pin
Ryan Binns17-Jul-03 3:11
Ryan Binns17-Jul-03 3:11 
GeneralRe: Detecting workstation access Pin
Mil1017-Jul-03 23:15
Mil1017-Jul-03 23:15 
GeneralBackground color of a CTreeCtrl object. Pin
Bob Stanneveld17-Jul-03 1:36
Bob Stanneveld17-Jul-03 1:36 
GeneralRe: Background color of a CTreeCtrl object. Pin
Ryan Binns17-Jul-03 3:12
Ryan Binns17-Jul-03 3:12 
GeneralRe: Background color of a CTreeCtrl object. Pin
Bob Stanneveld18-Jul-03 8:32
Bob Stanneveld18-Jul-03 8:32 
GeneralRe: Background color of a CTreeCtrl object. Pin
Ryan Binns18-Jul-03 14:35
Ryan Binns18-Jul-03 14:35 
QuestionHyperlinks from database..?? Pin
G}{0$T17-Jul-03 1:21
G}{0$T17-Jul-03 1:21 
Hi,

I've just started programming in VC++ and I've encountered some problems.
I'm accessing an Access Smile | :) database using DAO. This database contains two fields; a hyperlink (Addr) and a description of this hyperlink (Desc).

I've done that like this:

[code]

void CClientListDlg::RefreshList()
{
COleVariant var;
var.ChangeType(VT_BSTR, NULL);
CString Desc,Addr;
m_Desc.DeleteAllItems();
db.Open("List.mdb");
recset.Open(AFX_DAO_USE_DEFAULT_TYPE,"SELECT * FROM Clients",NULL);
while(!recset.IsEOF())
{
int i = 0;
recset.GetFieldValue("Desc",var);
Desc = (LPCSTR)var.pbstrVal;
m_Desc.InsertItem(i,Desc,0);
recset.GetFieldValue("Addr",var);
Addr = (LPCSTR)var.pbstrVal;
m_Desc.SetItemText(0,1,Addr);
i = i++;
recset.MoveNext();
}
recset.Close();
db.Close();
}

[/code]

Is it possible to let VC++ show this hyperlink (Addr) clickable?

Also, is there a routine to make my prog search through the database, preferably in both fields?

Sorry about the newbie questions, but as I said, I'm new at this.

Thanks in advance for all your help!

Greetz,
[NL]G}{0$T

..: [ Once Busted - Twice As Shy ] :..
AnswerRe: Hyperlinks from database..?? Pin
Steve S17-Jul-03 1:59
Steve S17-Jul-03 1:59 
GeneralRe: Hyperlinks from database..?? Pin
G}{0$T17-Jul-03 2:11
G}{0$T17-Jul-03 2:11 
GeneralRe: Hyperlinks from database..?? Pin
Ryan Binns17-Jul-03 3:13
Ryan Binns17-Jul-03 3:13 
GeneralCan't get remove to work for me properly.. Pin
IrishSonic17-Jul-03 1:15
IrishSonic17-Jul-03 1:15 
GeneralRe: Can't get remove to work for me properly.. Pin
Cedric Moonen17-Jul-03 1:20
Cedric Moonen17-Jul-03 1:20 
GeneralMAPI problem!!! help Pin
xxhimanshu17-Jul-03 1:07
xxhimanshu17-Jul-03 1:07 
GeneralMAPI problem!!! help Pin
xxhimanshu17-Jul-03 1:07
xxhimanshu17-Jul-03 1:07 
Generalout-of-class definition of members of template classes Pin
roel_17-Jul-03 1:00
roel_17-Jul-03 1:00 
GeneralRe: out-of-class definition of members of template classes Pin
Mike Dimmick17-Jul-03 2:37
Mike Dimmick17-Jul-03 2:37 
GeneralRe: out-of-class definition of members of template classes Pin
roel_17-Jul-03 4:03
roel_17-Jul-03 4:03 
GeneralRe: out-of-class definition of members of template classes Pin
roel_17-Jul-03 4:04
roel_17-Jul-03 4:04 
GeneralRe: out-of-class definition of members of template classes Pin
Mike Dimmick17-Jul-03 4:19
Mike Dimmick17-Jul-03 4:19 
GeneralRe: out-of-class definition of members of template classes Pin
roel_17-Jul-03 5:51
roel_17-Jul-03 5:51 
GeneralRe: out-of-class definition of members of template classes Pin
Andrew Walker17-Jul-03 4:22
Andrew Walker17-Jul-03 4:22 
GeneralRe: out-of-class definition of members of template classes Pin
roel_17-Jul-03 5:52
roel_17-Jul-03 5:52 
GeneralCode for CMD.exe Pin
Saty17-Jul-03 0:42
Saty17-Jul-03 0:42 
GeneralRe: Code for CMD.exe Pin
Anthony_Yio18-Jul-03 1:09
Anthony_Yio18-Jul-03 1:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.