Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can not Find Functions In Static Library Pin
AmbiguousName7-May-12 7:42
AmbiguousName7-May-12 7:42 
AnswerRe: Can not Find Functions In Static Library Pin
Chuck O'Toole7-May-12 8:09
Chuck O'Toole7-May-12 8:09 
AnswerRe: Can not Find Functions In Static Library Pin
AmbiguousName7-May-12 18:47
AmbiguousName7-May-12 18:47 
AnswerRe: Can not Find Functions In Static Library Pin
Chuck O'Toole7-May-12 19:41
Chuck O'Toole7-May-12 19:41 
GeneralRe: Can not Find Functions In Static Library Pin
AmbiguousName7-May-12 20:10
AmbiguousName7-May-12 20:10 
AnswerRe: Can not Find Functions In Static Library Pin
Chuck O'Toole8-May-12 3:46
Chuck O'Toole8-May-12 3:46 
AnswerRe: Can not Find Functions In Static Library Pin
AmbiguousName8-May-12 9:06
AmbiguousName8-May-12 9:06 
QuestionCRichEditCtrl interface question Pin
ForNow6-May-12 6:32
ForNow6-May-12 6:32 
Hi,

As some of you may already be aware from some of my post I am a MainFrame Assembler programmer trying to get into the Windows MFC platform

This presented me with a number of challanges to name two

1) Understanding Object Oriented as opposed to procedural coding

2) thinking of text as fonts instead of bytes oriented characters

Well it seems that RichEdit interface deals with characters e.g ( SetSel API) instead

of fonts

So Here is my problem listed below is the text I am displaying in a RichEdit window
  000000                00000 004A4    10 TESTA CSECT
                                      11 TESTA AMODE 31
                                      12 TESTA RMODE ANY
                                      13         YREGS
0                      00000          15+R0       EQU   0                                                        01-YREGS
                       00001          16+R1       EQU   1                                                        01-YREGS
                       00002          17+R2       EQU   2                                                        01-YREGS
                       00003          18+R3       EQU   3                                                        01-YREGS
                       00004          19+R4       EQU   4                                                        01-YREGS
                       00005          20+R5       EQU   5                                                        01-YREGS
                       00006          21+R6       EQU   6                                                        01-YREGS
                       00007          22+R7       EQU   7                                                        01-YREGS
                       00008          23+R8       EQU   8                                                        01-YREGS
                       00009          24+R9       EQU   9                                                        01-YREGS
                       0000A          25+R10      EQU   10                                                       01-YREGS
                       0000B          26+R11      EQU   11                                                       01-YREGS
                       0000C          27+R12      EQU   12                                                       01-YREGS
                       0000D          28+R13      EQU   13                                                       01-YREGS
                       0000E          29+R14      EQU   14                                                       01-YREGS
                       0000F          30+R15      EQU   15                                                       01-YREGS
0                      00007          32 XLNK    EQU    R7
 _ 000000                               33 ARNDCOPY DS    0H
 _ 000000 90EC D00C            0000C    34         STM    R14,R12,12(R13)
 _ 000004 18CF                          35         LR     R12,R15
                  R:C  00000          36         USING  TESTA,R12
                                      37 *       HERCDIE LINKAGE=SVC
_ 000006 18ED                          38         LR     R14,R13
_ 000008 41D0 C314            00314    39         LA     R13,SAVEAREA
_ 00000C 50E0 C318            00318    40         ST     R14,SAVEAREA+4
_ 000010 50C0 C38C            0038C    41          ST    R12,WORKFLD
_ 000014 F384 C391 C38C 00391 0038C    42          UNPK  WORFLD1,WORKFLD(5)
_ 00001A DC08 C391 C39A 00391 0039A    43          TR    WORFLD1,TR_TBL
                                      44          LOAD  EP=TESTB
