Solved

Porting MS C to MS Visual C

Posted on 1998-09-23
3
260 Views
Last Modified: 2010-04-15
Hi!!!
I have my source code in MS C. Now I need use VC
    My Source code compile OK (only 1 warning), but Link  and received the following:

    Timer.obj : error LNK2001: unresolved external symbol _IntSvcRtn
    Timer.obj : error LNK2001: unresolved external symbol _wCount
    .........
    .... another

    IntSvcRtn function is under a  .asm source code file, I use
    #pragma alloc_text(FIXED_TEXT,IntSvcRtn) function C

    Source code .asm file is:
    ....
    FIXED_DATA SEGMENT DWORD PUBLIC 'DATA'
    ....
    ....
    FIXED_TEXT SEGMENT PARA PUBLIC 'CODE'
    selData1    dw FIXED_DATA
    assume CS:FIXED_TEXT,DS:NOTHING
    PUBLIC _IntSvcRtn
    _IntSvcRtn label far
     IntSvcRtn proc far
    sub sp,4
            ....
            ....

    What's Up??
    I need Porting my MS C code (32bits) to MS Visual C 5.0 (32bits).

    What I can do?? any Idea??  

    Thanks Again!!
    Sincerely.
0
Comment
Question by:hpv75
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Expert Comment

by:elfie
ID: 1253001
DEpending on some settings in your environment, the compiler will add leading '_' to the functions. Try changing this option.

0
 

Author Comment

by:hpv75
ID: 1253002
Becouse! the settings in my environment are O.k!!



0
 
LVL 4

Accepted Solution

by:
emmons earned 20 total points
ID: 1253003
Have you inserted a prototype for the assembly?
What is the deal with the _wCount variable being undefined? Is this also in your masm file?
Did you re-assemble the assemble in the VC project?
Is anything in the assmebly showing up in the map for the project? Are any of the undefined variables showing up?

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question