Solved

VC does not recognise the .c extension

Posted on 2000-05-01
10
221 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
Comment Utility
Did you try to go to command prompt and run nmake in the directory that contains this project.
0
 

Author Comment

by:sa9813
Comment Utility
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
Comment Utility
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
 

Author Comment

by:sa9813
Comment Utility
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
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:sa9813
Comment Utility
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
Comment Utility
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
Comment Utility
sorry to have bothered you, it works fine under winnt. didn't think it mattered, winnt/win98
0
 

Author Comment

by:sa9813
Comment Utility
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
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now