?
Solved

Porting MS C to MS Visual C

Posted on 1998-09-23
3
Medium Priority
?
263 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 40 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

Independent Software Vendors: 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

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
Suggested Courses

765 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