Solved

VC does not recognise the .c extension

Posted on 2000-05-01
10
224 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

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 50 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…

828 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