?
Solved

VC does not recognise the .c extension

Posted on 2000-05-01
10
Medium Priority
?
232 Views
Last Modified: 2013-12-03
I have downloaded the dlgedit example from microsoft, when I have opened the project and then make, it does not work. I have then tried to compile the .c files separatly, I get an error telling me that there is no compiletool associated with the .c extension. I have also noticed that all the struct's in the project are refferd to as classes! How do I fix this? I can not find the settings.
0
Comment
Question by:sa9813
  • 5
  • 5
10 Comments
 
LVL 1

Expert Comment

by:fbog
ID: 2765653
Did you try to go to command prompt and run nmake in the directory that contains this project.
0
 

Author Comment

by:sa9813
ID: 2765677
I did try to run the batfile vcargs32.bat, wich I suppose is required to do first, but I got some errormessages, "out of environment space" and then it did not work to run nmake!
0
 
LVL 1

Expert Comment

by:fbog
ID: 2765760
If you are running Win9x, you can increase your environment by running command.com with /e:
command.com /e:1200 will increase size of environment to 1200 bytes
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:sa9813
ID: 2765836
still get the same errormessages! How do I know the current size off environment? Maybee I need to reinstall windows?
0
 
LVL 1

Accepted Solution

by:
fbog earned 200 total points
ID: 2765857
1. You can manually modify some of the environment variables instead of running this batch file:
basically you need to add path to your Visual C++ bin directory to the PATH env. variable, add path to include dir to INCLUDE variable and add path to directory with VC libraries to LIB env. variabale.
2. You can also experiment with different values for /e:nnnn (Add it to yor config.sys and reboot):

command.com /e:2024 /p
(again, if you are running Win95/98).
0
 

Author Comment

by:sa9813
ID: 2766005
Now it worked after manually editing autoexec.bat, but there is just one problem, the .exe file resulting from the make just shows a cryptic msgbox and then dives! I guess there could be a million reasons why. You do not happen to know where I can get a working copy of dlgedit.exe?
0
 
LVL 1

Expert Comment

by:fbog
ID: 2766067
If you have latest version of MSDN, you can find it in "\Program Files\Microsoft Visual Studio\MSDN\2000JAN\1033\SAMPLES\VC98\sdk\sdktools\winnt\dlgedit\dlgedit.dsp", if you can find it, I can send zip to your e-mail.
0
 

Author Comment

by:sa9813
ID: 2766070
sorry to have bothered you, it works fine under winnt. didn't think it mattered, winnt/win98
0
 

Author Comment

by:sa9813
ID: 2766093
I downloaded it from microsoft's website, so I suppose it's the latest version. Why I wannted this program is because it says in msdn-lib that it demonstrates how to create custom controls, do you know any good resources for this. I want to learn how to implement a custom control as a .dll, even if it may be obsolet. Offcourse if you have any good resources you will have more points


0
 
LVL 1

Expert Comment

by:fbog
ID: 2766142
There is a number of books on ActiveX controls, for example:

ActiveX Controls Inside Out (w/CD) by Adam Denning / Microsoft Press /
(http://www.bookpool.com/.x/dpgnw53kw0/sm/1572313501) or

ActiveX Developer's Resource
(http://www.bookpool.com/.x/dpgnw53kw0/sm/0132707861).

MSDN has samples on how to write them in:

\Program Files\Microsoft Visual Studio\MSDN\2000JAN\1033\SAMPLES\VC98\mfc\controls

Visual studio has MFC ActiveX ControlWizard (under File->New->Projects)
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

584 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