Search Results

Showing results 1 to 40 of 48
Search took 0.01 seconds.
Search: Posts Made By: amt_muk
Forum: C++ Dec 31st, 2008
Replies: 3
Views: 385
Posted By amt_muk
Hello Friends,

I am trying to porting an unix c++ program into windows using MSVC8.0 compiler. In my unix version there are some lines like


#include <sys/atomic.h>
...
atomic_add_int_nv()...
Forum: C++ Dec 30th, 2008
Replies: 2
Views: 500
Posted By amt_muk
Hello friends,

Suppose I want to write a dll file with MS-VC8.0 compiler. I need to add __declspec(dllexport) for all of the functions which will be called from outside of that dll.
Now my...
Forum: C++ Dec 9th, 2008
Replies: 6
Views: 394
Posted By amt_muk
But it was complied fine with VC6.0.
Forum: C++ Dec 9th, 2008
Replies: 6
Views: 394
Posted By amt_muk
Thanks for your prompt reply.
But it will cause a lots of change in that code.
So is it not possible to use open function in VC++ 8.0?

Amit
Forum: C++ Dec 9th, 2008
Replies: 6
Views: 394
Posted By amt_muk
Hello Friends,

I am trying to porting some pre-existing code to VC++ 2005 in Win XP environment. I have a segment of code like,

...
#include<fcntl.h>
#include <sys/types.h>
#include...
Forum: C++ Nov 15th, 2008
Replies: 4
Views: 448
Posted By amt_muk
One more point I want to mention that it is running fine (obviously except __declspec( dllexport ) ) in Solaris environment with Sun Studio 10 compiler.
Forum: C++ Nov 14th, 2008
Replies: 4
Views: 448
Posted By amt_muk
Hello friends,

I am facing a linking problem in VC++8.0 compiler.

Suppose I have a library, say A.dll.
In this library I have a file, say x.cpp. Within this file there is a extern const...
Forum: C++ Sep 22nd, 2008
Replies: 9
Views: 1,701
Posted By amt_muk
Hi Salem,
In my system it is giving 256 times of the actual result.
I am using Studio 11 in Solaris 10 environment.
Can u pls explain it.

Thanx,
Amit
Forum: C++ Sep 19th, 2008
Replies: 9
Views: 1,701
Posted By amt_muk
Thanx Dragon.
But there is no manual entry for spawn family of functions.

-bash-3.00$ man spawnl
No manual entry for spawnl.
-bash-3.00$

Can u pls suggest some other way to do it.

Amit
Forum: C++ Sep 19th, 2008
Replies: 9
Views: 1,701
Posted By amt_muk
Forum: C++ Sep 19th, 2008
Replies: 9
Views: 1,701
Posted By amt_muk
Hello Friendz,

Suppose I have a program like

