Home Tutorialhelp Comment Compiling C programs in VS.NET 2005 environment

 
 

Comment

Sadheesh
Compiling C programs in VS.NET 2005 environment,
February 1, 2010 at 3:46 PM

int do_openFile(void)
{
char *p ; /* pointer to outFileName */
char *m ; /* pointer to report date */
char *mon; /* month number in report date */



/* get output file name */
m = pk->CNCRptdate;
m += 2;
strncpy(mon, m, 2);

p = outFileName ;

strcpy(p, pi->CNDExtransit);
p += 5;
strcpy(p, monTab[atoi(mon)]);
p += 3;
strcpy(p, ".");
p += 1;
strcpy(p, "TXT");

/* Open a new file for writing, if file exists, its contents are destroyed
*/
if ((outfile = fopen(outFileName, "w")) == NULL)
{
printf (" \r");
printf ("fopen failed\n");
printf ("Please hit 'PRINT SCREEN' and then hit ENTER to abort...\n");
getch();
return (0);
};
}

Issue: When the control hits the first strncpy() function, it throws "Unhandled exception at 0x00401acd in ICRSEX2B.exe: 0xC0000005: Access violation writing location 0x0040258f."

Pls let me know if any other information is required.
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Design concepts & design patterns Questions

c++ programs
c++ programs  i want the syntax for the following programs according to c++ pattern. 1.sum of multiples of an integer upto 10 2.2/4+4/6+6/8+8/10+.....n/n+2 3.1!/1+2!/2+3!/3+4!/4+...n!/n i just want the main logic as i m nt 

Programming Tutorials

C++Tutorials
) of writing programs using the Win32 API. The language used is C, most C++ compilers... Development Environment), which is able to create Windows or console-based C/C... integrated development environment, as is present in Visual C++. An IDE provides 

Java Beginners

c++ programs
c++ programs  Write a program with the following (a) A function to read two double type numbers from keyboard (b) A function to calculate the division of these two numbers (c) A try block to throw an exception when a wrong type 

Java Beginners

c++ programs
c++ programs  Write a program with the following (a) A function to read two double type numbers from keyboard (b) A function to calculate the division of these two numbers (c) A try block to throw an exception when a wrong type 

Free Books

C and C++ books-page10
programs, where the programmer has made wise use of C's range of powerful... C and C++ books-page10       The programming language C As a programming language, C is rather 

Java Beginners

basic c/c++ questions
basic c/c++ questions  Are the Control statements like if(),while() in built functions? if no, why not as they satisfy all the properties of a function 

Java Beginners

basic c/c++ questions
basic c/c++ questions  Are the Control statements like if(),while() in built functions? if no, why not as they satisfy all the properties of a function 

Java Beginners

C/C++ QUESTIONS
C/C++ QUESTIONS  ??Write a function for finding out the occurences of repeated word from a sentence. This function would return an array of duplicate words. 

Java Beginners

C/C++ QUESTIONS
C/C++ QUESTIONS  "Write a function for finding out highest and lowest marks obtained by a student from an array contained student name and marks". For Example : GetHighestLowestMarks{Student{n}, Marks{n}} returns 

Programming Tutorials

C++GraphicsTutorials
C++ Graphics Tutorials     ... in this document is correct. C/C++ Windows programmers who want to learn... MFC.      OpenIL in Dev-C++ OpenIL 

iPhone

Objective C Tutorial
-c program, set the environment for the code then compile and run the program... your development environment and then test few programs. Once you are able to run... up the development environment on Window and on Max OS Compiling and testing 

Free C# books

C and C++ books-page3
to computer languages--to learn C, we must start writing C programs as quickly... C and C++ books-page3       C for C++ programmers Before there was C++ there was C 

iPhone

Compiling Objective C
Compiling Objective C     ... program on windows and Max OS x machine. Compiling Objective C program is necessary as it generates the executable program that can run. Compiling Objective C 

Free C++ books

C/C++ Programming Books
C/C++ Programming Books         Visual C++ 6 Unleashed Visual C++ 6 Unleashed provides comprehensive coverage of the core topics 

CVS Questions

C++
C++  How can i write this in dev c 

Development process Questions

C++
C++  How can i write this in dev c 

Ajax Questions

c#
c#  how to find out the size of the BMP image in C 

Java Interview Questions

C interview questions
C interview questions  Plz answer the following questions..... TECHNICAL - C /question number 1/ Code: int z,x=5,y=-10,a=4,b=2...? a. 5 b. 6 c. 10 d. 11 e. 12 /question number 2/ With every use of a memory 

Java Interview Questions

C interview questions
C interview questions  Plz answer the following questions..... TECHNICAL - C /question number 1/ Code: int z,x=5,y=-10,a=4,b=2...? a. 5 b. 6 c. 10 d. 11 e. 12 /question number 2/ With every use of a memory 

Development process Questions

c++
c++  use a prgrm as an example to xplain-: a)class b)object c)message d)cope resolution operator 

Development process Questions

c++
c++  write a programme that calculates the area and circumference of a rectangle 

Ajax Questions

c#
c#  how to find out the size of the BMP image 

Java Beginners

c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used 

Java Beginners

c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used 

Java Beginners

c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used 

Development process Questions

C++
C++  dear sir How to create windows form application for login screen using C++? USER Name -TESTADMIN Password -testuser 

IDE Questions

c++ - IDE Questions
c++  how can i write a simple program in c++ that outputs 399 in words?thank you.  Hi Friend, C program to convert number to words: #include #include char *ch1[]={" "," one"," two"," three"," four"," five 

Development process Questions

c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples 

Development process Questions

c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples 

Development process Questions

C++
C++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples 

Java Beginners

C++
C++  Describe the principle advantages of deploying a linked list versus a static array when implementing a Queue or a Stack 

Development process Questions

c++
c++  write a prgrm tht accepts 3 integer values,then with a function to swap the values 

Design concepts & design patterns Questions

C++
C++  Trace the bubble sort using the following integers,which represent the elements in an array. 5,7,3,8,6,7,3 

Development process Questions

C++
C++  I have been asked to write a programme that gets five values,gets the sum,average and product please help me 

Java Beginners

C#
C#  i need a code that will make program perform the basic operations upon the data Listview save, update and cancel 

Java Beginners

Compiling package in command line
Compiling package in command line  Hi friends, i am totally new... package using command line. For Eg: When i compile following command, c:>set CLASSPATH=.;C:\; C:\mypackage>javac shamil.java 'javac' is not recognized 

Spring Framework Questions

c++
c++  write a program that gets a key or character from the keyboard and displays it ASII code in decimal, hexadecimal and binary form.It must also give a description of the key pressed 

Development process Questions

c++
c++  write a prgrm tht calculates the surface area of a cylinder.the prgrm shld find the circumfrance and have a function that calculates the fadius and another to calculate the surface area 

Development process Questions

C++
C++  write a prgrm tht gets five values,gets the sum,average &...; #include <conio.h> void main() { clrscr(); int a,b,c,d,e,sum; float average...;>b>>c>>d>>e; sum=a+b+c+d+e; average=sum/5; product=a*b*c*d 

Development process Questions

c++
c++  .write a program that accepts 5 subjects of a student,it should have a function to calculate the average & another function to grade.grade should be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70 

UML Questions

