473,382 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

problem in modular programing

lets look at the code given below
here i m trying to do mudular programming
/* this is my main prog.*/
/*mmod.c*/
#include<stdio.h>
#include "mod1.h"
int main(void)
{
int n;
puts("enter the value of n");
scanf("%d",&n);
printf("the square of %d is :- %ld",n,sqr(n));
return 0;
}

/*this is my secondary module */
/*mod1.c*/
#include "mod1.h"

long sqr(int x)
{
return ((long)((x)*(x)));
}

/*this is my header file*/
/*mod1.h*/
long sqr(int x);
when i compile main & secondary module,every thing is ok, but as i am

trying to link them,there is a linker error i.e,undefined symbol _sqr

in mmod.exe

Feb 22 '06 #1
26 1628

ashu wrote:
lets look at the code given below
here i m trying to do mudular programming
/* this is my main prog.*/
/*mmod.c*/
#include<stdio.h>
#include "mod1.h"
int main(void)
{
int n;
puts("enter the value of n");
scanf("%d",&n);
printf("the square of %d is :- %ld",n,sqr(n));
return 0;
}

/*this is my secondary module */
/*mod1.c*/
#include "mod1.h"

long sqr(int x)
{
return ((long)((x)*(x)));
}

/*this is my header file*/
/*mod1.h*/
long sqr(int x);
when i compile main & secondary module,every thing is ok, but as i am

trying to link them,there is a linker error i.e,undefined symbol _sqr

in mmod.exe


<OT>
Did you remember to tell your linker about mod1.o[bj]? The exact way
will depend on your toolchain.
</OT>

--
BR, Vladimir

Feb 22 '06 #2
"ashu" writes:
lets look at the code given below
here i m trying to do mudular programming
/* this is my main prog.*/
/*mmod.c*/
#include<stdio.h>
#include "mod1.h"
int main(void)
{
int n;
puts("enter the value of n");
scanf("%d",&n);
printf("the square of %d is :- %ld",n,sqr(n));
return 0;
}

/*this is my secondary module */
/*mod1.c*/
#include "mod1.h"

long sqr(int x)
{
return ((long)((x)*(x)));
}

/*this is my header file*/
/*mod1.h*/
long sqr(int x);
when i compile main & secondary module,every thing is ok, but as i am

trying to link them,there is a linker error i.e,undefined symbol _sqr

in mood.exe


Looks OK to me. This kind of problem relates to your compiler setup and
this group doesn't discuss such things. So repost to a group dealing with
your compiler. But first,search the group you select for words such as make
file, IDE, project. Use the advanced search of Google groups. It is
unlikely you are the first person to have this problem.
Feb 22 '06 #3

ashu wrote:
lets look at the code given below
here i m trying to do mudular programming
/* this is my main prog.*/
/*mmod.c*/
#include<stdio.h>
#include "mod1.h"
int main(void)
{
int n;
puts("enter the value of n");
scanf("%d",&n);
printf("the square of %d is :- %ld",n,sqr(n));
return 0;
}

/*this is my secondary module */
/*mod1.c*/
#include "mod1.h"

long sqr(int x)
{
return ((long)((x)*(x)));
}

/*this is my header file*/
/*mod1.h*/
long sqr(int x);
when i compile main & secondary module,every thing is ok, but as i am

trying to link them,there is a linker error i.e,undefined symbol _sqr

in mmod.exe

Hi,

I do not see any error in your sources that can cause this problem.
It could be a problem with the way you compile and link. In particular,
check the order of the .c files.
If you are doing it with line commands or a makefile, please, post it.

Kind regards.

PS: To all readers: I known the compiler commands are OT, but it is the
best way to discard that error was in the source.

Feb 22 '06 #4
tmp123 wrote:
ashu wrote:
lets look at the code given below
here i m trying to do mudular programming
/* this is my main prog.*/
/*mmod.c*/
#include<stdio.h>
#include "mod1.h"
int main(void)
{
int n;
puts("enter the value of n");
scanf("%d",&n);
printf("the square of %d is :- %ld",n,sqr(n));
return 0;
}

/*this is my secondary module */
/*mod1.c*/
#include "mod1.h"

long sqr(int x)
{
return ((long)((x)*(x)));
}

/*this is my header file*/
/*mod1.h*/
long sqr(int x);
when i compile main & secondary module,every thing is ok, but as i am