// A.cpp
int main()
{
if(some_condition)
return 1;
Forum: C++ Sep 8th, 2008
Replies: 9
Views: 1,860
Posted By amt_muk
got it.

Thanx a lot.

Amit
Forum: C++ Sep 8th, 2008
Replies: 2
Views: 583
Posted By amt_muk
Hello friends,
Is there any problem with "Zero-Length-String" in C/C++.
Pls mention if there is any type of problem in standard string library-functions like strcpy, strcat, memcpy, etc.

Thanx,...
Forum: C++ Sep 8th, 2008
Replies: 9
Views: 1,860
Posted By amt_muk
Can u pls explain the o/p for the following,

char* str = 0;
std::cout<<&str<<std::endl;


Output : 0012FF24

Amit
Forum: C++ Sep 5th, 2008
Replies: 9
Views: 1,860
Posted By amt_muk
Hi,
Suppose I have a char*, which holds a string value.
Now I want to print the address of that char*, not the string value.
Pls help me in this problem.

Amit
Forum: C++ Jul 21st, 2008
Replies: 1
Views: 407
Posted By amt_muk
Hello friends,
Suppose I have a .doc file (MSWord). Now, how can I read that file using C++ console application, ie, not using MFC or any other visual components.

Thanks,
Amit
Forum: C++ Apr 9th, 2008
Replies: 5
Solved: atol vs strtol
Views: 2,065
Posted By amt_muk
Thanx a lot Narue.
Forum: C++ Apr 9th, 2008
Replies: 5
Solved: atol vs strtol
Views: 2,065
Posted By amt_muk
Thanks friends for your responses.


How can I handle the errors in case of strtol() ?


Amit.
Forum: C++ Apr 8th, 2008
Replies: 5
Solved: atol vs strtol
Views: 2,065
Posted By amt_muk
Hi

What are the basic differences between the methods atol() and strtol()?

Regards,
Amit
Forum: C++ Jan 10th, 2008
Replies: 1
Solved: need some help
Views: 459
Posted By amt_muk
try this


.....
.....
int main()
{ double scores[50];
double avg ;

string names[50];
Forum: C++ Oct 23rd, 2007
Replies: 5
Views: 7,447
Posted By amt_muk
U can try sprintf().

Amit
Forum: C++ Oct 16th, 2007
Replies: 3
Views: 2,234
Posted By amt_muk
You can use strtok.

Amit
Forum: C++ Oct 15th, 2007
Replies: 8
Views: 7,402
Posted By amt_muk
ok salem,
pls tell me the ways for Windows and Solaris platform.
Forum: C++ Oct 15th, 2007
Replies: 8
Views: 7,402
Posted By amt_muk
Thanx for your answer.
Now suppose I've a pointer of ifstream. Is there are any way to get the timestamp of that file from that pointer?
Forum: C++ Oct 15th, 2007
Replies: 8
Views: 7,402
Posted By amt_muk
Actually I am working in a project which will be OS independent.
So pls give me some solution which will work on windows as well as Solaris.
Forum: C++ Oct 15th, 2007
Replies: 8
Views: 7,402
Posted By amt_muk
Hi friends,
How can I get the time stamp of a file from C++ program.

Amit
Forum: C++ Oct 10th, 2007
Replies: 2
Views: 4,408
Posted By amt_muk
Thanx Vijayan for the reply.

Amit
Forum: C++ Oct 9th, 2007
Replies: 2
Views: 4,408
Posted By amt_muk
Hi friends,
Can you pls tell me about "explicit template instantiation". Suppose I have a simple program :

1. File : TClass.h

#ifndef CTCLASS_H
#define CTCLASS_H

template<class T>
class...
Forum: C Apr 27th, 2007
Replies: 4
Views: 1,272
Posted By amt_muk
Thanx to both of you. :)

Amit
Forum: C Apr 26th, 2007
Replies: 4
Views: 1,272
Posted By amt_muk
Hi Friends,
Can any of you pls tell me (in detail) which of the following options will be faster?

Option 1:

int fun()
{
if( !cm_aObject )
return -1;
return...
Forum: C Mar 27th, 2007
Replies: 4
Views: 2,187
Posted By amt_muk
Forum: C Mar 26th, 2007
Replies: 4
Views: 2,187
Posted By amt_muk
Hi,
Infarction, thanx for ur reply.
I've already tried this and it is working fine.
But my question is that whether it will cause any memory related problem or not. I can't change the signature of...
Forum: C Mar 26th, 2007
Replies: 4
Views: 2,187
Posted By amt_muk
Hello Friends,
Suppose I have a function like -

void myFunc( char* str)
{
.......
.......
}
Forum: C Feb 16th, 2007
Replies: 4
Views: 3,132
Posted By amt_muk
Thanx a lot to all of you.
Forum: C Feb 15th, 2007
Replies: 4
Views: 3,132
Posted By amt_muk
Thanx for your reply.
But I'm using Windows NT/2000 server.

Amit
Forum: C Feb 14th, 2007
Replies: 4
Views: 3,132
Posted By amt_muk
Hello friends,

I'm trying to write a program to check the status of a process (specified by its process-id), ie, the process is presently running or not.
Can you pls give me some idea to solve...
Forum: C++ Jun 16th, 2005
Replies: 4
Views: 1,525
Posted By amt_muk
remove %c from scanf...

//scanf("%49[^\n]%c", &sentence);
scanf("%49[^\n]", &sentence);
Forum: C++ Jun 15th, 2005
Replies: 6
Views: 3,548
Posted By amt_muk
U can open these picture file in binary mode and compare each charecter...


#include <iostream.h>
#include <fstream.h>

int main(void)
{
char fileName1[50], fileName2[50];
cout << "Enter...
Forum: C++ Jun 15th, 2005
Replies: 3
Views: 2,365
Posted By amt_muk
Hi drock9975,
Try this... :cool:


#include <iostream.h>
#include <string.h>

struct Weapon
{
char* type;
Forum: C++ Jun 8th, 2005
Replies: 6
Views: 10,883
Posted By amt_muk
Look Varun, the main difference between these 2 is that the 1st one allocates the memory at the time of running (dynamic memory allocation). But the 2nd one does the same at both compile and run...
Showing results 1 to 40 of 48

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC