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

C / C++ / MFC

 
QuestionRe: MFC app does not show full screen Pin
David Crow16-Sep-09 2:24
David Crow16-Sep-09 2:24 
AnswerRe: MFC app does not show full screen Pin
m_mun16-Sep-09 3:00
m_mun16-Sep-09 3:00 
QuestionNeed help on TAPI3.0 with some sample programs Pin
John50216-Sep-09 1:53
John50216-Sep-09 1:53 
Questionfiles after compilation Pin
hrishiS16-Sep-09 1:35
hrishiS16-Sep-09 1:35 
AnswerRe: files after compilation Pin
Stephen Hewitt16-Sep-09 1:49
Stephen Hewitt16-Sep-09 1:49 
GeneralRe: files after compilation Pin
hrishiS16-Sep-09 2:22
hrishiS16-Sep-09 2:22 
GeneralRe: files after compilation Pin
David Crow16-Sep-09 2:27
David Crow16-Sep-09 2:27 
AnswerRe: files after compilation Pin
Rozis16-Sep-09 13:10
Rozis16-Sep-09 13:10 
Imaging the following program (in a imaginairy programming language):

Local int x,y
x=5
y=sin(x)

Now assume the function Sin() is not specified in this program, but in a library. When the program is compiled the compiler knows how to compile the first 2 statements (it can replace these statements to machine code that does functionally the same). This is written to the OBJ-file. The compiler can not compile the last line because this is an external defined function. So the compiler writes in the obj-file the machine code to jump to an unknown adress. In the next pass the linker will fill this unknown adress to the adress of the function Sin().

As said before: the compiler creates for each C-file a equivalent obj-file. The linker merges these and other obj's and/or lib's to an exe. Essentially an obj-file is an exe-file that have jumps to external defined functions not filled in. This is the reason you can't run obj-files (it will crash as soon as it wants to call the external function). An obj-file is an intermediate file in the compile/link process.

Aside: The above is over simplified, in reality it is more complex as described: actually tables of unknown adresses are writen to the obj-file so the linker knows which adresses it must fill in.

Rozis
Questiontop down and bottom up apporach Pin
hrishiS16-Sep-09 1:30
hrishiS16-Sep-09 1:30 
AnswerRe: top down and bottom up apporach Pin
Nuri Ismail16-Sep-09 1:48
Nuri Ismail16-Sep-09 1:48 
QuestionIn System Tray Icon Ballon not displayed in Windows XP. Pin
Le@rner16-Sep-09 0:41
Le@rner16-Sep-09 0:41 
AnswerRe: In System Tray Icon Ballon not displayed in Windows XP. Pin
Iain Clarke, Warrior Programmer16-Sep-09 1:19
Iain Clarke, Warrior Programmer16-Sep-09 1:19 
GeneralRe: In System Tray Icon Ballon not displayed in Windows XP. Pin
Le@rner21-Sep-09 2:47
Le@rner21-Sep-09 2:47 
AnswerRe: In System Tray Icon Ballon not displayed in Windows XP. Pin
«_Superman_»16-Sep-09 1:21
professional«_Superman_»16-Sep-09 1:21 
QuestionWaitForSingleObject(m_SomeThread->m_hThread, INFINITE); Pin
Chesnokov Yuriy16-Sep-09 0:33
professionalChesnokov Yuriy16-Sep-09 0:33 
AnswerRe: WaitForSingleObject(m_SomeThread->m_hThread, INFINITE); Pin
«_Superman_»16-Sep-09 1:18
professional«_Superman_»16-Sep-09 1:18 
GeneralRe: WaitForSingleObject(m_SomeThread->m_hThread, INFINITE); Pin
Chesnokov Yuriy16-Sep-09 1:51
professionalChesnokov Yuriy16-Sep-09 1:51 
AnswerRe: WaitForSingleObject(m_SomeThread->m_hThread, INFINITE); Pin
Randor 16-Sep-09 1:29
professional Randor 16-Sep-09 1:29 
AnswerRe: WaitForSingleObject(m_SomeThread->m_hThread, INFINITE); Pin
Chesnokov Yuriy16-Sep-09 1:51
professionalChesnokov Yuriy16-Sep-09 1:51 
GeneralRe: WaitForSingleObject(m_SomeThread->m_hThread, INFINITE); Pin
Randor 16-Sep-09 2:29
professional Randor 16-Sep-09 2:29 
GeneralRe: WaitForSingleObject(m_SomeThread->m_hThread, INFINITE); Pin
Roger Stoltz16-Sep-09 2:55
Roger Stoltz16-Sep-09 2:55 
GeneralRe: WaitForSingleObject(m_SomeThread->m_hThread, INFINITE); Pin
Randor 16-Sep-09 3:08
professional Randor 16-Sep-09 3:08 
AnswerRe: WaitForSingleObject(m_SomeThread->m_hThread, INFINITE); Pin
Roger Stoltz16-Sep-09 4:07
Roger Stoltz16-Sep-09 4:07 
GeneralRe: WaitForSingleObject(m_SomeThread->m_hThread, INFINITE); Pin
Randor 16-Sep-09 4:40
professional Randor 16-Sep-09 4:40 
GeneralRe: WaitForSingleObject(m_SomeThread->m_hThread, INFINITE); Pin
Roger Stoltz16-Sep-09 5:34
Roger Stoltz16-Sep-09 5:34 

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.