trying to link them,there is a linker error i.e,undefined symbol _sqr

in mmod.exe

Hi,

I do not see any error in your sources that can cause this problem.
It could be a problem with the way you compile and link. In
particular, check the order of the .c files.
If you are doing it with line commands or a makefile, please, post it.

Kind regards.

PS: To all readers: I known the compiler commands are OT, but it is
the best way to discard that error was in the source.

Sounds like you're possibly using Visual C?

The code looks ok, btw, you don't need to include mod1.h in mod1.c - but
it's doing no harm.

If you've got the MS compiler set up to run from a command prompt, then this
should work ...

cl mmod.c mod1.c [output in mmod.exe]

Or, if you just want to use the linker ...

link mmod.obj mod1.obj [output in mmod.exe]

To set up the Microsoft compiler so that it works from a command prompt,
open a command prompt, navigate to ...\Microsoft Visual Studio\VC98\Bin and
run vcvars32
--
==============
*Not a pedant*
==============
Feb 22 '06 #5
On 2006-02-22, ashu <ri*********@yahoo.com> wrote:
lets look at the code given below
here i m trying to do mudular programming
/* this is my main prog.*/
/*mmod.c*/
#include<stdio.h>
#include "mod1.h"
int main(void)
{
int n;
puts("enter the value of n");
scanf("%d",&n);
printf("the square of %d is :- %ld",n,sqr(n));
return 0;
}

/*this is my secondary module */
/*mod1.c*/
#include "mod1.h"

long sqr(int x)
{
return ((long)((x)*(x)));
}

/*this is my header file*/
/*mod1.h*/
long sqr(int x);
when i compile main & secondary module,every thing is ok, but as i am

trying to link them,there is a linker error i.e,undefined symbol _sqr

in mmod.exe


You are doing something wrong in the linker stage. Can you get the
compiler specific options to compile & link? Check them.

e.g using gcc under linux the following works fine

gcc -g mmod.c mod1.c
../a.out

(runs fine)

One thing : you dont need to include mod1.h into mod1.c : unless
someone can tell me a good reason why one should do so?

There will be a lot of people telling you this is OT for this NG and
they will be kind of right but stick with it - it can all be
confusing when you start :) Learn about make files. Use google.

--
Remove evomer to reply
Feb 22 '06 #6

Richard G. Riley wrote:

One thing : you dont need to include mod1.h into mod1.c : unless
someone can tell me a good reason why one should do so?


Verify prototypes?

Feb 22 '06 #7

pemo wrote:
tmp123 wrote:
ashu wrote:
lets look at the code given below
here i m trying to do mudular programming
....
I do not see any error in your sources that can cause this problem.
It could be a problem with the way you compile and link. In
particular, check the order of the .c files.
If you are doing it with line commands or a makefile, please, post it.


Sounds like you're possibly using Visual C?


O, no, me not: VC is too expensive for my bank account.
Was you trying to reply to the OP?

Feb 22 '06 #8
pemo wrote:
The code looks ok, btw, you don't need to include mod1.h in mod1.c - but
it's doing no harm.


You /should/ so include the .h in the .c; how else can you portably be
sure the compiler is going to detect mismatches between the declaration
and the definition?

--
Chris "was stirred, now shaken" Dollin
RIP Andreas "G'Kar" Katsulas, May 1946 - February 2006
Feb 22 '06 #9
On 2006-02-22, Chris Dollin <ke**@hpl.hp.com> wrote:
pemo wrote:
The code looks ok, btw, you don't need to include mod1.h in mod1.c - but
it's doing no harm.


You /should/ so include the .h in the .c; how else can you portably be
sure the compiler is going to detect mismatches between the declaration
and the definition?


How does that affect including mod1.h into mod1.c?

--
Remove evomer to reply
Feb 22 '06 #10
Richard G. Riley wrote:
On 2006-02-22, Chris Dollin <ke**@hpl.hp.com> wrote:
pemo wrote:
The code looks ok, btw, you don't need to include mod1.h in mod1.c - but
it's doing no harm.


You /should/ so include the .h in the .c; how else can you portably be
sure the compiler is going to detect mismatches between the declaration
and the definition?


How does that affect including mod1.h into mod1.c?

--
Remove evomer to reply


If you include it, it lets the compiler diagnose mismatches between
the definitions and declarations as was said above. Often then
clearer what is going on. Not "required", just a good idea.

