Click here to Skip to main content
15,915,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is RedrawWindow() must when closing childframe Pin
prasad_som13-Dec-06 18:46
prasad_som13-Dec-06 18:46 
GeneralRe: Is RedrawWindow() must when closing childframe Pin
rp_suman13-Dec-06 20:16
rp_suman13-Dec-06 20:16 
AnswerRe: Is RedrawWindow() must when closing childframe Pin
prasad_som13-Dec-06 20:19
prasad_som13-Dec-06 20:19 
GeneralRe: Is RedrawWindow() must when closing childframe Pin
rp_suman13-Dec-06 20:29
rp_suman13-Dec-06 20:29 
AnswerRe: Is RedrawWindow() must when closing childframe Pin
prasad_som13-Dec-06 21:33
prasad_som13-Dec-06 21:33 
QuestionConvert from VB into VC++ Pin
cuongnq13-Dec-06 14:27
cuongnq13-Dec-06 14:27 
AnswerRe: Convert from VB into VC++ Pin
Christian Graus13-Dec-06 15:32
protectorChristian Graus13-Dec-06 15:32 
GeneralRe: Convert from VB into VC++ Pin
cuongnq13-Dec-06 16:34
cuongnq13-Dec-06 16:34 
rs1 and trs in VB is:
Set trs = New ADODB.Recordset // for ms access
Set rs1 = New ADODB.Recordset // for sql server
My Stuck is:
I want to read a table (Ms Access) and insert into another table (sql Server) with the same value.
And here is code in VB:
 Set rs1 = New ADODB.Recordset<br />
  <br />
 rs1.Open "select * from " & s1, con1, adOpenDynamic, adLockOptimistic<br />
 <br />
 ' Populating the created table with the values<br />
<br />
 If trs.EOF = False Then<br />
 <br />
   trs.MoveFirst<br />
 <br />
   Do While trs.EOF = False<br />
     rs1.AddNew<br />
     For i = 0 To trs.Fields.Count - 1<br />
        rs1(i) = trs(i)<br />
     Next<br />
     rs1.Update<br />
    trs.MoveNext<br />
   Loop<br />
 <br />
   MsgBox "Data entered successfully", vbInformation<br />
 End If<br />

My problem is rs1(i) = trs(i)
I write it in VC++ is m_pRecordsetMsAccess[i]=m_pRecordsetMsSQL[i] but wrong, Help me PlzFrown | :(
AnswerRe: Convert from VB into VC++ Pin
prasad_som13-Dec-06 18:42
prasad_som13-Dec-06 18:42 
GeneralRe: Convert from VB into VC++ Pin
cuongnq13-Dec-06 20:01
cuongnq13-Dec-06 20:01 
GeneralRe: Convert from VB into VC++ Pin
prasad_som13-Dec-06 20:08
prasad_som13-Dec-06 20:08 
GeneralRe: Convert from VB into VC++ Pin
cuongnq13-Dec-06 20:59
cuongnq13-Dec-06 20:59 
AnswerRe: Convert from VB into VC++ Pin
prasad_som13-Dec-06 21:30
prasad_som13-Dec-06 21:30 
GeneralRe: Convert from VB into VC++ Pin
Sam Hobbs14-Dec-06 2:02
Sam Hobbs14-Dec-06 2:02 
AnswerRe: Convert from VB into VC++ Pin
Sam Hobbs14-Dec-06 2:00
Sam Hobbs14-Dec-06 2:00 
QuestionCatching Crashes.... Pin
Peter Weyzen13-Dec-06 13:02
Peter Weyzen13-Dec-06 13:02 
AnswerRe: Catching Crashes.... Pin
Stephen Hewitt13-Dec-06 14:58
Stephen Hewitt13-Dec-06 14:58 
GeneralRe: Catching Crashes.... Pin
Peter Weyzen13-Dec-06 20:31
Peter Weyzen13-Dec-06 20:31 
GeneralRe: Catching Crashes.... Pin
Stephen Hewitt14-Dec-06 11:55
Stephen Hewitt14-Dec-06 11:55 
GeneralRe: Catching Crashes.... Pin
Peter Weyzen15-Dec-06 7:28
Peter Weyzen15-Dec-06 7:28 
AnswerRe: Catching Crashes.... Pin
Leah_Garrett13-Dec-06 17:12
Leah_Garrett13-Dec-06 17:12 
GeneralRe: Catching Crashes.... Pin
Peter Weyzen15-Dec-06 7:26
Peter Weyzen15-Dec-06 7:26 
QuestionLegacy VC 6.0 Works Differently in Debug Mode Pin
Reagan Conservative13-Dec-06 11:37
Reagan Conservative13-Dec-06 11:37 
AnswerRe: Legacy VC 6.0 Works Differently in Debug Mode Pin
Mark Salsbery13-Dec-06 12:39
Mark Salsbery13-Dec-06 12:39 
AnswerRe: Legacy VC 6.0 Works Differently in Debug Mode Pin
Leah_Garrett13-Dec-06 17:06
Leah_Garrett13-Dec-06 17:06 

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.