Click here to Skip to main content
15,892,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Call control from static method Pin
_Flaviu17-May-12 20:34
_Flaviu17-May-12 20:34 
GeneralRe: Call control from static method Pin
Richard MacCutchan17-May-12 22:17
mveRichard MacCutchan17-May-12 22:17 
QuestionSending Data to Excel with C++ Pin
keane209716-May-12 4:47
keane209716-May-12 4:47 
QuestionRe: Sending Data to Excel with C++ Pin
David Crow16-May-12 7:21
David Crow16-May-12 7:21 
AnswerRe: Sending Data to Excel with C++ Pin
keane209716-May-12 8:04
keane209716-May-12 8:04 
AnswerRe: Sending Data to Excel with C++ Pin
enhzflep16-May-12 7:50
enhzflep16-May-12 7:50 
GeneralRe: Sending Data to Excel with C++ Pin
keane209716-May-12 8:05
keane209716-May-12 8:05 
GeneralRe: Sending Data to Excel with C++ Pin
enhzflep16-May-12 8:21
enhzflep16-May-12 8:21 
Pleasure. It's unfriendly to bash the inept - but there's nothing wrong with complimenting those at the opposite end of the spectrum, methinks!

Can't be bothered to find the old code (Gawd knows how many gigs of data I'd have to sift through)
BUT, I can offer you some brand-new freshly written code Smile | :)

Here's something that fills in 100 (iSize*iSize cells) in 1 fell swoop.

VB
Sub test1()
    Const iSize = 10
    Dim myArray(1 To iSize, 1 To iSize)
    Dim iRow As Integer, iCol As Integer

    iRow = 1
    For iCol = 1 To iSize
        myArray(iRow, iCol) = "Column " + CStr(iCol)
    Next iCol

    curCellNum = 1
    For iRow = 2 To iSize
        For iCol = 1 To iSize
            myArray(iRow, iCol) = curCellNum
            curCellNum = curCellNum + 1
        Next iCol
    Next iRow

    ' next two statements are equivalent (when iSize is 10)
    Cells.Range(Cells(1, 1), Cells(iSize, iSize)) = myArray
    'Cells.Range("A1", "J10") = myArray
End Sub


Hope that's of some use.Thumbs Up | :thumbsup:
AnswerRe: Sending Data to Excel with C++ Pin
enhzflep28-May-12 3:31
enhzflep28-May-12 3:31 
QuestionMFC client view rectangle size? Pin
Vaclav_16-May-12 4:42
Vaclav_16-May-12 4:42 
AnswerRe: MFC client view rectangle size? Pin
_Flaviu16-May-12 5:11
_Flaviu16-May-12 5:11 
GeneralRe: MFC client view rectangle size? Pin
Vaclav_16-May-12 5:55
Vaclav_16-May-12 5:55 
GeneralRe: MFC client view rectangle size? Pin
_Flaviu16-May-12 7:40
_Flaviu16-May-12 7:40 
AnswerRe: MFC client view rectangle size? Pin
David Crow16-May-12 7:07
David Crow16-May-12 7:07 
GeneralRe: MFC client view rectangle size? Pin
Vaclav_16-May-12 8:52
Vaclav_16-May-12 8:52 
AnswerRe: MFC client view rectangle size? Pin
_Flaviu16-May-12 7:44
_Flaviu16-May-12 7:44 
GeneralRe: MFC client view rectangle size? Pin
Vaclav_16-May-12 8:53
Vaclav_16-May-12 8:53 
QuestionCFile Open failed GetLastError = 3 Pin
yu-jian16-May-12 2:43
yu-jian16-May-12 2:43 
AnswerRe: CFile Open failed GetLastError = 3 Pin
CPallini16-May-12 3:00
mveCPallini16-May-12 3:00 
GeneralRe: CFile Open failed GetLastError = 3 Pin
yu-jian16-May-12 3:05
yu-jian16-May-12 3:05 
GeneralRe: CFile Open failed GetLastError = 3 Pin
CPallini16-May-12 3:21
mveCPallini16-May-12 3:21 
QuestionRe: CFile Open failed GetLastError = 3 Pin
David Crow16-May-12 3:25
David Crow16-May-12 3:25 
AnswerRe: CFile Open failed GetLastError = 3 Pin
yu-jian16-May-12 3:50
yu-jian16-May-12 3:50 
GeneralRe: CFile Open failed GetLastError = 3 Pin
David Crow16-May-12 4:06
David Crow16-May-12 4:06 
AnswerRe: CFile Open failed GetLastError = 3 Pin
Richard MacCutchan16-May-12 4:03
mveRichard MacCutchan16-May-12 4:03 

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.