Code standards in my group say to include your own header
*first*. That guarantees that anything needed by your header itself
(e.g. including <stdio.h> for FILE that is in a declaration) will be
there
assuming that your file can then compile -- it won't be masked
by inclusion of <stdio.h> in some other header above yours.
That prevents other users of the header (if any) from
having to figure out why your header isn't working.

-David

Feb 22 '06 #11
On 2006-02-22, David Resnick <ln********@gmail.com> wrote:
Richard G. Riley wrote:
On 2006-02-22, Chris Dollin <ke**@hpl.hp.com> wrote:
> pemo wrote:
>
>> The code looks ok, btw, you don't need to include mod1.h in mod1.c - but
>> it's doing no harm.
>
> You /should/ so include the .h in the .c; how else can you portably be
> sure the compiler is going to detect mismatches between the declaration
> and the definition?
>
How does that affect including mod1.h into mod1.c?

--
Remove evomer to reply


If you include it, it lets the compiler diagnose mismatches between
the definitions and declarations as was said above. Often then
clearer what is going on. Not "required", just a good idea.


I can buy into that. But does it give any real advantage considering
the users of that external do include the header? And then theres the
linking to hilite errors too.
Code standards in my group say to include your own header
*first*. That guarantees that anything needed by your header itself
(e.g. including <stdio.h> for FILE that is in a declaration) will be
there
assuming that your file can then compile -- it won't be masked
by inclusion of <stdio.h> in some other header above yours.
That prevents other users of the header (if any) from
having to figure out why your header isn't working.
Interesting. It was never a problem I came across but it makes some
sense. But I'm a little confused about what you mean by my *header*
needing things. I normally try to keep module headers as simple
declarations of that modules capabilities - the c module itself
includes the headers that it needs. If you follow me :)

-David

--
Remove evomer to reply
Feb 22 '06 #12
pemo wrote:
.... snip ...
The code looks ok, btw, you don't need to include mod1.h in mod1.c
- but it's doing no harm.


Yes he should. That checks that the .h and .c files are compatible.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>

Feb 22 '06 #13
pemo wrote:
[snip: ashu's example of modular programming and tmp123 answer]
you don't need to include mod1.h in mod1.c - but
it's doing no harm.


Isn't this a standard thing to do (I mean #include WHATEVER.h in
WHATEVER.c) to validate the header file?

If the implementation is changed without a corresponding change to the
header file, I assume the error will not be caught.

Test to validate my assumption:

tmp$ cat main.c utils.h utils.c
/* main.c */
#include <stdio.h>
#include "utils.h"
int main(void) {
long x = sqr(42);
printf("sqr(42) is %ld.\n\n", x);
return 0;
}

/* utils.h */
long sqr(int);

/* utils.c */
/* changed return type (was long) */
double sqr(int a) {
return (double)a*a; /* added cast to force double result */
}

tmp$ gcc -W -Wall -std=c89 -pedantic main.c utils.c
tmp$ ./a.out
sqr(42) is 0.

tmp$ sed -e 's/long/double/' -i utils.h
tmp$ gcc -W -Wall -std=c89 -pedantic main.c utils.c
tmp$ ./a.out
sqr(42) is 1764.

--
If you're posting through Google read <http://cfaj.freeshell.org/google>
Feb 22 '06 #14
On 2006-02-22, Richard G. Riley <rg***********@gmail.com> wrote:
Interesting. It was never a problem I came across but it makes some
sense. But I'm a little confused about what you mean by my *header*
needing things. I normally try to keep module headers as simple
declarations of that modules capabilities - the c module itself
includes the headers that it needs. If you follow me :)


The header may need to include other headers that declare types which
are used for parameters or return values within the header (as with FILE
in the example)
Feb 22 '06 #15
On 2006-02-22, Jordan Abel <ra*******@gmail.com> wrote:
On 2006-02-22, Richard G. Riley <rg***********@gmail.com> wrote:
Interesting. It was never a problem I came across but it makes some
sense. But I'm a little confused about what you mean by my *header*
needing things. I normally try to keep module headers as simple
declarations of that modules capabilities - the c module itself
includes the headers that it needs. If you follow me :)


The header may need to include other headers that declare types which
are used for parameters or return values within the header (as with FILE
in the example)