c++
c++  Consider the following function: int funcExercise7(int list[], int size) { int sum = 0; for (int index = 0; index < size; index++) sum = sum + list[index]; return sum 

UML Questions

c++
c++  Consider the following declarations: class xClass { public: void... private members does class xClass have? c. How many constructors does class xClass.... Write a C++ statement that prints the values of the data members of the object 

Development process Questions

C#
C# register form  i want to generate a user id automatically after filling their register form and i want to show their id to their email? please reply me soon 

UML Questions

c++
c++  Consider the following declarations: class xClass { public: void func(); void print() const; xClass (); xClass (int, double); private: int u... private members does class xClass have? c. How many constructors does class xClass 

CVS Questions

c++
c++  Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo... name with the minimum GPA 7) Display Student GPAs as Letter Grades (A, B, C, D 

Free Books

C and C++ books-page12
constructions when compiled.   The Visual C++ 6.0 Environment... of the development environment are unique to Visual C++ and might seem a bit foreign... C and C++ books-page12       

Development process Questions

c++
c++  .write a prgrm tht accepts 5 subjects of a student,it shld hv a function to calculate the average & another function to grade.grade shld be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70 

UML Questions

c++
c++  Characterize the following algorithm in terms of Big-O notation. Also find the exact number of additions executed by the loop. (Assume that all variables are properly declared.) for (int i = 1; i <= n; i++) sum = sum + i 

UML Questions

c++
c++  Characterize the following algorithm in terms of Big-O notation. for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) for (int k = 1; k <= n; k++) cout << i + j + k 

UML Questions

C++
C++  . Consider the definition of the following class: class CC { public: CC(); //Line 1 CC(int); //Line 2 CC(int, int); //Line 3 CC(double, int); //Line 4 . . . private: int u; double v 

UML Questions

c++
c++  Write the definition of the class dayType that implements the day of the week in a program. The class dayType should store the day... on an object of type dayType: a. Set the day. b. Print the day. c. Return the day 

Java Beginners

c++
c++   Assume vector "x" of integers with values of 7, 3, 5, 8, 1, 9, 0, 4, 2, 6. Second, assume integer variables "a," "b" and "y" with values of 3, x.size()-5 and 0, respectively. Third, assume a for-loop header which: 3.1 

Development process Questions

c++
c++  write a programme that calculates the area and circumference of a rectangle   #include<conio.h> #include<iostream.h> class rect { int l,b; int area; int peri; public: void get_rect() { cout<<"\n 

Java Interview Questions

C - Java Interview Questions
 

SQL Question

c# (ado.net)
c# (ado.net)   i am preparing a 180 query questions. how to make a groupbox that include 3 radio buttons named (YES, NO, CANCEL)when i select YES then, the YES is stored in the sql,when i select NO then, the NO is stored 

SQL Question

Using C# DataGridView to insert record into Microsoft SQL Server 2005 database - SQL
Using C# DataGridView to insert record into Microsoft SQL Server 2005 database  Dear Sir, I am new to Microsoft SQL Server 2005. Currently, i'm creating a sales database system using C# and Microsoft SQL Server 2005. I had 

iPhone

Objective C on Windows
; Set environment variable for GCC compiler (C:\GNUstep\mingw\bin\gcc.exe... Objective C on Windows       In this section you will learn how to use Objective C 

Eclipse Plugins

EasyEclipse for C and C++
, compile, tests and debug and C and C++ applications and programs - Getting... EasyEclipse for C and C++       EasyEclipse for C and C++ is all you need to start developing 

Free C# books

C and C++ books-page4
; lot of the "BIG" programs in existence. Even though C is one of the most used... C and C++ books-page4      ... An array in C is a region of memory in which the elements (chars, ints, etc.) can 

General

Ask C/C++ Questions online
Ask C/C++ Questions online       C and C++ are different programming language, but both the languages are popular among programmers. C is a general 

Free C# books

C and C++ books-page1
C and C++ books-page1       The C Books This is the online version of The C Book, second... is no longer in print, it's content is still very relevant today. The C language 

Java Beginners

compiling programme IJVM
compiling programme IJVM  I TRY AND COMPILE THE PROGRAMME BELOW...' OUT BIPUSH 110 'n' OUT BIPUSH 99 'c' OUT BIPUSH 101 'e' OUT... BIPUSH 99 'c' OUT BIPUSH 116 't' OUT BIPUSH 61 '=' OUT BIPUSH 0 OUT OUT 

Development process Questions

C,C++
C,C++  Sir, 100&30 gives output 4 in C++ and 100|30 gives output 116 How & and | gives output 4 and 116 

Free C# books

C and C++ books-page2
processing or spreadsheet programs. C was designed as a reasonably transportable... C and C++ books-page2       The Advice & Warning for C Tutorials  C and C 

Development process Questions

oopengl on3d using c/c++ - Development process
oopengl on3d using c/c++  sir i want a programs on opengl in 3d using c/c++ language give me new one sir 

C++

C Tutorials
C Tutorials       In this section we have given large number of tutorials on C programming Language. C programming language is used to develop applications mostly 

Development process Questions

C,C++
C,C++  int i=100,j=20; int c=i&j; int r=i|j; printf("%d",c); printf("%d",r);   #include<stdio.h> #include<conio.h> void main(){ int i=100,j=20; int c=i&j; int r=i|j; printf("%d",c); printf("%d",r 

iPhone

Objective C on Mac
Objective C on Mac       I this section we will show you how to compile and run Objective C program on Mac machine. Compiling Objective C on Mac OS x To Compile Objective-C 

Java Beginners

Error While Compiling - Java Beginners
the following problem while compiling can anyone help me. C:\javatutorial\example>... command, operable program or batch file. C:\javatutorial\example>  ...=%path%;c:\jdk1.6.0\bin; Regards Sreejith 

Development process Questions

c++ - Development process
c++  How to integrate two or more c++ programs. i have one more doubt in c++ language.how to create header file in c++(user defined).please reply immediately 

SQL Question

C program - SQL
C program  Thank You . Write some C programs using pointers . Write some C programs using files. Please reply me .   Hi Friend, Please visit the following link: http://www.roseindia.net/c 

Java Interview Questions

about c and java
about c and java   i need java and c language interview and objective questions with answers for the fresher.please provide to me   Please...://www.roseindia.net/c-tutorials/ http://www.roseindia.net/interviewquestions 

Blog

Site map - C Tutorials
Index  | About-us | Contact Us | Advertisement | Ask Questions...; C Tutorials  | Java Tutorials | PHP Tutorials  | Linux...; | XPath Tutorials | HTML Tutorials C Tutorial Section C String Reverse 

Applet Questions

error in compiling j2me apllication - Applet
error in compiling j2me apllication  hi, in my j2me application...()-------------------*/ public void commandAction(Command c,Displayable d){ if(c==mainPage.enter) createList(); else if(c==errorPage.okCommand 

General

C Tutorials
C       Java Certification Sun's certification programs in Java technology are well recognized...;   Comparable Interface While writing the object-oriented programs 

Free C books

C and C++ books-page8
checking of objects in C programs. With it, you will produce code that contains... C and C++ books-page8       The ODBC from C Tutorial  In this section for example-based C 

Java Beginners

C Language - Java Beginners
C Language  1. What are extension files? Give examples. 2. What is operating system? What are the different types available? 3. What... answer for the above questions since it is very much needed urgently 

Free Books

C and C++ books-page5
-the programming language and its runtime environment. It fully describes the Objective-C... C and C++ books-page5       The GNU C Programming Tutorial The terms low level and high 

Java Interview Questions

Difference between C++ and Java - Java Interview Questions
Difference between C++ and Java  Basic difference between C... was derived from C++ but still there is big difference between these two... definition in C++, but there is no closing semicolon. 3. Forward reference 

Development process Questions

c/c++ - Development process
c/c++  Creating animation using c/c++. The code for moving an object using c/c 

Development process Questions

C++ program not running
C++ program not running  Hi, this program need to ask 10 random questions with a random month name. Example: RUN How many days are there in the month of March? 28 No March has 31 days. How many days are there in the month 

Java Tips and Examples

TextPad Editor + JDK
installed the Java JDK. 3. Entering, compiling, and executing your Java... text pane. Create new directory. Putting the programs directly on your... interactions between old and new programs. It can save endless hours of frustration 

SQL Question

C program - SQL
C program  Thanks!!!!!!!!!! Please reply me some programs for DATA STRUCTURES (LINKED LISTS,ETC)  Hi Friend, Try the following code: # include # include #include struct element *temp; struct 

Development process Questions

c/c++ - Development process
c/c++  I need the code for developping two dice and roll them using c/c++. Thanks 

Java Beginners

variable declaration in c and c++
variable declaration in c and c++  Comparison and an example of variable declaration in C and C 

Free Books

C and C++ books-page13
C and C++ books-page13      ... in C++ This book was motivated by my experience in teaching the course... an appropriate decision.    The teach yourself C++ in 21 

Free C++ books

C and C++ books-page11
code in new C++ programs * Efficiency * Platform neutrality... C and C++ books-page11       The Industrial Strength of C++ In early 1990, C++ was chosen 

WebSevices Questions

programming questions
programming questions  this is my assignment questions please help me... the programs in c# language Describe the following with respect to creating Web Forms in .Net environment: a. Web Form Life Cycle b. Creating a Web Form 

Development process Questions

C/C++ - Development process
C/C++  I need the code for playing the backgammon game using C/C++.Im using turbo C. I`ve already design the board.I badly need the code for playing this game 

Java Tips and Examples

Java vs. C
, cheaper, ...) to produce good programs. From C++ to Java If you know C or C... used in C programs anyway. There are no pointer operators (&, *, ->... Java: Java vs. C Is Java easier or harder than C? Java is harder because 

Development process Questions

c/c++ - Development process
c/c++  Ive been asked to develop a backgammon game using C language. I don't know which code to use to move checkers and to roll die. I would appreciate to get some help. Thanks 

Development process Questions

c/c++ - Development process
c/c++  Ive been asked to develop a backgammon game using C language. I don't know which code to use to move checkers and to roll die. I would appreciate to get some help. Thanks 

Java Beginners

c or c++ - Java Beginners
c or c++  Write a program for a two user chess game(Users must be on different systems)? please send me this source code to my mail id with step by step explanation 

Java Beginners

c c++ - Java Beginners
c c++  Write a Multi-user chat server and client  Hi Friend, Please visit the following link: http://www.roseindia.net/chatserver/index.shtml Hope that it will be helpful for you. Thanks 

Development process Questions

C++ Starter needs help :S
questions abaut C++. Please help! :(   Please visit the following link: C...C++ Starter needs help :S  Hi, im 15 & im trying to learn how to program, i am starting with C & C++ since these are (what ive been told 

Free C# books

C and C++ books
C and C++ books       Page 1 This is the online version of The C Book, second edition... C and C++ are widely promoted as ideal portable, fast, and - in the case of C 

iPhone

Objective C
on Mac machine.   Compiling Objective C In this section... machine. Compiling Objective C program is necessary as it generates... Objective C       

Java Beginners

c c++ - Java Beginners
c c++  Write a small record management application for a school...]; String name = f[1]; String c = f[2]; String note = f[3...]; String name = st[1]; String c = st[2]; String note = st[3]; if (id.equals 

Eclipse Plugins

Cantata++ - for testing C and C++ software
Cantata++ - for testing C and C++ software  ... of the C/C++ languages to produce a tool which allows developers to efficiently... Full support for: ANSI C (89 and 99), ISO C++, EC++ and Java coverage 

Swing AWT

c c++ - Swing AWT
c c++  Write Snake Game using Swings  Hi Friend, Try the following code: 1)SnakeGame.java: import javax.swing.JFrame; public class SnakeGame extends JFrame { public SnakeGame() { add(new Snake 

Advertisements Advertisements
 

 

 

DMCA.com