Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

VC does not recognise the .c extension

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
sa9813
Asked:
sa9813
  • 5
  • 5
1 Solution
 
fbogCommented:
Did you try to go to command prompt and run nmake in the directory that contains this project.
0
 
sa9813Author Commented:
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
 
fbogCommented:
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 
sa9813Author Commented:
still get the same errormessages! How do I know the current size off environment? Maybee I need to reinstall windows?
0
 
fbogCommented:
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
 
sa9813Author Commented:
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
 
fbogCommented:
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
 
sa9813Author Commented:
sorry to have bothered you, it works fine under winnt. didn't think it mattered, winnt/win98
0
 
sa9813Author Commented:
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
 
fbogCommented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now