True, if this is the case. Special types I tend to keep in type
headers though. If, as in your example one needs to do that then I
have always tried to only include in those modules which need.

I'm interested in this other statement that the compiler needs it to check
the prototype against the declaration : while I can see that this
might be useful I've not (habitually) done it since I tend to export
the headers from the module anyway and also the linker raises any
issues. Is this bad practice? if it is, I'll put it right but it never
caused me a problem. Any light you can throw on this is appreciated.
--
Remove evomer to reply
Feb 22 '06 #16
"Richard G. Riley" <rg***********@gmail.com> writes:
On 2006-02-22, David Resnick <ln********@gmail.com> wrote:
Richard G. Riley wrote:
On 2006-02-22, Chris Dollin <ke**@hpl.hp.com> wrote:
> You /should/ so include the .h in the .c; how else can you portably be
> sure the compiler is going to detect mismatches between the declaration
> and the definition?


If you include it, it lets the compiler diagnose mismatches between
the definitions and declarations as was said above. Often then
clearer what is going on. Not "required", just a good idea.


I can buy into that. But does it give any real advantage considering
the users of that external do include the header? And then theres the
linking to hilite errors too.


Headers include more than function prototypes. They often define
structures, enumerations, unions, macros, etc. If the .c file
wants to use those (and it normally does) then it'll need to
include the .h.
--
int main(void){char p[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv wxyz.\
\n",*q="kl BIcNBFr.NKEzjwCIxNJC";int i=sizeof p/2;char *strchr();int putchar(\
);while(*q){i+=strchr(p,*q++)-p;if(i>=(int)sizeof p)i-=sizeof p-1;putchar(p[i]\
);}return 0;}
Feb 22 '06 #17

"ashu" <ri*********@yahoo.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
lets look at the code given below
here i m trying to do mudular programming
/* this is my main prog.*/
/*mmod.c*/
#include<stdio.h>
#include "mod1.h"
int main(void)
{
int n;
puts("enter the value of n");
scanf("%d",&n);
printf("the square of %d is :- %ld",n,sqr(n));
return 0;
}

/*this is my secondary module */
/*mod1.c*/
#include "mod1.h"

long sqr(int x)
{
return ((long)((x)*(x)));
}


The above definition for the sqr() module is rather poor. The way you have
it, the compiler will probably multiply x*x as ints and then convert the
result to a long. Thus for any value of x greater than MAXINT/2 you will
likely get an overflow error.
Perhaps you really want
return (long)x * (long)x;
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project

Feb 22 '06 #18
CBFalconer wrote:
pemo wrote:

... snip ...

The code looks ok, btw, you don't need to include mod1.h in mod1.c
- but it's doing no harm.


Yes he should. That checks that the .h and .c files are compatible.


Whether he *should* include, vs. *need* include the header is really a
different question. Personally, I think I *would* include the .h if it were
my code - however, I just wanted to point out that it isn't actually
required.

--
==============
*Not a pedant*
==============
Feb 22 '06 #19
Richard G. Riley wrote:
I'm interested in this other statement that the compiler needs it to check
the prototype against the declaration : while I can see that this
might be useful I've not (habitually) done it since I tend to export
the headers from the module anyway and also the linker raises any
issues. Is this bad practice? if it is, I'll put it right but it never
caused me a problem. Any light you can throw on this is appreciated.
--
Remove evomer to reply


Errors and warnings from the compiler/linker
depend on the compiler/linker. But consider this gcc example:

foo.c
int main(void)
{
return 0;
}
void foo(long quux)
{
}

bar.c
#include "foo.h"

void bar(void) {
foo();
}

foo.h
void foo(void);

temp(1327)$ gcc -Wall -o foo foo.c bar.c
temp(1327)$

No gripes. And foo the foo function will be reading garbage it seems.
Compare that to this foo.c (where foo.h and bar.c are unchanged)
#include "foo.h"

int main(void)
{
return 0;
}

void foo(long quux)
{
}

temp(1331)$ gcc -Wall -o foo foo.c bar.c
foo.c:9: conflicting types for `foo'
foo.h:1: previous declaration of `foo'

-David

Feb 22 '06 #20
On 2006-02-22, Richard G. Riley <rg***********@gmail.com> wrote:
On 2006-02-22, Jordan Abel <ra*******@gmail.com> wrote:
On 2006-02-22, Richard G. Riley <rg***********@gmail.com> wrote:
Interesting. It was never a problem I came across but it makes some
sense. But I'm a little confused about what you mean by my *header*
needing things. I normally try to keep module headers as simple
declarations of that modules capabilities - the c module itself
includes the headers that it needs. If you follow me :)


The header may need to include other headers that declare types which
are used for parameters or return values within the header (as with FILE
in the example)


True, if this is the case. Special types I tend to keep in type
headers though. If, as in your example one needs to do that then I
have always tried to only include in those modules which need.

I'm interested in this other statement that the compiler needs it to check
the prototype against the declaration : while I can see that this
might be useful I've not (habitually) done it since I tend to export
the headers from the module anyway and also the linker raises any
issues.


Eh? what issues does the linker raise if the name is right but the type
is wrong?
Feb 22 '06 #21
"Fred Kleinschmidt" writes:
"ashu" <ri*********@yahoo.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
lets look at the code given below
here i m trying to do mudular programming
/* this is my main prog.*/
/*mmod.c*/
#include<stdio.h>
#include "mod1.h"
int main(void)
{
int n;
puts("enter the value of n");
scanf("%d",&n);
printf("the square of %d is :- %ld",n,sqr(n));
return 0;
}

/*this is my secondary module */
/*mod1.c*/
#include "mod1.h"

long sqr(int x)
{
return ((long)((x)*(x)));
}


The above definition for the sqr() module is rather poor. The way you have
it, the compiler will probably multiply x*x as ints and then convert the
result to a long. Thus for any value of x greater than MAXINT/2 you will
likely get an overflow error.
Perhaps you really want
return (long)x * (long)x;


Yes, I noticed that too. But the first step is to be able to compile, link,
and execute his program. I hope the OP can detect the fact that the pissing
war he has triggered has nothing at all to do with the problem *he* has. It
has to do with variants of his program that might have caused a failure to
compile. The OPs program does, in fact, compile.
Feb 22 '06 #22
Jordan Abel <ra*******@gmail.com> writes:
Eh? what issues does the linker raise if the name is right but the type
is wrong?


There's no reason the linker *can't* raise such issues, as far as
I know. The behavior is undefined. This gives the
implementation the latitude to, e.g., do C++-style name mangling
and thereby flag type mismatches at link time.
--
"I've been on the wagon now for more than a decade. Not a single goto
in all that time. I just don't need them any more. I don't even use
break or continue now, except on social occasions of course. And I
don't get carried away." --Richard Heathfield
Feb 22 '06 #23
On 2006-02-22, Jordan Abel <ra*******@gmail.com> wrote:
On 2006-02-22, Richard G. Riley <rg***********@gmail.com> wrote:
On 2006-02-22, Jordan Abel <ra*******@gmail.com> wrote:
On 2006-02-22, Richard G. Riley <rg***********@gmail.com> wrote:
Interesting. It was never a problem I came across but it makes some
sense. But I'm a little confused about what you mean by my *header*
needing things. I normally try to keep module headers as simple
declarations of that modules capabilities - the c module itself
includes the headers that it needs. If you follow me :)