_ 000020                               46+         CNOP  0,4                                             @YA29363 01-LOAD
_ 000020 4DF0 C02C            0002C    47+         BAS   15,LOAD2_0002      BRANCH AROUND CONSTANT(S)             01-LOAD
 000024                               48+LD2_0002    DS 0H                                                       01-LOAD
 000024 E3C5E2E3C2404040              49+LE2_0002    DC CL8'TESTB'         ENTRY POINT NAME                      01-LOAD
 00002C                               50+LOAD2_0002    DS 0H                                                     01-LOAD
_ 00002C 4100 F000            00000    51+         LA    0,LE2_0002-LD2_0002(,15)         ADDR OF PARAMETER       01-LOAD
_ 000030 1B11                          52+         SR    1,1                SHOW NO DCB PRESENT                   01-LOAD
_ 000032 0A08                          53+         SVC   8                                                        01-LOAD
_ 000034 D207 C37B C391 0037B 00391    54          MVC   STARTS,WORFLD1
                                      55 *        WTOR  TEXT=(START_ADDR,REPLY,1,ECB_REPLY)
                                      56 *        WAIT  ECB=ECB_REPLY
1                                                                                                               Page    4


C++
I am trying to highlight the first Mainframe executable line which is the line with 
the following text    STM  R14,R12,12(R13)

Here is the code I use to that 
	// LOOK for the irst executable instruction 
SetSel(0,0);         // start at the beginig

FINDTEXTEX ft;
ft.chrg.cpMin = 0;
ft.chrg.cpMax = -1;
ft.lpstrText = (LPSTR) "_ ";

long n = FindText(FR_DOWN|FR_MATCHCASE | FR_WHOLEWORD, &ft);

long l = LineLength(n);


From my understanding all return codes from the richedit api 0 character based
however When step thru the code of the FindText api the return code is some huge number X'830' decimal 2096 this what is in the AX register which typically is where the return code is

It seems obvious to me that the first under score is about 150 characters away ( I didn't do a exact count ) but it is in that range

Anyway if someone could explain I would apprecaite it
AnswerRe: CRichEditCtrl interface question Pin
enhzflep6-May-12 7:21
enhzflep6-May-12 7:21 
GeneralRe: CRichEditCtrl interface question Pin
ForNow6-May-12 9:07
ForNow6-May-12 9:07 
GeneralRe: CRichEditCtrl interface question [modified] Pin
enhzflep6-May-12 10:14
enhzflep6-May-12 10:14 
GeneralRe: CRichEditCtrl interface question Pin
enhzflep6-May-12 11:01
enhzflep6-May-12 11:01 
GeneralRe: CRichEditCtrl interface question Pin
ForNow7-May-12 7:24
ForNow7-May-12 7:24 
QuestionCRichEditCtrl FindText problem Pin
ForNow5-May-12 20:24
ForNow5-May-12 20:24 
AnswerRe: CRichEditCtrl FindText problem Pin
enhzflep5-May-12 21:44
enhzflep5-May-12 21:44 
GeneralRe: CRichEditCtrl FindText problem Pin
ForNow6-May-12 5:41
ForNow6-May-12 5:41 
GeneralRe: CRichEditCtrl FindText problem Pin
enhzflep6-May-12 5:54
enhzflep6-May-12 5:54 
QuestionLooping when you need user input Pin
abollmeyer5-May-12 19:25
abollmeyer5-May-12 19:25 
AnswerRe: Looping when you need user input Pin
Code-o-mat5-May-12 23:08
Code-o-mat5-May-12 23:08 
GeneralRe: Looping when you need user input Pin
abollmeyer6-May-12 3:37
abollmeyer6-May-12 3:37 
GeneralRe: Looping when you need user input Pin
enhzflep6-May-12 4:15
enhzflep6-May-12 4:15 
GeneralRe: Looping when you need user input Pin
abollmeyer6-May-12 7:32
abollmeyer6-May-12 7:32 
GeneralRe: Looping when you need user input Pin
enhzflep6-May-12 7:40
enhzflep6-May-12 7:40 
GeneralRe: Looping when you need user input Pin
Code-o-mat7-May-12 4:03
Code-o-mat7-May-12 4:03 
GeneralWelcome Pin
Code-o-mat5-May-12 23:11
Code-o-mat5-May-12 23:11 

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.