Click here to Skip to main content
15,916,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateProcess - file privileges Pin
Phil.Benson1-May-02 21:51
professionalPhil.Benson1-May-02 21:51 
GeneralRe: CreateProcess - file privileges Pin
Ram Cronus2-May-02 4:34
Ram Cronus2-May-02 4:34 
GeneralConvert int to CString Pin
30-Apr-02 5:24
suss30-Apr-02 5:24 
GeneralRe: Convert int to CString Pin
Mike Zinni30-Apr-02 5:31
Mike Zinni30-Apr-02 5:31 
GeneralGet Integer Value from database Pin
30-Apr-02 5:52
suss30-Apr-02 5:52 
GeneralRe: Get Integer Value from database Pin
Nish Nishant30-Apr-02 6:03
sitebuilderNish Nishant30-Apr-02 6:03 
GeneralRe: Get Integer Value from database Pin
Alexandru Savescu30-Apr-02 6:29
Alexandru Savescu30-Apr-02 6:29 
GeneralRe: Get Integer Value from database Pin
Tom Archer30-Apr-02 7:43
Tom Archer30-Apr-02 7:43 
You have two choices here. You can either construct and pass a CDBVariant or you can pass a CString and convert the returned value:
CString strID;
recset.GetFieldValue("Address ID",strID);
long iID = atol(strID);

CDBVariant v;
v.Clear();
v.m_dwType = DBVT_LONG;

recset.GetFieldValue("Address ID", v);
// your value will be in the v.m_lVal member

I'm typing this without testing it, but this should be very close to what you need.



Cheers,
Tom Archer
Author, Inside C#

A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
GeneralRe: Convert int to CString Pin
1-May-02 20:10
suss1-May-02 20:10 
GeneralLogin dialog problem Pin
solini30-Apr-02 5:23
solini30-Apr-02 5:23 
GeneralRe: Login dialog problem Pin
Thomas Freudenberg30-Apr-02 5:37
Thomas Freudenberg30-Apr-02 5:37 
GeneralRe: Login dialog problem Pin
Joaquín M López Muñoz30-Apr-02 5:39
Joaquín M López Muñoz30-Apr-02 5:39 
GeneralRe: Login dialog problem Pin
l a u r e n30-Apr-02 8:09
l a u r e n30-Apr-02 8:09 
GeneralRe: Login dialog problem - Solved Pin
30-Apr-02 8:16
suss30-Apr-02 8:16 
QuestionHowto change background color without redrawing content ? Pin
Brian van der Beek30-Apr-02 5:20
Brian van der Beek30-Apr-02 5:20 
AnswerRe: Howto change background color without redrawing content ? Pin
Joaquín M López Muñoz30-Apr-02 5:35
Joaquín M López Muñoz30-Apr-02 5:35 
GeneralRe: Howto change background color without redrawing content ? Pin
Brian van der Beek2-May-02 4:25
Brian van der Beek2-May-02 4:25 
GeneralExiting a DirectShow movie on keypress... Pin
30-Apr-02 5:12
suss30-Apr-02 5:12 
QuestionHow to get display card information by C++? Pin
yungivan30-Apr-02 5:00
yungivan30-Apr-02 5:00 
AnswerRe: How to get display card information by C++? Pin
Paul M Watt30-Apr-02 5:37
mentorPaul M Watt30-Apr-02 5:37 
GeneralSet mouse position Pin
ISIS5530-Apr-02 4:39
ISIS5530-Apr-02 4:39 
GeneralRe: Set mouse position Pin
Paul M Watt30-Apr-02 5:01
mentorPaul M Watt30-Apr-02 5:01 
GeneralRe: Set mouse position Pin
ISIS5530-Apr-02 9:36
ISIS5530-Apr-02 9:36 
GeneralRe: Set mouse position Pin
Paul M Watt30-Apr-02 10:02
mentorPaul M Watt30-Apr-02 10:02 
GeneralRe: Set mouse position Pin
ISIS5530-Apr-02 10:26
ISIS5530-Apr-02 10:26 

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.