The header may need to include other headers that declare types which
are used for parameters or return values within the header (as with FILE
in the example)


True, if this is the case. Special types I tend to keep in type
headers though. If, as in your example one needs to do that then I
have always tried to only include in those modules which need.

I'm interested in this other statement that the compiler needs it to check
the prototype against the declaration : while I can see that this
might be useful I've not (habitually) done it since I tend to export
the headers from the module anyway and also the linker raises any
issues.


Eh? what issues does the linker raise if the name is right but the type
is wrong?


Hence my question : its not a problem I have come across. Common types
I tend to store seperate from the "x.h" header which represents the
"h.c" module.

I guess really my question is, and then I stand corrected, is it
really necessary to include function declarations into the module
where the functions are implemented? Its not something I have tended
to do with small standalone programs : bigger legacy system frequently
do this and I leave them untouched - and just as well if I'm missing
something really important here.
--
Remove evomer to reply
Feb 22 '06 #24
On 2006-02-22, Ben Pfaff <bl*@cs.stanford.edu> wrote:
"Richard G. Riley" <rg***********@gmail.com> writes:
On 2006-02-22, David Resnick <ln********@gmail.com> wrote:
Richard G. Riley wrote:
On 2006-02-22, Chris Dollin <ke**@hpl.hp.com> wrote:
> You /should/ so include the .h in the .c; how else can you portably be
> sure the compiler is going to detect mismatches between the declaration
> and the definition?

If you include it, it lets the compiler diagnose mismatches between
the definitions and declarations as was said above. Often then
clearer what is going on. Not "required", just a good idea.


I can buy into that. But does it give any real advantage considering
the users of that external do include the header? And then theres the
linking to hilite errors too.


Headers include more than function prototypes. They often define
structures, enumerations, unions, macros, etc. If the .c file
wants to use those (and it normally does) then it'll need to
include the .h.


Hi Ben : I addressed in another post. My own convention has tended to
be to seperate such declarations from function prototypes and to
include those in the module specifically.
--
Remove evomer to reply
Feb 22 '06 #25
In article <46************@individual.net>
Richard G. Riley <rg***********@gmail.com> wrote:
I guess really my question is, and then I stand corrected, is it
really necessary to include function declarations into the module
where the functions are implemented?


It is not *necessary*. It *is* a good idea.

A C compiler is not obliged to complain if we write the following, in
three separate files that build two translation units that build one
program:

/* main.c */
#include <stdio.h>
#include "bob.h"

int main(void) {
printf("bob() = %d\n", bob());
return 0;
}

/* bob.h */
int bob(void);

/* bob.c */
#include <string.h>
double bob(char *arg) {
if (strcmp(arg, "forty-two") == 0)
return 42.0;
return 3.1415926535897932384626433832795;
}

(Cut apart at comments, put into obvious files, and compile and see.)

Here main.c includes bob.h; bob.h lies, saying that bob() takes no
arguments and returns "int". Meanwhile, bob.c fails to include
bob.h. The compiler is not required to produce a diagnostic, and
most do not. The resulting executable (if we get one, and we usually
do) does not work right.

Had bob.c included bob.h, however, the compiler would have been
obligated to produce a diagnostic. We would have discovered, at
compile time, that bob.h lied about function bob(), and been given
a chance to fix the bug *before* it manifested.
--
In-Real-Life: Chris Torek, Wind River Systems
Salt Lake City, UT, USA (40°39.22'N, 111°50.29'W) +1 801 277 2603
email: forget about it http://web.torek.net/torek/index.html
Reading email is like searching for food in the garbage, thanks to spammers.
Feb 22 '06 #26
tmp123 wrote:

Richard G. Riley wrote:

One thing : you dont need to include mod1.h into mod1.c : unless
someone can tell me a good reason why one should do so?


Verify prototypes?


That's the usual reason.

--
pete
Feb 23 '06 #27

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: Xah Lee | last post by:
Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official Python tutorial 8 months ago, have spent 30...
18
by: Zero | last post by:
Hi, I am calculating an integer to the pwer of a large integer, e.g. 2^5000. It turns out that the result I always get is zero. I am sure that the result is too large to store in such type...
4
by: Nick Goloborodko | last post by:
Hi, I'm in the process of conceptualizing a new ASP.NET application. I'm a relative newbie in ASP.NET / .NET in general, so any comments will be greatly appreciated. Basically i need to make...
12
by: Don Huan | last post by:
Hi my job is to migrate our WinForms application to ASP.NET. This app was build very modular so every peace of code can be replaced by another "modul". There are 1 VS-solution with about 60...
26
by: I_AM_DON_AND_YOU? | last post by:
This is the scenario: I have a VB.Net project comprising of a few Forms. On Form1 I have more than 20 buttons. There is a very lenghty code written in click event of each and every button. Right...
20
by: Tuvas | last post by:
I have made and recently posted a libary I made to do Modular Arithmetic and Prime numbers on my website at http://www.geocities.com/brp13/Python/index.html . I am currently in a crypotology...
12
by: Xah Lee | last post by:
Of Interest: Introduction to 3D Graphics Programing http://xahlee.org/3d/index.html Currently, this introduction introduces you to the graphics format of Mathematica, and two Java Applet...
18
by: Vijaykumar Dave | last post by:
I have a program for base X power N as under. The problem is that when the range specified in loop is given it works well, but when any character is pressed, it goes to infinite loop. Second...
2
by: Canice | last post by:
I'm working on a web application where 90% of it is common 'product' code an the other 10% is customer specific. I want some method of separating the customer specific presentation, business and...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.